Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-111389: expose _PyHASH_INF/BITS/MODULUS/IMAG macros as public#111418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
18 commits Select commitHold shift + click to select a range
0ce377a gh-111389: restoring _PyHASH_INF/BITS/MODULUS/IMAG macroses as public
skirpichev2c6002f Mention public macros in docs
skirpichev5c42cae Revert "Mention public macros in docs"
skirpichevde4e3ae Add Doc/c-api/hashing.rst for hash-related C macros
skirpichev1a50a7b Expose macroses as unstable API
skirpichevebe7604 Merge branch 'main' into restore-pyhash-and-pylongnew
skirpichevb7a7ce3 Merge branch 'main' into restore-pyhash-and-pylongnew
skirpichev7080fa9 Expose macros as public and move docs to Doc/c-api/hash.rst
skirpichev9fcd93e news entry
skirpichev0cc4ff3 restore link to hashing algorithms
skirpichevd978fdb Merge branch 'main' into restore-pyhash-and-pylongnew
skirpichev00bc891 Update Misc/NEWS.d/next/C API/2023-11-15-09-24-51.gh-issue-111418.FYY…
skirpichev6aaa610 address review: versionadded
skirpicheva8dec64 Move to Include/cpython/pyhash.h
skirpichevd3a61ce docs nitpick
skirpichev1f3b623 Apply suggestions from code review
skirpichev1dd0fe7 Apply suggestions from review: keep deprecated names as aliases
skirpichev553c663 Add comment
skirpichevFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Move to Include/cpython/pyhash.h
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commita8dec64eb606d0e980cf55410ea09da0f4ad19f5
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -15,9 +15,14 @@ | ||
| # define_PyHASH_BITS 31 | ||
| #endif | ||
| #definePyHASH_BITS _PyHASH_BITS | ||
skirpichev marked this conversation as resolved. OutdatedShow resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| #define_PyHASH_MODULUS (((size_t)1 << _PyHASH_BITS) - 1) | ||
| #definePyHASH_MODULUS _PyHASH_MODULUS | ||
| #define_PyHASH_INF 314159 | ||
| #definePyHASH_INF _PyHASH_INF | ||
| #define_PyHASH_IMAG _PyHASH_MULTIPLIER | ||
| #definePyHASH_IMAG _PyHASH_IMAG | ||
| /* Helpers for hash functions */ | ||
| PyAPI_FUNC(Py_hash_t)_Py_HashDouble(PyObject*,double); | ||
22 changes: 0 additions & 22 deletionsInclude/pyhash.h
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.