Skip to content

Commit b26924a

Browse files
committed
-1 => -2
1 parent 4d34a85 commit b26924a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

quaddtype/numpy_quaddtype/src/scalar.c

Lines 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)