aboutsummaryrefslogtreecommitdiff
path: root/db/hash/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'db/hash/hash.h')
-rw-r--r--db/hash/hash.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/hash/hash.h b/db/hash/hash.h
index 62176d7..d07db6f 100644
--- a/db/hash/hash.h
+++ b/db/hash/hash.h
@@ -170,7 +170,7 @@ typedef struct htab { /* Memory resident data structure */
#define OADDR_OF(S,O) ((u_int32_t)((u_int32_t)(S) << SPLITSHIFT) + (O))
#define BUCKET_TO_PAGE(B) \
- (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__log2((B)+1)-1] : 0)
+ (B) + hashp->HDRPAGES + ((B) ? hashp->SPARES[__hash_log2((B)+1)-1] : 0)
#define OADDR_TO_PAGE(B) \
BUCKET_TO_PAGE ( (1 << SPLITNUM((B))) -1 ) + OPAGENUM((B));