Lines Matching +defs:a +defs:b
45 #define SHR16(a,shift) ((a) >> (shift)) argument
46 #define SHL16(a,shift) ((a) << (shift)) argument
47 #define SHR32(a,shift) ((a) >> (shift)) argument
48 #define SHL32(a,shift) ((a) << (shift)) argument
49 #define PSHR16(a,shift) (SHR16((a)+((1<<((shift))>>1)),shift)) argument
50 #define PSHR32(a,shift) (SHR32((a)+((EXTEND32(1)<<((shift))>>1)),shift)) argument
51 #define VSHR32(a, shift) (((shift)>0) ? SHR32(a, shift) : SHL32(a, -(shift))) argument
52 #define SATURATE16(x,a) (((x)>(a) ? (a) : (x)<-(a) ? -(a) : (x))) argument
53 #define SATURATE32(x,a) (((x)>(a) ? (a) : (x)<-(a) ? -(a) : (x))) argument
55 #define SATURATE32PSHR(x,shift,a) (((x)>=(SHL32(a,shift))) ? (a) : \ argument
59 #define SHR(a,shift) ((a) >> (shift)) argument
60 #define SHL(a,shift) ((spx_word32_t)(a) << (shift)) argument
61 #define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift)) argument
62 #define SATURATE(x,a) (((x)>(a) ? (a) : (x)<-(a) ? -(a) : (x))) argument
65 #define ADD16(a,b) ((spx_word16_t)((spx_word16_t)(a)+(spx_word16_t)(b))) argument
66 #define SUB16(a,b) ((spx_word16_t)(a)-(spx_word16_t)(b)) argument
67 #define ADD32(a,b) ((spx_word32_t)(a)+(spx_word32_t)(b)) argument
68 #define SUB32(a,b) ((spx_word32_t)(a)-(spx_word32_t)(b)) argument
72 #define MULT16_16_16(a,b) ((((spx_word16_t)(a))*((spx_word16_t)(b)))) argument
75 #define MULT16_16(a,b) (((spx_word32_t)(spx_word16_t)(a))*((spx_word32_t)(spx_word16_t)(b))) argument
77 #define MAC16_16(c,a,b) (ADD32((c),MULT16_16((a),(b)))) argument
78 #define MULT16_32_Q12(a,b) ADD32(MULT16_16((a),SHR((b),12)), SHR(MULT16_16((a),((b)&0x00000fff)),12… argument
79 #define MULT16_32_Q13(a,b) ADD32(MULT16_16((a),SHR((b),13)), SHR(MULT16_16((a),((b)&0x00001fff)),13… argument
80 #define MULT16_32_Q14(a,b) ADD32(MULT16_16((a),SHR((b),14)), SHR(MULT16_16((a),((b)&0x00003fff)),14… argument
82 #define MULT16_32_Q11(a,b) ADD32(MULT16_16((a),SHR((b),11)), SHR(MULT16_16((a),((b)&0x000007ff)),11… argument
83 #define MAC16_32_Q11(c,a,b) ADD32(c,ADD32(MULT16_16((a),SHR((b),11)), SHR(MULT16_16((a),((b)&0x0000… argument
85 #define MULT16_32_P15(a,b) ADD32(MULT16_16((a),SHR((b),15)), PSHR(MULT16_16((a),((b)&0x00007fff)),1… argument
86 #define MULT16_32_Q15(a,b) ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x00007fff)),15… argument
87 #define MAC16_32_Q15(c,a,b) ADD32(c,ADD32(MULT16_16((a),SHR((b),15)), SHR(MULT16_16((a),((b)&0x0000… argument
90 #define MAC16_16_Q11(c,a,b) (ADD32((c),SHR(MULT16_16((a),(b)),11))) argument
91 #define MAC16_16_Q13(c,a,b) (ADD32((c),SHR(MULT16_16((a),(b)),13))) argument
92 #define MAC16_16_P13(c,a,b) (ADD32((c),SHR(ADD32(4096,MULT16_16((a),(b))),13))) argument
94 #define MULT16_16_Q11_32(a,b) (SHR(MULT16_16((a),(b)),11)) argument
95 #define MULT16_16_Q13(a,b) (SHR(MULT16_16((a),(b)),13)) argument
96 #define MULT16_16_Q14(a,b) (SHR(MULT16_16((a),(b)),14)) argument
97 #define MULT16_16_Q15(a,b) (SHR(MULT16_16((a),(b)),15)) argument
99 #define MULT16_16_P13(a,b) (SHR(ADD32(4096,MULT16_16((a),(b))),13)) argument
100 #define MULT16_16_P14(a,b) (SHR(ADD32(8192,MULT16_16((a),(b))),14)) argument
101 #define MULT16_16_P15(a,b) (SHR(ADD32(16384,MULT16_16((a),(b))),15)) argument
103 #define MUL_16_32_R15(a,bh,bl) ADD32(MULT16_16((a),(bh)), SHR(MULT16_16((a),(bl)),15)) argument
105 #define DIV32_16(a,b) ((spx_word16_t)(((spx_word32_t)(a))/((spx_word16_t)(b)))) argument
106 #define PDIV32_16(a,b) ((spx_word16_t)(((spx_word32_t)(a)+((spx_word16_t)(b)>>1))/((spx_word16_t)(b… argument
107 #define DIV32(a,b) (((spx_word32_t)(a))/((spx_word32_t)(b))) argument
108 #define PDIV32(a,b) (((spx_word32_t)(a)+((spx_word16_t)(b)>>1))/((spx_word32_t)(b))) argument