Lines Matching refs:g
58 static uint64_t ceilint(double a, double b, double g) in ceilint() argument
60 double s = b / g - a / g; in ceilint()
64 e = -a / g - (s - b / g); in ceilint()
66 e = b / g - (s + a / g); in ceilint()
76 double g = gamma_max(min, max); in php_random_gammasection_closed_open() local
77 uint64_t hi = ceilint(min, max, g); 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()
98 return 0x1p+2 * (min * 0x1p-2 + k_hi * g) + k_lo * g; in php_random_gammasection_closed_open()
104 double g = gamma_max(min, max); in php_random_gammasection_closed_closed() local
105 uint64_t hi = ceilint(min, max, g); 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()
129 return 0x1p+2 * (min * 0x1p-2 + k_hi * g) + k_lo * g; in php_random_gammasection_closed_closed()
136 double g = gamma_max(min, max); in php_random_gammasection_open_closed() local
137 uint64_t hi = ceilint(min, max, g); 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()
157 return 0x1p+2 * (min * 0x1p-2 + k_hi * g) + k_lo * g; in php_random_gammasection_open_closed()
164 double g = gamma_max(min, max); in php_random_gammasection_open_open() local
165 uint64_t hi = ceilint(min, max, g); 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()
182 return 0x1p+2 * (min * 0x1p-2 + k_hi * g) + k_lo * g; in php_random_gammasection_open_open()