Lines Matching refs:val
44 double ts2double(const struct timespec *val) in ts2double() argument
48 rv = val->tv_sec; in ts2double()
49 rv += (double) val->tv_nsec / nSecsPerSec; in ts2double()
55 double tv2double(const struct timeval *val) in tv2double() argument
59 rv = val->tv_sec; in tv2double()
60 rv += (double) val->tv_usec / uSecsPerSec; in tv2double()
181 uint32_t val; in testRand() local
185 val = lrand48(); in testRand()
189 val ^= lrand48() << 1; in testRand()
191 return val; in testRand()
208 uint32_t val = (mod <= lrand48maxVal) ? (uint32_t) lrand48() : testRand(); in testRandMod() local
219 val = (val & 0xffff) ^ (val >> 16); in testRandMod()
224 val = (val & 0xff) ^ (val >> 8); in testRandMod()
228 return val % mod; in testRandMod()