Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b26924a

Browse filesBrowse files
committed
-1 => -2
1 parent 4d34a85 commit b26924a
Copy full SHA for b26924a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎quaddtype/numpy_quaddtype/src/scalar.c‎

Copy file name to clipboardExpand all lines: quaddtype/numpy_quaddtype/src/scalar.c
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,8 +629,9 @@ static PyGetSetDef QuadPrecision_getset[] = {
629629
* Hash function for QuadPrecision scalars.
630630
*
631631
* This implements the same algorithm as CPython's _Py_HashDouble, adapted for
632-
* quad precision (128-bit) floating point. The algorithm computes a hash based
632+
* 128-bit floating point. The algorithm computes a hash based
633633
* on the reduction of the value modulo the prime P = 2**PYHASH_BITS - 1.
634+
* https://github.com/python/cpython/blob/20b69aac0d19a5e5358362410d9710887762f0e7/Python/pyhash.c#L87
634635
*
635636
* Key invariant: hash(x) == hash(y) whenever x and y are numerically equal,
636637
* even if x and y have different types. This ensures that:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.