Lines Matching full:divisor
71 static void simple_div(int dividend, int divisor, int *whole, in simple_div() argument
78 if (divisor == 0) { in simple_div()
82 *whole = dividend/divisor; in simple_div()
83 rem = dividend % divisor; in simple_div()
85 while (rem <= divisor) { in simple_div()
89 *micro_frac = (rem / divisor) * int_pow(10, 6 - exp); in simple_div()
95 int divisor = int_pow(10, exp); in split_micro_fraction() local
97 *val1 = no / divisor; in split_micro_fraction()
98 *val2 = no % divisor * int_pow(10, 6 - exp); in split_micro_fraction()
133 int divisor; in convert_to_vtf_format() local
141 divisor = int_pow(10, 6 + exp); in convert_to_vtf_format()
143 value += abs(val2) / divisor; in convert_to_vtf_format()
145 divisor = int_pow(10, exp); in convert_to_vtf_format()
146 value = abs(val1) / divisor; in convert_to_vtf_format()
358 int divisor; in adjust_exponent_nano() local
372 divisor = int_pow(10, 8 - i); in adjust_exponent_nano()
373 x = scale1 / divisor; in adjust_exponent_nano()
375 scale1 = scale1 % divisor; in adjust_exponent_nano()
385 divisor = int_pow(10, exp); in adjust_exponent_nano()
386 *val0 = scale0 / divisor; in adjust_exponent_nano()
387 rem = scale0 % divisor; in adjust_exponent_nano()
390 divisor = int_pow(10, 8 - i); in adjust_exponent_nano()
391 x = scale1 / divisor; in adjust_exponent_nano()
393 scale1 = scale1 % divisor; in adjust_exponent_nano()