summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-02-04 09:39:36 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-02-04 10:27:09 -0500
commit6295ba8c3d448d993d750c0cc0da44cca77480e7 (patch)
tree2e08868326978a2100c54add622111093bdeed58
parent72b7d998059869942da8d540b7fe2c341225f91e (diff)
shared/util: drop duplicate log2u64 function
-rw-r--r--src/shared/util.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index 7dfabbc07d..b56ffbde45 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -872,16 +872,6 @@ static inline unsigned log2u(unsigned x) {
return sizeof(unsigned) * 8 - __builtin_clz(x) - 1;
}
-static inline unsigned log2u64(uint64_t x) {
- assert(x > 0);
-
-#if __SIZEOF_LONG_LONG__ == 8
- return 64 - __builtin_clzll(x) - 1;
-#else
-#error "Wut?"
-#endif
-}
-
static inline unsigned log2u_round_up(unsigned x) {
assert(x > 0);