Home
last modified time | relevance | path

Searched refs:FACTOR (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/cmd/sh/
H A Dhash.c35 #define FACTOR 035761254233 /* Magic multiplication factor */ macro
46 #define hash(str) (int)(((unsigned)(crunch(str) * FACTOR)) >> shift)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dhsearch.c103 #define FACTOR 035761254233 /* Magic multiplication factor */ macro
496 return ((int)(((unsigned)(crunch(key) * FACTOR)) >> SHIFT)); in hashm()
508 return (((unsigned int)((crunch(key) * FACTOR) << m) >> SHIFT) | 1); in hash2m()