-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #224 from JuliaLang/kms/remove_hash_dict
RFC: Remove HashDict
- Loading branch information
Showing
4 changed files
with
13 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# support function | ||
# support functions | ||
|
||
# This is defined in Base, but probably not meant for external consumption, | ||
# so it's redefined here. | ||
# These functions are defined in Base, but are not exported, | ||
# so they are redefined here. | ||
_tablesz(x::Integer) = x < 16 ? 16 : one(x)<<((sizeof(x)<<3)-leading_zeros(x-1)) | ||
|
||
hashindex(key, sz) = (reinterpret(Int,(hash(key))) & (sz-1)) + 1 |
Oops, something went wrong.