Home | History | Annotate | Download | only in arm

Lines Matching refs:src

95 inline static INT shiftRightSat(INT src, int scale)
102 : "r"(src>>scale), "M"(SAMPLE_BITS)
108 #define SATURATE_INT_PCM_RIGHT_SHIFT(src, scale) shiftRightSat(src, scale)
110 inline static INT shiftLeftSat(INT src, int scale)
117 : "r"(src<<scale), "M"(SAMPLE_BITS)
123 #define SATURATE_INT_PCM_LEFT_SHIFT(src, scale) shiftLeftSat(src, scale)
143 #define SATURATE_RIGHT_SHIFT(src, scale, dBits) \
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) \
146 : ((LONG)(src) >> (scale))
148 #define SATURATE_LEFT_SHIFT(src, scale, dBits) \
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) \
151 : ((LONG)(src) << (scale))