/PHP-5.6/ext/bcmath/libbcmath/src/ |
H A D | bcmath.h | 37 typedef struct bc_struct *bc_num; typedef 108 _PROTOTYPE(bc_num bc_copy_num, (bc_num num)); 120 _PROTOTYPE(int bc_compare, (bc_num n1, bc_num n2)); 128 _PROTOTYPE(void bc_add, (bc_num n1, bc_num n2, bc_num *result, int scale_min)); 130 _PROTOTYPE(void bc_sub, (bc_num n1, bc_num n2, bc_num *result, int scale_min)); 132 _PROTOTYPE(void bc_multiply, (bc_num n1, bc_num n2, bc_num *prod, int scale TSRMLS_DC)); 134 _PROTOTYPE(int bc_divide, (bc_num n1, bc_num n2, bc_num *quot, int scale TSRMLS_DC)); 136 _PROTOTYPE(int bc_modulo, (bc_num num1, bc_num num2, bc_num *result, 139 _PROTOTYPE(int bc_divmod, (bc_num num1, bc_num num2, bc_num *quot, 142 _PROTOTYPE(int bc_raisemod, (bc_num base, bc_num expo, bc_num mod, [all …]
|
H A D | private.h | 36 extern bc_num _bc_Free_list; 40 int _bc_do_compare (bc_num n1, bc_num n2, int use_sign, int ignore_last); 41 bc_num _bc_do_add (bc_num n1, bc_num n2, int scale_min); 42 bc_num _bc_do_sub (bc_num n1, bc_num n2, int scale_min); 43 void _bc_rm_leading_zeros (bc_num num);
|
H A D | divmod.c | 48 bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale TSRMLS_DC) in bc_divmod() 50 bc_num quotient = NULL; in bc_divmod() 51 bc_num temp; in bc_divmod() 83 bc_modulo (bc_num num1, bc_num num2, bc_num *result, int scale TSRMLS_DC) in bc_modulo()
|
H A D | init.c | 42 bc_num _bc_Free_list = NULL; 47 bc_num 51 bc_num temp; 57 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent); 63 temp = (bc_num) pemalloc (sizeof(bc_struct), persistent); 85 bc_num *num; in _bc_free_num_ex() 119 bc_num 120 bc_copy_num (bc_num num) in bc_copy_num() 130 bc_init_num (bc_num *num TSRMLS_DC) in bc_init_num()
|
H A D | recmul.c | 53 static bc_num 58 bc_num temp; 66 temp = (bc_num) emalloc (sizeof(bc_struct)); 81 _bc_simp_mul (bc_num n1, int n1len, bc_num n2, int n2len, bc_num *prod, in _bc_simp_mul() 116 _bc_shift_addsub (bc_num accum, bc_num val, int shift, int sub) in _bc_shift_addsub() 182 _bc_rec_mul (bc_num u, int ulen, bc_num v, int vlen, bc_num *prod, in _bc_rec_mul() 185 bc_num u0, u1, v0, v1; in _bc_rec_mul() 186 bc_num m1, m2, m3, d1, d2; in _bc_rec_mul() 278 bc_multiply (bc_num n1, bc_num n2, bc_num *prod, int scale TSRMLS_DC) in bc_multiply() 280 bc_num pval; in bc_multiply()
|
H A D | raisemod.c | 46 bc_raisemod (bc_num base, bc_num expo, bc_num mod, bc_num *result, int scale TSRMLS_DC) in bc_raisemod() 48 bc_num power, exponent, parity, temp; in bc_raisemod()
|
H A D | raise.c | 47 bc_raise (bc_num num1, bc_num num2, bc_num *result, int scale TSRMLS_DC) in bc_raise() 49 bc_num temp, power; in bc_raise()
|
H A D | doaddsub.c | 46 bc_num 48 bc_num n1, n2; in _bc_do_add() 51 bc_num sum; 138 bc_num 140 bc_num n1, n2; in _bc_do_sub() 143 bc_num diff;
|
H A D | add.c | 48 bc_num n1, n2, *result; in bc_add() 51 bc_num sum = NULL;
|
H A D | sub.c | 48 bc_num n1, n2, *result; in bc_sub() 51 bc_num diff = NULL;
|
H A D | compare.c | 48 bc_num n1, n2; in _bc_do_compare() 157 bc_num n1, n2; in bc_compare()
|
H A D | neg.c | 45 bc_num num; in bc_is_neg()
|
H A D | div.c | 88 bc_divide (bc_num n1, bc_num n2, bc_num *quot, int scale TSRMLS_DC) in bc_divide() 90 bc_num qval; in bc_divide()
|
H A D | rmzero.c | 47 bc_num num; in _bc_rm_leading_zeros()
|
H A D | output.c | 90 bc_out_num (bc_num num, int o_base, void (*out_char)(int), int leading_zero TSRMLS_DC) in bc_out_num() 92 bc_out_num (bc_num num, int o_base, void (*out_char)(), int leading_zero TSRMLS_DC) in bc_out_num() 98 bc_num int_part, frac_part, base, cur_dig, t_num, max_o_digit; in bc_out_num()
|
H A D | sqrt.c | 45 bc_sqrt (bc_num *num, int scale TSRMLS_DC) in bc_sqrt() 49 bc_num guess, guess1, point5, diff; in bc_sqrt()
|
H A D | zero.c | 44 bc_is_zero (bc_num num TSRMLS_DC) in bc_is_zero()
|
H A D | nearzero.c | 47 bc_num num; in bc_is_near_zero()
|
H A D | debug.c | 51 pn (bc_num num TSRMLS_DC) in pn()
|
H A D | num2long.c | 48 bc_num num; in bc_num2long()
|
H A D | int2num.c | 46 bc_num *num; in bc_int2num()
|
H A D | num2str.c | 45 bc_num num; in bc_num2str()
|
H A D | str2num.c | 44 bc_str2num (bc_num *num, char *str, int scale TSRMLS_DC) in bc_str2num()
|
/PHP-5.6/ext/bcmath/ |
H A D | php_bcmath.h | 45 bc_num _zero_; 46 bc_num _one_; 47 bc_num _two_;
|
H A D | bcmath.c | 206 static bc_num split_bc_num(bc_num num) { in split_bc_num() 207 bc_num newnum; in split_bc_num() 225 bc_num first, second, result; in PHP_FUNCTION() 266 bc_num first, second, result; in PHP_FUNCTION() 306 bc_num first, second, result; in PHP_FUNCTION() 346 bc_num first, second, result; in PHP_FUNCTION() 391 bc_num first, second, result; in PHP_FUNCTION() 427 bc_num first, second, mod, result; in PHP_FUNCTION() 472 bc_num first, second, result; in PHP_FUNCTION() 512 bc_num result; in PHP_FUNCTION() [all …]
|