mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 796119 - part 1: don't use PR_BIT in pldhash.h; r=ehsan
This commit is contained in:
parent
73b2294d6d
commit
4a9f394628
@ -31,7 +31,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* Table size limit, do not equal or exceed (see min&maxAlphaFrac, below). */
|
/* Table size limit, do not equal or exceed (see min&maxAlphaFrac, below). */
|
||||||
#undef PL_DHASH_SIZE_LIMIT
|
#undef PL_DHASH_SIZE_LIMIT
|
||||||
#define PL_DHASH_SIZE_LIMIT PR_BIT(24)
|
#define PL_DHASH_SIZE_LIMIT ((uint32_t)1 << 24)
|
||||||
|
|
||||||
/* Minimum table size, or gross entry count (net is at most .75 loaded). */
|
/* Minimum table size, or gross entry count (net is at most .75 loaded). */
|
||||||
#ifndef PL_DHASH_MIN_SIZE
|
#ifndef PL_DHASH_MIN_SIZE
|
||||||
@ -202,7 +202,8 @@ struct PLDHashTable {
|
|||||||
* We store hashShift rather than sizeLog2 to optimize the collision-free case
|
* We store hashShift rather than sizeLog2 to optimize the collision-free case
|
||||||
* in SearchTable.
|
* in SearchTable.
|
||||||
*/
|
*/
|
||||||
#define PL_DHASH_TABLE_SIZE(table) PR_BIT(PL_DHASH_BITS - (table)->hashShift)
|
#define PL_DHASH_TABLE_SIZE(table) \
|
||||||
|
((uint32_t)1 << (PL_DHASH_BITS - (table)->hashShift))
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Table space at entryStore is allocated and freed using these callbacks.
|
* Table space at entryStore is allocated and freed using these callbacks.
|
||||||
|
Loading…
Reference in New Issue
Block a user