We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d34a85 commit b26924aCopy full SHA for b26924a
1 file changed
quaddtype/numpy_quaddtype/src/scalar.c
@@ -629,8 +629,9 @@ static PyGetSetDef QuadPrecision_getset[] = {
629
* Hash function for QuadPrecision scalars.
630
*
631
* 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
+ * 128-bit floating point. The algorithm computes a hash based
633
* 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
635
636
* Key invariant: hash(x) == hash(y) whenever x and y are numerically equal,
637
* even if x and y have different types. This ensures that:
0 commit comments