Lines Matching refs:bc_num
39 typedef struct bc_struct *bc_num; typedef
81 bc_num _bc_new_num_ex(size_t length, size_t scale, bool persistent);
83 bc_num _bc_new_num_nonzeroed_ex(size_t length, size_t scale, bool persistent);
85 void _bc_free_num_ex(bc_num *num, bool persistent);
88 static inline bc_num bc_copy_num(bc_num num) in bc_copy_num()
94 void bc_init_num(bc_num *num);
96 bool bc_str2num(bc_num *num, const char *str, const char *end, size_t scale, size_t *full_scale, bo…
98 bc_num bc_long2num(zend_long lval);
100 zend_string *bc_num2str_ex(bc_num num, size_t scale);
102 void bc_int2num(bc_num *num, int val);
104 long bc_num2long(bc_num num);
112 bcmath_compare_result bc_compare(bc_num n1, bc_num n2, size_t scale);
114 bool bc_is_zero(bc_num num);
116 bool bc_is_zero_for_scale(bc_num num, size_t scale);
118 bool bc_is_near_zero(bc_num num, size_t scale);
120 bool bc_is_neg(bc_num num);
122 void bc_rm_trailing_zeros(bc_num num);
124 bc_num bc_add(bc_num n1, bc_num n2, size_t scale_min);
127 bc_num add_ex = bc_add(n1, n2, scale_min); \
132 bc_num bc_sub(bc_num n1, bc_num n2, size_t scale_min);
135 bc_num sub_ex = bc_sub(n1, n2, scale_min); \
140 bc_num bc_multiply(bc_num n1, bc_num n2, size_t scale);
143 bc_num mul_ex = bc_multiply(n1, n2, scale_min); \
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);
158 void bc_round(bc_num num, zend_long places, zend_long mode, bc_num *result);
169 raise_mod_status bc_raisemod(bc_num base, bc_num exponent, bc_num mod, bc_num *result, size_t scale…
171 bool bc_raise(bc_num base, long exponent, bc_num *result, size_t scale);
173 void bc_raise_bc_exponent(bc_num base, bc_num exponent, bc_num *resul, size_t scale);
175 bool bc_sqrt(bc_num *num, size_t scale);