Searched refs:mantissa (Results 1 – 2 of 2) sorted by relevance
51 int mantissa = (int) (r * ONE_FLOAT); in gain_from_float() local52 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() local60 return ldexpf((exponent > 0 ? HIDDEN_BIT | mantissa : mantissa << 1) / ONE_FLOAT, in float_from_gain()
69 int mantissa = (int) (r * ONE_FLOAT); in sample_from_float() local70 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() local80 float f = ldexpf((exponent > 0 ? HIDDEN_BIT | mantissa : mantissa << 1) / ONE_FLOAT, in float_from_sample()