Home
last modified time | relevance | path

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

/PHP-5.5/ext/bcmath/libbcmath/src/
H A Dinit.c106 BCG(_zero_) = _bc_new_num_ex (1,0,1); in bc_init_numbers()
107 BCG(_one_) = _bc_new_num_ex (1,0,1); in bc_init_numbers()
108 BCG(_one_)->n_value[0] = 1; in bc_init_numbers()
109 BCG(_two_) = _bc_new_num_ex (1,0,1); in bc_init_numbers()
110 BCG(_two_)->n_value[0] = 2; in bc_init_numbers()
129 *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 TSRMLS_CC); in bc_sqrt()
H A Draisemod.c58 temp = bc_copy_num (BCG(_one_)); in bc_raisemod()
69 bc_divide (exponent, BCG(_one_), &exponent, 0 TSRMLS_CC); /*truncate */ in bc_raisemod()
80 (void) bc_divmod (exponent, BCG(_two_), &exponent, &parity, 0 TSRMLS_CC); in bc_raisemod()
H A Draise.c67 *result = bc_copy_num (BCG(_one_)); in bc_raise()
112 bc_divide (BCG(_one_), temp, result, rscale TSRMLS_CC); in bc_raise()
H A Drecmul.c203 u1 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
210 v1 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
235 m1 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
240 m2 = bc_copy_num (BCG(_zero_)); in _bc_rec_mul()
245 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 TSRMLS_CC); in bc_out_num()
184 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-5.5/ext/bcmath/
H A Dphp_bcmath.h52 # define BCG(v) TSRMG(bcmath_globals_id, zend_bcmath_globals *, v) macro
54 # define BCG(v) (bcmath_globals.v)
H A Dbcmath.c227 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION()
267 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION()
307 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION()
347 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION()
428 long scale = BCG(bc_precision); in PHP_FUNCTION()
473 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION()
513 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION()
551 int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); in PHP_FUNCTION()
585 BCG(bc_precision) = ((int)new_scale < 0) ? 0 : new_scale; in PHP_FUNCTION()

Completed in 46 milliseconds