Lines Matching refs:FRACT_BITS
112 #define FRACT_BITS 16 /* single precision */ macro
124 #elif (SAMPLE_BITS == FRACT_BITS)
131 #error SAMPLE_BITS different from FRACT_BITS or DFRACT_BITS not implemented!
137 #define SGL_MASK ((1UL << FRACT_BITS) - 1) /* 16bit: (2^16)-1 = 0xFFFF */
140 (FRACT_BITS - 1) /* maximum possible shift for FIXP_SGL values */
146 #define FRACT_FIX_SCALE ((INT64(1) << (FRACT_BITS - 1)))
161 ((((((val) >> (DFRACT_BITS - FRACT_BITS - 1)) + 1) > \
162 (((LONG)1 << FRACT_BITS) - 1)) && \
164 ? (FIXP_SGL)(SHORT)(((LONG)1 << (FRACT_BITS - 1)) - 1) \
165 : (FIXP_SGL)(SHORT)((((val) >> (DFRACT_BITS - FRACT_BITS - 1)) + 1) >> \
215 #define FX_ACC2FX_SGL(val) ((FIXP_SGL)((val) >> (ACCU_BITS - FRACT_BITS)))
217 #define FX_SGL2FX_ACC(val) ((FIXP_ACC)((LONG)(val) << (ACCU_BITS - FRACT_BITS)))
219 ((FIXP_DBL)((LONG)(val) << (DFRACT_BITS - FRACT_BITS)))
220 #define FX_DBL2FX_SGL(val) ((FIXP_SGL)((val) >> (DFRACT_BITS - FRACT_BITS)))