Lines Matching refs:max
74 …uble php_random_gammasection_closed_open(php_random_algo_with_state engine, double min, double max) in php_random_gammasection_closed_open() argument
76 double g = gamma_max(min, max); in php_random_gammasection_closed_open()
77 uint64_t hi = ceilint(min, max, g); in php_random_gammasection_closed_open()
79 if (UNEXPECTED(max <= min || hi < 1)) { in php_random_gammasection_closed_open()
85 if (fabs(min) <= fabs(max)) { in php_random_gammasection_closed_open()
92 return 0x1p+2 * (max * 0x1p-2 - k_hi * g) - k_lo * g; in php_random_gammasection_closed_open()
102 …le php_random_gammasection_closed_closed(php_random_algo_with_state engine, double min, double max) in php_random_gammasection_closed_closed() argument
104 double g = gamma_max(min, max); in php_random_gammasection_closed_closed()
105 uint64_t hi = ceilint(min, max, g); in php_random_gammasection_closed_closed()
107 if (UNEXPECTED(max < min)) { in php_random_gammasection_closed_closed()
113 if (fabs(min) <= fabs(max)) { in php_random_gammasection_closed_closed()
120 return 0x1p+2 * (max * 0x1p-2 - k_hi * g) - k_lo * g; in php_random_gammasection_closed_closed()
124 return max; in php_random_gammasection_closed_closed()
134 …uble php_random_gammasection_open_closed(php_random_algo_with_state engine, double min, double max) in php_random_gammasection_open_closed() argument
136 double g = gamma_max(min, max); in php_random_gammasection_open_closed()
137 uint64_t hi = ceilint(min, max, g); in php_random_gammasection_open_closed()
139 if (UNEXPECTED(max <= min || hi < 1)) { in php_random_gammasection_open_closed()
145 if (fabs(min) <= fabs(max)) { in php_random_gammasection_open_closed()
149 return 0x1p+2 * (max * 0x1p-2 - k_hi * g) - k_lo * g; in php_random_gammasection_open_closed()
152 return max; in php_random_gammasection_open_closed()
162 …double php_random_gammasection_open_open(php_random_algo_with_state engine, double min, double max) in php_random_gammasection_open_open() argument
164 double g = gamma_max(min, max); in php_random_gammasection_open_open()
165 uint64_t hi = ceilint(min, max, g); in php_random_gammasection_open_open()
167 if (UNEXPECTED(max <= min || hi < 2)) { in php_random_gammasection_open_open()
173 if (fabs(min) <= fabs(max)) { in php_random_gammasection_open_open()
177 return 0x1p+2 * (max * 0x1p-2 - k_hi * g) - k_lo * g; in php_random_gammasection_open_open()