Home | History | Annotate | Download | only in libspeex

Lines Matching refs:shift

45 #define SHR16(a,shift) ((a) >> (shift))
46 #define SHL16(a,shift) ((a) << (shift))
47 #define SHR32(a,shift) ((a) >> (shift))
48 #define SHL32(a,shift) ((a) << (shift))
49 #define PSHR16(a,shift) (SHR16((a)+((1<<((shift))>>1)),shift))
50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift))
51 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift)))
55 #define SATURATE32PSHR(x,shift,a) (((x)>=(SHL32(a,shift))) ? (a) : \
56 (x)<=-(SHL32(a,shift)) ? -(a) : \
57 (PSHR32(x, shift)))
59 #define SHR(a,shift) ((a) >> (shift))
60 #define SHL(a,shift) ((spx_word32_t)(a) << (shift))
61 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))