Searched refs:umax (Results 1 – 4 of 4) sorted by relevance
214 zend_ulong umax; in php_random_int() local222 umax = (zend_ulong) max - (zend_ulong) min; in php_random_int()229 if (umax == ZEND_ULONG_MAX) { in php_random_int()235 umax++; in php_random_int()238 if ((umax & (umax - 1)) != 0) { in php_random_int()240 zend_ulong limit = ZEND_ULONG_MAX - (ZEND_ULONG_MAX % umax) - 1; in php_random_int()250 *result = (zend_long)((trial % umax) + min); in php_random_int()
94 if (UNEXPECTED(umax == UINT32_MAX)) { in php_random_range32()99 umax++; in php_random_range32()102 if ((umax & (umax - 1)) == 0) { in php_random_range32()103 return result & (umax - 1); in php_random_range32()129 return result % umax; in php_random_range32()150 if (UNEXPECTED(umax == UINT64_MAX)) { in php_random_range64()155 umax++; in php_random_range64()158 if ((umax & (umax - 1)) == 0) { in php_random_range64()159 return result & (umax - 1); in php_random_range64()185 return result % umax; in php_random_range64()[all …]
313 …uint32_t php_random_range32(const php_random_algo *algo, php_random_status *status, uint32_t umax);314 …uint64_t php_random_range64(const php_random_algo *algo, php_random_status *status, uint64_t umax);
727 encore | umax | mmax)
Completed in 11 milliseconds