Home
last modified time | relevance | path

Searched refs:dBits (Results 1 – 3 of 3) sorted by relevance

/external/aac/libFDK/include/
Dscale.h243 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \ argument
244 ((((LONG)(src) >> (scale)) > (LONG)(((1U) << ((dBits)-1)) - 1)) \
245 ? (LONG)(((1U) << ((dBits)-1)) - 1) \
246 : (((LONG)(src) >> (scale)) < ~((LONG)(((1U) << ((dBits)-1)) - 1))) \
247 ? ~((LONG)(((1U) << ((dBits)-1)) - 1)) \
252 #define SATURATE_LEFT_SHIFT(src, scale, dBits) \ argument
253 (((LONG)(src) > ((LONG)(((1U) << ((dBits)-1)) - 1) >> (scale))) \
254 ? (LONG)(((1U) << ((dBits)-1)) - 1) \
255 : ((LONG)(src) < ~((LONG)(((1U) << ((dBits)-1)) - 1) >> (scale))) \
256 ? ~((LONG)(((1U) << ((dBits)-1)) - 1)) \
[all …]
/external/aac/libFDK/include/arm/
Dscale_arm.h151 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \ argument
153 (LONG)(((1U) << ((dBits)-1)) - 1)) \
154 ? ((LONG)(src) >> (DFRACT_BITS - 1)) ^ (LONG)(((1U) << ((dBits)-1)) - 1) \
157 #define SATURATE_LEFT_SHIFT(src, scale, dBits) \ argument
159 ((LONG)(((1U) << ((dBits)-1)) - 1) >> (scale))) \
160 ? ((LONG)(src) >> (DFRACT_BITS - 1)) ^ (LONG)(((1U) << ((dBits)-1)) - 1) \
/external/aac/libFDK/include/mips/
Dscale_mips.h116 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \ argument
117 (__builtin_mips_shll_s_w((src) >> (scale), (DFRACT_BITS - (dBits))) >> \
118 (DFRACT_BITS - (dBits)))