Lines Matching refs:exponent
42 void bc_raise(bc_num num1, long exponent, bc_num *result, size_t scale) in bc_raise() argument
51 if (exponent == 0) { in bc_raise()
58 if (exponent < 0) { in bc_raise()
60 exponent = -exponent; in bc_raise()
64 rscale = MIN (num1->n_scale * exponent, MAX(scale, num1->n_scale)); in bc_raise()
70 while ((exponent & 1) == 0) { in bc_raise()
73 exponent = exponent >> 1; in bc_raise()
77 exponent = exponent >> 1; in bc_raise()
80 while (exponent > 0) { in bc_raise()
83 if ((exponent & 1) == 1) { in bc_raise()
87 exponent = exponent >> 1; in bc_raise()
110 long exponent = bc_num2long(expo); in bc_raise_bc_exponent() local
112 if (exponent == 0 && (expo->n_len > 1 || expo->n_value[0] != 0)) { in bc_raise_bc_exponent()
117 bc_raise(base, exponent, result, scale); in bc_raise_bc_exponent()