-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* This was originally copied from Base and used as a basis for both Ordered and Unordered dictionaries. However, Jeff Bezanson's OrderedDict is implemented differently and is committed here, so there's no need for this type anymore
- Loading branch information
Showing
4 changed files
with
14 additions
and
552 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.