Lines Matching refs:pow_10
84 static int pow_10(unsigned power) in pow_10() function
112 *micro_frac = (rem / divisor) * pow_10(6-exp); in simple_div()
118 *val1 = no/pow_10(exp); in split_micro_fraction()
119 *val2 = no%pow_10(exp) * pow_10(6-exp); in split_micro_fraction()
141 *val1 = sign * value * pow_10(exp); in convert_from_vtf_format()
161 value = abs(val1) * pow_10(-exp); in convert_to_vtf_format()
162 value += abs(val2) / pow_10(6+exp); in convert_to_vtf_format()
164 value = abs(val1) / pow_10(exp); in convert_to_vtf_format()
227 value = val1 * pow_10(6) + val2; in hid_sensor_write_samp_freq_value()
230 value = pow_10(9)/value; in hid_sensor_write_samp_freq_value()
232 value = pow_10(6)/value; in hid_sensor_write_samp_freq_value()
327 *val0 = scale0 * pow_10(exp); in adjust_exponent_nano()
334 x = scale1 / pow_10(8 - i); in adjust_exponent_nano()
335 res += (pow_10(exp - 1 - i) * x); in adjust_exponent_nano()
336 scale1 = scale1 % pow_10(8 - i); in adjust_exponent_nano()
339 *val1 = scale1 * pow_10(exp); in adjust_exponent_nano()
346 *val0 = scale0 / pow_10(exp); in adjust_exponent_nano()
347 rem = scale0 % pow_10(exp); in adjust_exponent_nano()
350 x = scale1 / pow_10(8 - i); in adjust_exponent_nano()
351 res += (pow_10(8 - exp - i) * x); in adjust_exponent_nano()
352 scale1 = scale1 % pow_10(8 - i); in adjust_exponent_nano()
354 *val1 = rem * pow_10(9 - exp) + res; in adjust_exponent_nano()