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 | f34156105801c81677c54d1713104ac3d7c1c112 (patch) | |
tree | a37a0e14ec5cef442d979852876dd307c6d4bf22 /inc/definitions.h | |
parent | 17dfdb2e00b609e3c7e975ce7a7c19da43318b79 (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. |