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

/system/media/audio_utils/
H A Dminifloat.c24 #define MANTISSA_BITS 13 macro
25 #define MANTISSA_MAX ((1 << MANTISSA_BITS) - 1)
26 #define HIDDEN_BIT (1 << MANTISSA_BITS)
27 #define ONE_FLOAT ((float) (1 << (MANTISSA_BITS + 1)))
29 #define MINIFLOAT_MAX ((EXPONENT_MAX << MANTISSA_BITS) | MANTISSA_MAX)
31 #if EXPONENT_BITS + MANTISSA_BITS != 16
32 #error EXPONENT_BITS and MANTISSA_BITS must sum to 16
48 if (-exp >= MANTISSA_BITS) {
52 return exp > 0 ? (exp << MANTISSA_BITS) | (mantissa & ~HIDDEN_BIT) :
59 int exponent = (a >> MANTISSA_BITS)
[all...]

Completed in 3 milliseconds