Lines Matching refs:bc_num
37 typedef struct bc_struct *bc_num; typedef
93 bc_num _bc_new_num_ex(int length, int scale, int persistent);
95 void _bc_free_num_ex(bc_num *num, int persistent);
97 bc_num bc_copy_num(bc_num num);
99 void bc_init_num(bc_num *num);
101 int bc_str2num(bc_num *num, char *str, int scale);
103 zend_string *bc_num2str_ex(bc_num num, int scale);
105 void bc_int2num(bc_num *num, int val);
107 long bc_num2long(bc_num num);
109 int bc_compare(bc_num n1, bc_num n2);
111 char bc_is_zero(bc_num num);
113 char bc_is_zero_for_scale(bc_num num, int scale);
115 char bc_is_near_zero(bc_num num, int scale);
117 char bc_is_neg(bc_num num);
119 void bc_add(bc_num n1, bc_num n2, bc_num *result, int scale_min);
121 void bc_sub(bc_num n1, bc_num n2, bc_num *result, int scale_min);
123 void bc_multiply(bc_num n1, bc_num n2, bc_num *prod, int scale);
125 int bc_divide(bc_num n1, bc_num n2, bc_num *quot, int scale);
127 int bc_modulo(bc_num num1, bc_num num2, bc_num *resul, int scale);
129 int bc_divmod(bc_num num1, bc_num num2, bc_num *quo, bc_num *rem, int scale);
131 zend_result bc_raisemod(bc_num base, bc_num expo, bc_num mo, bc_num *result, int scale);
133 void bc_raise(bc_num num1, bc_num num2, bc_num *resul, int scale);
135 int bc_sqrt(bc_num *num, int scale);
137 void bc_out_num(bc_num num, int o_base, void (* out_char)(char), int leading_zero);