@@ -11,12 +11,14 @@ See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`.
1111
1212 .. versionadded :: 3.2
1313
14+
1415.. c :type :: Py_uhash_t
1516
1617 Hash value type: unsigned integer.
1718
1819 .. versionadded :: 3.2
1920
21+
2022.. c :macro :: Py_HASH_ALGORITHM
2123
2224 A numerical value indicating the algorithm for hashing of :class: `str `,
@@ -26,6 +28,7 @@ See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`.
2628
2729 .. versionadded :: 3.4
2830
31+
2932.. c :macro :: Py_HASH_FNV
3033 Py_HASH_SIPHASH24
3134 Py_HASH_SIPHASH13
@@ -37,6 +40,7 @@ See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`.
3740 .. versionadded :: 3.11
3841 Add :c:macro: `!Py_HASH_SIPHASH13 `.
3942
43+
4044.. c :macro :: Py_HASH_CUTOFF
4145
4246 Buffers of length in range ``[1, Py_HASH_CUTOFF) `` are hashed using DJBX33A
@@ -51,6 +55,7 @@ See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`.
5155
5256 .. versionadded :: 3.4
5357
58+
5459.. c :macro :: PyHASH_MODULUS
5560
5661 The `Mersenne prime <https://en.wikipedia.org/wiki/Mersenne_prime >`_ ``P = 2**n -1 ``,
@@ -59,33 +64,38 @@ See also the :c:member:`PyTypeObject.tp_hash` member and :ref:`numeric-hash`.
5964
6065 .. versionadded :: 3.13
6166
67+
6268.. c :macro :: PyHASH_BITS
6369
6470 The exponent ``n `` of ``P `` in :c:macro: `PyHASH_MODULUS `.
6571 This corresponds to the :data: `sys.hash_info.hash_bits ` constant.
6672
6773 .. versionadded :: 3.13
6874
75+
6976.. c :macro :: PyHASH_MULTIPLIER
7077
7178 Prime multiplier used in string and various other hashes.
7279
7380 .. versionadded :: 3.13
7481
82+
7583.. c :macro :: PyHASH_INF
7684
7785 The hash value returned for a positive infinity.
7886 This corresponds to the :data: `sys.hash_info.inf ` constant.
7987
8088 .. versionadded :: 3.13
8189
90+
8291.. c :macro :: PyHASH_IMAG
8392
8493 The multiplier used for the imaginary part of a complex number.
8594 This corresponds to the :data: `sys.hash_info.imag ` constant.
8695
8796 .. versionadded :: 3.13
8897
98+
8999.. c :type :: PyHash_FuncDef
90100
91101 Hash function definition used by :c:func: `PyHash_GetFuncDef `.
0 commit comments