Home | History | Annotate | Download | only in C

Lines Matching refs:cur

15 #define HASH2_CALC hv = cur[0] | ((UInt32)cur[1] << 8);

18 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
20 hv = (temp ^ ((UInt32)cur[2] << 8)) & p->hashMask; }
23 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
25 temp ^= ((UInt32)cur[2] << 8); \
27 hv = (temp ^ (p->crc[cur[3]] << 5)) & p->hashMask; }
30 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
32 temp ^= ((UInt32)cur[2] << 8); \
34 temp ^= (p->crc[cur[3]] << 5); \
36 hv = (temp ^ (p->crc[cur[4]] << 3)) & p->hashMask; }
38 /* #define HASH_ZIP_CALC hv = ((cur[0] | ((UInt32)cur[1] << 8)) ^ p->crc[cur[2]]) & 0xFFFF; */
39 #define HASH_ZIP_CALC hv = ((cur[2] | ((UInt32)cur[0] << 8)) ^ p->crc[cur[1]]) & 0xFFFF;
43 h2 = (p->crc[cur[0]] ^ cur[1]) & (kHash2Size - 1);
46 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
48 h3 = (temp ^ ((UInt32)cur[2] << 8)) & (kHash3Size - 1); }
51 UInt32 temp = p->crc[cur[0]] ^ cur[1]; \
53 temp ^= ((UInt32)cur[2] << 8); \
55 h4 = (temp ^ (p->crc[cur[3]] << 5)) & (kHash4Size - 1); }