mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
new 64-bit safe
This commit is contained in:
parent
bf136bc381
commit
00c6cee80a
1 changed files with 2 additions and 2 deletions
|
@ -80,9 +80,9 @@ enum
|
|||
* and might be faster on some machines
|
||||
*/
|
||||
/*
|
||||
#define hashit(c) (((ulong)(c) * 0x6b43a9) >> (24 - HashLog))
|
||||
#define hashit(c) ((u32int)((c) * 0x6b43a9) >> (24 - HashLog))
|
||||
*/
|
||||
#define hashit(c) (((((ulong)(c) & 0xffffff) * 0x6b43a9b5) >> (32 - HashLog)) & 0xFFFFFFFF)
|
||||
#define hashit(c) ((u32int)(((c) & 0xffffff) * 0x6b43a9b5) >> (32 - HashLog))
|
||||
|
||||
/*
|
||||
* lempel-ziv style compression state
|
||||
|
|
Loading…
Reference in a new issue