summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/plhashnumber.rst
blob: a84c147aa9037896cf4b48cbaca49e98ee1f0db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Syntax
------

.. code::

   #include <plhash.h>

   typedef PRUint32 PLHashNumber;

   #define PL_HASH_BITS 32


Description
-----------

``PLHashNumber`` is an unsigned 32-bit integer. ``PLHashNumber`` is the
data type of the return value of a hash function. A hash function maps a
key to a hash number, which is then used to compute the index of the
bucket.

The macro ``PL_HASH_BITS`` is the size (in bits) of the ``PLHashNumber``
data type and has the value of 32.


See Also
--------

``PLHashFunction``