Home
last modified time | relevance | path

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

/php-src/ext/bcmath/libbcmath/src/
H A Dinit.c82 BCG(_zero_) = _bc_new_num_ex(1, 0, 1); in bc_init_numbers()
83 BCG(_one_) = _bc_new_num_ex(1, 0, 1); in bc_init_numbers()
84 BCG(_one_)->n_value[0] = 1; in bc_init_numbers()
85 BCG(_two_) = _bc_new_num_ex(1, 0, 1); in bc_init_numbers()
86 BCG(_two_)->n_value[0] = 2; in bc_init_numbers()
93 *num = bc_copy_num(BCG(_zero_)); in bc_init_num()
H A Dsqrt.c42 int cmp_res = bc_compare(*num, BCG(_zero_)); in bc_sqrt()
48 *num = bc_copy_num(BCG(_zero_)); in bc_sqrt()
52 cmp_res = bc_compare(*num, BCG(_one_)); in bc_sqrt()
55 *num = bc_copy_num(BCG(_one_)); in bc_sqrt()
74 guess = bc_copy_num(BCG(_one_)); in bc_sqrt()
109 bc_divide(guess, BCG(_one_), num, rscale); in bc_sqrt()
H A Draisemod.c64 temp = bc_copy_num(BCG(_one_)); in bc_raisemod()
68 if (!bc_compare(modulus, BCG(_one_))) { in bc_raisemod()
73 (void) bc_divmod(exponent, BCG(_two_), &exponent, &parity, 0); in bc_raisemod()
H A Drecmul.c184 u1 = bc_copy_num(BCG(_zero_)); in _bc_rec_mul()
191 v1 = bc_copy_num(BCG(_zero_)); in _bc_rec_mul()
212 m1 = bc_copy_num(BCG(_zero_)); in _bc_rec_mul()
218 m2 = bc_copy_num(BCG(_zero_)); in _bc_rec_mul()
224 m3 = bc_copy_num(BCG(_zero_)); in _bc_rec_mul()
H A Draise.c53 *result = bc_copy_num(BCG(_one_)); in bc_raise()
92 bc_divide(BCG(_one_), temp, result, rscale); in bc_raise()
H A Dstr2num.c180 *num = bc_copy_num(BCG(_zero_)); in bc_str2num()
184 *num = bc_copy_num(BCG(_zero_)); in bc_str2num()
H A Dzero.c44 if (num == BCG(_zero_)) { in bc_is_zero_for_scale()
H A Dround.c37 *result = bc_copy_num(BCG(_zero_)); in bc_round()
64 *result = bc_copy_num(BCG(_zero_)); in bc_round()
H A Dfloor_or_ceil.c50 bc_num tmp = _bc_do_add(result, BCG(_one_), 0); in bc_floor_or_ceil()
/php-src/ext/bcmath/
H A Dbcmath.c162 scale = BCG(bc_precision); in PHP_FUNCTION()
209 scale = BCG(bc_precision); in PHP_FUNCTION()
256 scale = BCG(bc_precision); in PHP_FUNCTION()
293 int scale = BCG(bc_precision); in PHP_FUNCTION()
303 scale = BCG(bc_precision); in PHP_FUNCTION()
345 int scale = BCG(bc_precision); in PHP_FUNCTION()
355 scale = BCG(bc_precision); in PHP_FUNCTION()
408 scale = BCG(bc_precision); in PHP_FUNCTION()
482 scale = BCG(bc_precision); in PHP_FUNCTION()
541 scale = BCG(bc_precision); in PHP_FUNCTION()
[all …]
H A Dphp_bcmath.h42 #define BCG(v) ZEND_MODULE_GLOBALS_ACCESSOR(bcmath, v) macro

Completed in 42 milliseconds