/php-src/ext/bcmath/libbcmath/src/ |
H A D | bcmath.h | 88 static inline bc_num bc_copy_num(bc_num num) in bc_copy_num() 124 bc_num bc_add(bc_num n1, bc_num n2, size_t scale_min); 132 bc_num bc_sub(bc_num n1, bc_num n2, size_t scale_min); 140 bc_num bc_multiply(bc_num n1, bc_num n2, size_t scale); 148 bc_num bc_square(bc_num n1, size_t scale); 150 bool bc_divide(bc_num n1, bc_num n2, bc_num *quot, size_t scale); 152 bool bc_modulo(bc_num num1, bc_num num2, bc_num *resul, size_t scale); 154 bool bc_divmod(bc_num num1, bc_num num2, bc_num *quo, bc_num *rem, size_t scale); 156 bc_num bc_floor_or_ceil(bc_num num, bool is_floor); 169 raise_mod_status bc_raisemod(bc_num base, bc_num exponent, bc_num mod, bc_num *result, size_t scale… [all …]
|
H A D | private.h | 72 bcmath_compare_result _bc_do_compare (bc_num n1, bc_num n2, size_t scale, bool use_sign); 73 bc_num _bc_do_add (bc_num n1, bc_num n2); 74 bc_num _bc_do_sub (bc_num n1, bc_num n2); 75 void _bc_rm_leading_zeros (bc_num num);
|
H A D | divmod.c | 44 bool bc_divmod(bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, size_t scale) in bc_divmod() 46 bc_num quotient = NULL; in bc_divmod() 47 bc_num temp; in bc_divmod() 86 bool bc_modulo(bc_num num1, bc_num num2, bc_num *result, size_t scale) in bc_modulo()
|
H A D | raise.c | 37 void bc_square_ex(bc_num n1, bc_num *result, size_t scale_min) { in bc_square_ex() 38 bc_num square_ex = bc_square(n1, scale_min); in bc_square_ex() 46 void bc_raise(bc_num num1, long exponent, bc_num *result, size_t scale) { in bc_raise() 47 bc_num temp, power; in bc_raise() 106 void bc_raise_bc_exponent(bc_num base, bc_num expo, bc_num *result, size_t scale) { in bc_raise_bc_exponent()
|
H A D | init.c | 38 static bc_num _bc_new_num_nonzeroed_ex_internal(size_t length, size_t scale, bool persistent) in _bc_new_num_nonzeroed_ex_internal() 42 bc_num temp; in _bc_new_num_nonzeroed_ex_internal() 45 temp = (bc_num) (BCG(arena) + BCG(arena_offset)); in _bc_new_num_nonzeroed_ex_internal() 62 bc_num _bc_new_num_ex(size_t length, size_t scale, bool persistent) in _bc_new_num_ex() 64 bc_num temp = _bc_new_num_nonzeroed_ex_internal(length, scale, persistent); in _bc_new_num_ex() 69 bc_num _bc_new_num_nonzeroed_ex(size_t length, size_t scale, bool persistent) in _bc_new_num_nonzeroed_ex() 76 void _bc_free_num_ex(bc_num *num, bool persistent) in _bc_free_num_ex() 102 void bc_init_num(bc_num *num) in bc_init_num()
|
H A D | recmul.c | 55 static inline void bc_fast_mul(bc_num n1, size_t n1len, bc_num n2, size_t n2len, bc_num *prod) in bc_fast_mul() 79 static inline void bc_fast_square(bc_num n1, size_t n1len, bc_num *prod) in bc_fast_square() 99 …ul_finish_from_vector(BC_VECTOR *prod_vector, size_t prod_arr_size, size_t prodlen, bc_num *prod) { in bc_mul_finish_from_vector() 141 static void bc_standard_mul(bc_num n1, size_t n1len, bc_num n2, size_t n2len, bc_num *prod) in bc_standard_mul() 195 static void bc_standard_square(bc_num n1, size_t n1len, bc_num *prod) in bc_standard_square() 243 bc_num bc_multiply(bc_num n1, bc_num n2, size_t scale) in bc_multiply() 245 bc_num prod; in bc_multiply() 271 bc_num bc_square(bc_num n1, size_t scale) in bc_square() 273 bc_num prod; in bc_square()
|
H A D | add.c | 42 bc_num bc_add(bc_num n1, bc_num n2, size_t scale_min) in bc_add() 44 bc_num sum = NULL; in bc_add()
|
H A D | sub.c | 42 bc_num bc_sub(bc_num n1, bc_num n2, size_t scale_min) in bc_sub() 44 bc_num diff = NULL; in bc_sub()
|
H A D | floor_or_ceil.c | 21 bc_num bc_floor_or_ceil(bc_num num, bool is_floor) in bc_floor_or_ceil() 24 bc_num result = bc_new_num(num->n_len, 0); in bc_floor_or_ceil() 50 bc_num tmp = _bc_do_add(result, BCG(_one_)); in bc_floor_or_ceil()
|
H A D | raisemod.c | 37 raise_mod_status bc_raisemod(bc_num base, bc_num expo, bc_num mod, bc_num *result, size_t scale) in bc_raisemod() 39 bc_num power, exponent, modulus, parity, temp; in bc_raisemod()
|
H A D | compare.c | 42 bcmath_compare_result _bc_do_compare(bc_num n1, bc_num n2, size_t scale, bool use_sign) in _bc_do_compare() 142 bcmath_compare_result bc_compare(bc_num n1, bc_num n2, size_t scale) in bc_compare()
|
H A D | doaddsub.c | 41 bc_num _bc_do_add(bc_num n1, bc_num n2) in _bc_do_add() 43 bc_num sum; in _bc_do_add() 172 bc_num _bc_do_sub(bc_num n1, bc_num n2) in _bc_do_sub() 174 bc_num diff; in _bc_do_sub()
|
H A D | zero.c | 38 bool bc_is_zero_for_scale(bc_num num, size_t scale) in bc_is_zero_for_scale() 58 bool bc_is_zero(bc_num num) in bc_is_zero()
|
H A D | rmzero.c | 39 void _bc_rm_leading_zeros(bc_num num) in _bc_rm_leading_zeros() 48 void bc_rm_trailing_zeros(bc_num num) in bc_rm_trailing_zeros()
|
H A D | round.c | 21 void bc_round(bc_num num, zend_long precision, zend_long mode, bc_num *result) in bc_round() 161 bc_num tmp; in bc_round() 168 bc_num scaled_one = bc_new_num((*result)->n_len, (*result)->n_scale); in bc_round()
|
H A D | sqrt.c | 39 bool bc_sqrt(bc_num *num, size_t scale) in bc_sqrt() 41 const bc_num local_num = *num; in bc_sqrt() 64 bc_num guess, guess1, point5, diff; in bc_sqrt()
|
H A D | long2num.c | 23 bc_num bc_long2num(zend_long lval) in bc_long2num() 25 bc_num num; in bc_long2num()
|
H A D | neg.c | 36 bool bc_is_neg(bc_num num) in bc_is_neg()
|
H A D | nearzero.c | 40 bool bc_is_near_zero(bc_num num, size_t scale) in bc_is_near_zero()
|
H A D | num2long.c | 40 long bc_num2long(bc_num num) in bc_num2long()
|
H A D | int2num.c | 36 void bc_int2num(bc_num *num, int val) in bc_int2num()
|
H A D | num2str.c | 37 zend_string *bc_num2str_ex(bc_num num, size_t scale) in bc_num2str_ex()
|
H A D | div.c | 259 const char *divisor, size_t divisor_len, bc_num *quot, size_t quot_len in bc_do_div() 331 bool bc_divide(bc_num numerator, bc_num divisor, bc_num *quot, size_t scale) in bc_divide()
|
/php-src/ext/bcmath/ |
H A D | php_bcmath.h | 33 bc_num _zero_; 34 bc_num _one_; 35 bc_num _two_; 54 bc_num num;
|
H A D | bcmath.c | 1019 bc_num n1, bc_num n2, bc_num *ret, in bcmath_number_add_internal() 1031 bc_num n1, bc_num n2, bc_num *ret, in bcmath_number_sub_internal() 1043 bc_num n1, bc_num n2, bc_num *ret, in bcmath_number_mul_internal() 1060 bc_num n1, bc_num n2, bc_num *ret, in bcmath_number_div_internal() 1083 bc_num n1, bc_num n2, bc_num *ret, in bcmath_number_mod_internal() 1098 bc_num n1, bc_num n2, bc_num *ret, in bcmath_number_pow_internal() 1233 bc_num n1 = NULL; in bcmath_number_do_operation() 1234 bc_num n2 = NULL; in bcmath_number_do_operation() 1251 bc_num ret = NULL; in bcmath_number_do_operation() 1320 bc_num n1 = NULL; in bcmath_number_compare() [all …]
|