Home
last modified time | relevance | path

Searched refs:BCG (Results 1 – 10 of 10) sorted by relevance

/PHP-7.2/ext/bcmath/libbcmath/src/
H A Draisemod.c59 temp = bc_copy_num (BCG(_one_)); in bc_raisemod()
66 bc_divide (power, BCG(_one_), &power, 0); /*truncate */ in bc_raisemod()
73 bc_divide (exponent, BCG(_one_), &exponent, 0); /*truncate */ in bc_raisemod()
80 bc_divide (modulus, BCG(_one_), &modulus, 0); /*truncate */ in bc_raisemod()
85 if ( !bc_compare(modulus, BCG(_one_)) ) in bc_raisemod()
93 (void) bc_divmod (exponent, BCG(_two_), &exponent, &parity, 0); in bc_raisemod()
H A Dinit.c103 BCG(_zero_) = _bc_new_num_ex (1,0,1); in bc_init_numbers()
104 BCG(_one_) = _bc_new_num_ex (1,0,1); in bc_init_numbers()
105 BCG(_one_)->n_value[0] = 1; in bc_init_numbers()
106 BCG(_two_) = _bc_new_num_ex (1,0,1); in bc_init_numbers()
107 BCG(_two_)->n_value[0] = 2; in bc_init_numbers()
126 *num = bc_copy_num (BCG(_zero_)); in bc_init_num()
H A Dsqrt.c52 cmp_res = bc_compare (*num, BCG(_zero_)); in bc_sqrt()
60 *num = bc_copy_num (BCG(_zero_)); in bc_sqrt()
64 cmp_res = bc_compare (*num, BCG(_one_)); in bc_sqrt()
68 *num = bc_copy_num (BCG(_one_)); in bc_sqrt()
85 guess = bc_copy_num (BCG(_one_)); in bc_sqrt()
122 bc_divide (guess,BCG(_one_),num,rscale); in bc_sqrt()
H A Draise.c67 *result = bc_copy_num (BCG(_one_)); in bc_raise()
112 bc_divide (BCG(_one_), temp, result, rscale); in bc_raise()
H A Drecmul.c194 u1 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
201 v1 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
226 m1 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
231 m2 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
236 m3 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
H A Dzero.c50 if (num == BCG(_zero_)) return TRUE; in bc_is_zero()
H A Doutput.c137 bc_divide (num, BCG(_one_), &int_part, 0); in bc_out_num()
183 t_num = bc_copy_num (BCG(_one_)); in bc_out_num()
H A Dstr2num.c65 *num = bc_copy_num (BCG(_zero_)); in bc_str2num()
/PHP-7.2/ext/bcmath/
H A Dbcmath.c233 int scale = (int)BCG(bc_precision); in PHP_FUNCTION()
273 int scale = (int)BCG(bc_precision); in PHP_FUNCTION()
313 int scale = (int)BCG(bc_precision); in PHP_FUNCTION()
353 int scale = (int)BCG(bc_precision); in PHP_FUNCTION()
399 int scale = (int)BCG(bc_precision); in PHP_FUNCTION()
444 zend_long scale = BCG(bc_precision); in PHP_FUNCTION()
490 int scale = (int)BCG(bc_precision); in PHP_FUNCTION()
530 int scale = (int)BCG(bc_precision); in PHP_FUNCTION()
567 int scale = (int)BCG(bc_precision); in PHP_FUNCTION()
603 BCG(bc_precision) = ((int)new_scale < 0) ? 0 : new_scale; in PHP_FUNCTION()
H A Dphp_bcmath.h59 #define BCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(bcmath, v) macro

Completed in 24 milliseconds