Home
last modified time | relevance | path

Searched refs:mantissa (Results 1 – 2 of 2) sorted by relevance

/system/media/audio_utils/
Dminifloat.c51 int mantissa = (int) (r * ONE_FLOAT); in gain_from_float() local
52 return exp > 0 ? (exp << MANTISSA_BITS) | (mantissa & ~HIDDEN_BIT) : in gain_from_float()
53 (mantissa >> (1 - exp)) & MANTISSA_MAX; in gain_from_float()
58 int mantissa = a & MANTISSA_MAX; in float_from_gain() local
60 return ldexpf((exponent > 0 ? HIDDEN_BIT | mantissa : mantissa << 1) / ONE_FLOAT, in float_from_gain()
Dsample.c69 int mantissa = (int) (r * ONE_FLOAT); in sample_from_float() local
70 sample_minifloat_t ret = exp > 0 ? (exp << MANTISSA_BITS) | (mantissa & ~HIDDEN_BIT) : in sample_from_float()
71 (mantissa >> (1 - exp)) & MANTISSA_MAX; in sample_from_float()
78 int mantissa = a & MANTISSA_MAX; in float_from_sample() local
80 float f = ldexpf((exponent > 0 ? HIDDEN_BIT | mantissa : mantissa << 1) / ONE_FLOAT, in float_from_sample()