Skip to content

Commit

Permalink
Use bsf for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Hackerpilot committed Jan 28, 2019
1 parent 96be8bc commit c2d7a6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/containers/internal/hash.d
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ size_t hashToIndex(const size_t hash, const size_t len) pure nothrow @nogc @safe
}
else
{
import core.bitop : bsr;
return (hash * magic) >>> ((size_t.sizeof * 8) - bsr(len));
import core.bitop : bsf;
return (hash * magic) >>> ((size_t.sizeof * 8) - bsf(len));
}
}

Expand Down

0 comments on commit c2d7a6d

Please sign in to comment.