Lines Matching full:exponent
175 int exponent; in max44009_lux_raw() local
183 /* The exponent byte is just the upper nibble of the Lux High Byte */ in max44009_lux_raw()
184 exponent = (hi >> 4) & 0xf; in max44009_lux_raw()
187 * The exponent value is base 2 to the power of the raw exponent byte. in max44009_lux_raw()
189 exponent = 1 << exponent; in max44009_lux_raw()
191 return exponent * mantissa; in max44009_lux_raw()
367 int mantissa, exponent; in max44009_read_threshold() local
388 * Exponent is base 2 to the power of the threshold exponent byte in max44009_read_threshold()
391 exponent = byte & MAX44009_THRESH_EXP_MASK; in max44009_read_threshold()
392 exponent >>= MAX44009_THRESH_EXP_RSHIFT; in max44009_read_threshold()
394 return (1 << exponent) * mantissa; in max44009_read_threshold()