Lines Matching refs:number
183 struct number *
186 struct number *n; in readnumber()
193 BN_zero(n->number); in readnumber()
216 bn_check(BN_mul_word(n->number, base)); in readnumber()
217 bn_check(BN_add_word(n->number, v)); in readnumber()
223 struct number *quotient, *divisor, *_n; in readnumber()
236 bn_check(BN_exp(divisor->number, base_n, exponent, ctx)); in readnumber()
247 BN_mod_word(n->number, 10) == 0) { in readnumber()
317 printnumber(FILE *f, const struct number *b, u_int base) in printnumber()
319 struct number *fract_part, *int_part; in printnumber()
329 if (BN_is_zero(b->number)) in printnumber()
341 split_number(b, int_part->number, fract_part->number); in printnumber()
345 while (!BN_is_zero(int_part->number)) { in printnumber()
346 BN_ULONG rem = BN_div_word(int_part->number, base); in printnumber()
351 if (BN_is_negative(b->number)) in printnumber()
362 struct number *num_base; in printnumber()
367 bn_check(BN_set_word(num_base->number, base)); in printnumber()
386 split_number(fract_part, int_part->number, NULL); in printnumber()
387 rem = BN_get_word(int_part->number); in printnumber()
391 bn_check(BN_sub(fract_part->number, fract_part->number, in printnumber()
392 int_part->number)); in printnumber()
426 print_ascii(FILE *f, const struct number *n) in print_ascii()
431 v = BN_dup(n->number); in print_ascii()