Home
last modified time | relevance | path

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

/external/aac/libFDK/include/
Dscale.h204 …#define SATURATE_RIGHT_SHIFT(src, scale, dBits) … argument
205 …( (((LONG)(src)>>(scale)) > (LONG)(((1U)<<((dBits)-1))-1)) ? (LONG)(((1U)<<((dBits)-1))-1) …
206 … : (((LONG)(src)>>(scale)) < ~((LONG)(((1U)<<((dBits)-1))-1))) ? ~((LONG)(((1U)<<((dBits)-1))-1)) \
211 …#define SATURATE_LEFT_SHIFT(src, scale, dBits) … argument
212 …( ((LONG)(src) > ((LONG)(((1U)<<((dBits)-1))-1)>>(scale))) ? (LONG)(((1U)<<((dBits)-1))-1) …
213 … : ((LONG)(src) < ~((LONG)(((1U)<<((dBits)-1))-1)>>(scale))) ? ~((LONG)(((1U)<<((dBits)-1))-1)) \
218 #define SATURATE_SHIFT(src, scale, dBits) \ argument
220 ? SATURATE_LEFT_SHIFT((src), -(scale), (dBits)) \
221 : SATURATE_RIGHT_SHIFT((src), (scale), (dBits)) )
229 #define SATURATE_LEFT_SHIFT_ALT(src, scale, dBits) … argument
[all …]
/external/aac/libFDK/include/arm/
Dscale.h143 …#define SATURATE_RIGHT_SHIFT(src, scale, dBits) … argument
144 …( (((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS-1)))>>(scale)) > (LONG)(((1U)<<((dBits)-1))-1)) …
145 … ? ((LONG)(src) >> (DFRACT_BITS-1)) ^ (LONG)(((1U)<<((dBits)-1))-1) \
148 …#define SATURATE_LEFT_SHIFT(src, scale, dBits) … argument
149 …( ((LONG)(src) ^ ((LONG)(src) >> (DFRACT_BITS-1))) > ((LONG)(((1U)<<((dBits)-1))-1) >> (scale)) ) …
150 … ? ((LONG)(src) >> (DFRACT_BITS-1)) ^ (LONG)(((1U)<<((dBits)-1))-1) \
/external/aac/libFDK/include/mips/
Dscale.h104 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \ argument
105 (__builtin_mips_shll_s_w((src)>>scale,(DFRACT_BITS-(dBits)))>>(DFRACT_BITS-(dBits)))