File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
quaddtype/numpy_quaddtype/src Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments