Lines Matching refs:exponent
46 bool bc_raise(bc_num base, long exponent, bc_num *result, size_t scale) { in bc_raise() argument
54 if (exponent == 0) { in bc_raise()
61 if (exponent < 0) { in bc_raise()
63 exponent = -exponent; in bc_raise()
67 rscale = MIN (base->n_scale * exponent, MAX(scale, base->n_scale)); in bc_raise()
73 while ((exponent & 1) == 0) { in bc_raise()
76 exponent = exponent >> 1; in bc_raise()
80 exponent = exponent >> 1; in bc_raise()
83 while (exponent > 0) { in bc_raise()
86 if ((exponent & 1) == 1) { in bc_raise()
90 exponent = exponent >> 1; in bc_raise()
115 long exponent = bc_num2long(expo); in bc_raise_bc_exponent() local
117 if (exponent == 0 && (expo->n_len > 1 || expo->n_value[0] != 0)) { in bc_raise_bc_exponent()
122 bc_raise(base, exponent, result, scale); in bc_raise_bc_exponent()