summaryrefslogtreecommitdiff
path: root/inc/definitions.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/definitions.h')
-rw-r--r--inc/definitions.h6
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.