aboutsummaryrefslogtreecommitdiff
path: root/lib/power_of_two.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/power_of_two.c')
-rw-r--r--lib/power_of_two.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/power_of_two.c b/lib/power_of_two.c
deleted file mode 100644
index 038c6a3..0000000
--- a/lib/power_of_two.c
+++ /dev/null
@@ -1,17 +0,0 @@
-
-int power_of_two(int test)
-{
- int limit = 8192;
- int compare = 1;
- // post("testing what we thing is an int:%d",test);
- do {
- if(test == compare){
- // post("good power of 2 found!");
- return 1;
- }
- compare *= 2;
- } while (compare <= limit);
-
- return 0;
-}
-