Lines Matching refs:number
177 struct number *
180 struct number *n;
188 bn_check(BN_set_word(n->number, 0));
211 bn_check(BN_mul_word(n->number, base));
217 bn_check(BN_add_word(n->number, v));
220 scale_number(n->number, n->scale);
222 (void)BN_div_word(n->number, base);
284 printnumber(FILE *f, const struct number *b, u_int base)
286 struct number *int_part, *fract_part;
296 if (BN_is_zero(b->number))
308 split_number(b, int_part->number, fract_part->number);
312 while (!BN_is_zero(int_part->number)) {
313 BN_ULONG rem = BN_div_word(int_part->number, base);
318 if (BN_is_negative(b->number))
329 struct number *num_base;
334 bn_check(BN_set_word(num_base->number, base));
353 split_number(fract_part, int_part->number, NULL);
354 rem = BN_get_word(int_part->number);
358 bn_check(BN_sub(fract_part->number, fract_part->number,
359 int_part->number));
392 print_ascii(FILE *f, const struct number *n)
396 numbits = BN_num_bytes(n->number) * 8;
400 ch |= BN_is_bit_set(n->number, numbits-i-1) << (7 - i);