aboutsummaryrefslogtreecommitdiff
path: root/internal/hash/hash_log2.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2019-01-16 02:01:09 +0100
committerDimitri Sokolyuk <demon@dim13.org>2019-01-16 02:01:09 +0100
commita09cffcde579451343e9ab9a614cf6a9b65ed812 (patch)
tree95f33a1cc2da03319e6cab644aea8a4dff255e01 /internal/hash/hash_log2.go
parent3743e23f4054d34a03f88105e79521154bc5c3d3 (diff)
rename
Diffstat (limited to 'internal/hash/hash_log2.go')
-rw-r--r--internal/hash/hash_log2.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/hash/hash_log2.go b/internal/hash/hash_log2.go
deleted file mode 100644
index 5e30f17..0000000
--- a/internal/hash/hash_log2.go
+++ /dev/null
@@ -1,9 +0,0 @@
-package hash
-
-func log2(num uint32) uint32 {
- var i uint32
- for limit := uint32(1); limit < num; limit <<= 1 {
- i++
- }
- return i
-}