summaryrefslogtreecommitdiff
path: root/src/intersim/misc_utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/intersim/misc_utils.cpp')
-rw-r--r--src/intersim/misc_utils.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/intersim/misc_utils.cpp b/src/intersim/misc_utils.cpp
deleted file mode 100644
index 6ba6a20..0000000
--- a/src/intersim/misc_utils.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-#include "booksim.hpp"
-#include "misc_utils.hpp"
-
-int powi( int x, int y ) // compute x to the y
-{
- int r = 1;
-
- for ( int i = 0; i < y; ++i ) {
- r *= x;
- }
-
- return r;
-}
-
-int log_two( int x )
-{
- int r = 0;
-
- x >>= 1;
- while ( x ) {
- r++; x >>= 1;
- }
-
- return r;
-}