Lines Matching defs:uHashLen
60 #define RTSTRCACHE_COLLISION_INCR(uHashLen) ( ((uHashLen >> 8) | 1) )
446 * @param uHashLen The hash + length (not RTSTRCACHEENTRY_BIG_LEN).
448 static uint32_t rtStrCacheFindEmptyHashTabEntry(PRTSTRCACHEINT pThis, uint32_t uHashLen)
450 uint32_t iHash = uHashLen % pThis->cHashTab;
458 iHash += RTSTRCACHE_COLLISION_INCR(uHashLen);
765 * @param uHashLen The hash + length (not RTSTRCACHEENTRY_BIG_LEN).
773 static PRTSTRCACHEENTRY rtStrCacheLookUp(PRTSTRCACHEINT pThis, uint32_t uHashLen, uint32_t cchString, const char *pchString,
781 uint32_t iHash = uHashLen % pThis->cHashTab;
797 if ( pEntry->uHash == (uint16_t)uHashLen
823 iHash += RTSTRCACHE_COLLISION_INCR(uHashLen);
839 uint32_t const uHashLen = RT_MAKE_U32(uHash, cchString);
848 PRTSTRCACHEENTRY pEntry = rtStrCacheLookUp(pThis, uHashLen, cchString32, pchString, &iFreeHashTabEntry, &cCollisions);
883 iFreeHashTabEntry = rtStrCacheFindEmptyHashTabEntry(pThis, uHashLen);
997 uint32_t uHashLen = RT_MAKE_U32(pStr->uHash, cchString);
998 uint32_t iHash = uHashLen % pThis->cHashTab;
1006 iHash += RTSTRCACHE_COLLISION_INCR(uHashLen);