diff options
| author | bd <bdunahu@operationnull.com> | 2025-03-11 00:09:12 -0400 |
|---|---|---|
| committer | bd <bdunahu@operationnull.com> | 2025-03-11 00:09:12 -0400 |
| commit | 11182ea41cc5f453b06d769dea6e157aa9c3cf86 (patch) | |
| tree | a37a0e14ec5cef442d979852876dd307c6d4bf22 /inc/definitions.h | |
| parent | 183ddf3d0d4c9eb6fa6470f45dbb4041c48eebab (diff) | |
cli display clock cycle, parse ';' delimited commands
Diffstat (limited to 'inc/definitions.h')
| -rw-r--r-- | inc/definitions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/definitions.h b/inc/definitions.h index 62ed0f6..f015ce9 100644 --- a/inc/definitions.h +++ b/inc/definitions.h @@ -10,7 +10,7 @@ /** * The total number of words in a line */ -#define LINE_SIZE (int)pow(2, 2) +#define LINE_SIZE static_cast<int>(pow(2, 2)) /** * The number of bits to specify a memory line @@ -20,7 +20,7 @@ /** * The total number of words in memory */ -#define MEM_SIZE (int)pow(2, MEM_SPEC) +#define MEM_SIZE static_cast<int>(pow(2, MEM_SPEC)) /** * The number of bits to specify a l1 cache line @@ -29,7 +29,7 @@ /** * The total number of words in l1 cache */ -#define L1_CACHE_SIZE (int)pow(2, L1_CACHE_SPEC) +#define L1_CACHE_SIZE static_cast<int>(pow(2, L1_CACHE_SPEC)) /** * The total number of cycles a memory access takes. |
