Home
last modified time | relevance | path

Searched refs:umax (Results 1 – 4 of 4) sorted by relevance

/PHP-8.3/ext/random/
H A Dcsprng.c214 zend_ulong umax; in php_random_int() local
222 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()
H A Drandom.c94 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 …]
H A Dphp_random.h313 …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);
/PHP-8.3/build/
H A Dconfig.sub727 encore | umax | mmax)

Completed in 11 milliseconds