Searched refs:umax (Results 1 – 2 of 2) sorted by relevance
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()
216 zend_ulong umax = max - min; in php_mt_rand_range() local222 if (umax > UINT32_MAX) { in php_mt_rand_range()228 if (UNEXPECTED(umax == ZEND_ULONG_MAX)) { in php_mt_rand_range()233 umax++; in php_mt_rand_range()236 if (EXPECTED((umax & (umax - 1)) != 0)) { in php_mt_rand_range()238 limit = ZEND_ULONG_MAX - (ZEND_ULONG_MAX % umax) - 1; in php_mt_rand_range()243 if (umax > UINT32_MAX) { in php_mt_rand_range()255 return (zend_long)((result % umax) + min); in php_mt_rand_range()
Completed in 9 milliseconds