Skip to content

Commit c2d7a6d

Browse files
committed
Use bsf for consistency
1 parent 96be8bc commit c2d7a6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/internal/hash.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ size_t hashToIndex(const size_t hash, const size_t len) pure nothrow @nogc @safe
6363
}
6464
else
6565
{
66-
import core.bitop : bsr;
67-
return (hash * magic) >>> ((size_t.sizeof * 8) - bsr(len));
66+
import core.bitop : bsf;
67+
return (hash * magic) >>> ((size_t.sizeof * 8) - bsf(len));
6868
}
6969
}
7070

0 commit comments

Comments
 (0)