Searched refs:umax (Results 1 – 2 of 2) sorted by relevance
221 if (UNEXPECTED(umax == UINT32_MAX)) { in rand_range32()226 umax++; in rand_range32()229 if ((umax & (umax - 1)) == 0) { in rand_range32()230 return result & (umax - 1); in rand_range32()241 return result % umax; in rand_range32()257 umax++; in rand_range64()260 if ((umax & (umax - 1)) == 0) { in rand_range64()261 return result & (umax - 1); in rand_range64()273 return result % umax; in rand_range64()281 zend_ulong umax = max - min; in php_mt_rand_range() local[all …]
217 zend_ulong umax; in php_random_int() local225 umax = max - min; in php_random_int()232 if (umax == ZEND_ULONG_MAX) { in php_random_int()238 umax++; in php_random_int()241 if ((umax & (umax - 1)) != 0) { in php_random_int()243 zend_ulong limit = ZEND_ULONG_MAX - (ZEND_ULONG_MAX % umax) - 1; in php_random_int()253 *result = (zend_long)((trial % umax) + min); in php_random_int()
Completed in 6 milliseconds