Searched refs:pow_10 (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/iio/common/hid-sensors/
H A Dhid-sensor-attributes.c63 static int pow_10(unsigned power) pow_10() function
91 *micro_frac = (rem / divisor) * pow_10(6-exp); simple_div()
97 *val1 = no/pow_10(exp); split_micro_fraction()
98 *val2 = no%pow_10(exp) * pow_10(6-exp); split_micro_fraction()
120 *val1 = sign * value * pow_10(exp); convert_from_vtf_format()
140 value = abs(val1) * pow_10(-exp); convert_to_vtf_format()
141 value += abs(val2) / pow_10(6+exp); convert_to_vtf_format()
143 value = abs(val1) / pow_10(exp); convert_to_vtf_format()
206 value = val1 * pow_10(6) + val2; hid_sensor_write_samp_freq_value()
209 value = pow_10(9)/value; hid_sensor_write_samp_freq_value()
211 value = pow_10(6)/value; hid_sensor_write_samp_freq_value()
286 *val0 = scale0 * pow_10(exp); adjust_exponent_micro()
293 x = scale1 / pow_10(5 - i); adjust_exponent_micro()
294 res += (pow_10(exp - 1 - i) * x); adjust_exponent_micro()
295 scale1 = scale1 % pow_10(5 - i); adjust_exponent_micro()
298 *val1 = scale1 * pow_10(exp); adjust_exponent_micro()
305 *val0 = scale0 / pow_10(exp); adjust_exponent_micro()
306 rem = scale0 % pow_10(exp); adjust_exponent_micro()
309 x = scale1 / pow_10(5 - i); adjust_exponent_micro()
310 res += (pow_10(5 - exp - i) * x); adjust_exponent_micro()
311 scale1 = scale1 % pow_10(5 - i); adjust_exponent_micro()
313 *val1 = rem * pow_10(6 - exp) + res; adjust_exponent_micro()

Completed in 102 milliseconds