Lines Matching refs:dBits
204 …#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
230 …( ((LONG)(src) > ((LONG)(((1U)<<((dBits)-1))-1)>>(scale))) ? (LONG)(((1U)<<((dBits)-1))-1) …
231 … : ((LONG)(src) < ~((LONG)(((1U)<<((dBits)-1))-2)>>(scale))) ? ~((LONG)(((1U)<<((dBits)-1))-2)) \
236 …#define SATURATE_RIGHT_SHIFT_ALT(src, scale, dBits) … argument
237 …( (((LONG)(src)>>(scale)) > (LONG)(((1U)<<((dBits)-1))-1)) ? (LONG)(((1U)<<((dBits)-1))-1) …
238 … : (((LONG)(src)>>(scale)) < ~((LONG)(((1U)<<((dBits)-1))-2))) ? ~((LONG)(((1U)<<((dBits)-1))-2)) \