Lines Matching refs:b
59 # define CHECK_OVERFLOW_OP(a,op,b) \ argument
60 if ( (SAMPPROD)(a) op (SAMPPROD)(b) > SAMP_MAX || (SAMPPROD)(a) op (SAMPPROD)(b) < SAMP_MIN ) { \
61 …w @ " __FILE__ "(%d): (%d " #op" %d) = %ld\n",__LINE__,(a),(b),(SAMPPROD)(a) op (SAMPPROD)(b) ); }
63 #define CHECK_OVERFLOW(a, op, b) {} argument
68 # define smul(a,b) ( (SAMPPROD)(a)*(b) ) argument
71 # define S_MUL(a,b) sround( smul(a,b) ) argument
73 # define C_MUL(m,a,b) \ argument
74 do{ (m).r = sround( smul((a).r,(b).r) - smul((a).i,(b).i) ); \
75 (m).i = sround( smul((a).r,(b).i) + smul((a).i,(b).r) ); }while(0)
90 # define S_MUL(a,b) ( (a)*(b) ) argument
91 #define C_MUL(m,a,b) \ argument
92 do{ (m).r = (a).r*(b).r - (a).i*(b).i;\
93 (m).i = (a).r*(b).i + (a).i*(b).r; }while(0)
101 # define CHECK_OVERFLOW_OP(a,op,b) /* noop */ argument
104 #define C_ADD( res, a,b)\ argument
106 CHECK_OVERFLOW_OP((a).r,+,(b).r)\
107 CHECK_OVERFLOW_OP((a).i,+,(b).i)\
108 (res).r=(a).r+(b).r; (res).i=(a).i+(b).i; \
110 #define C_SUB( res, a,b)\ argument
112 CHECK_OVERFLOW_OP((a).r,-,(b).r)\
113 CHECK_OVERFLOW_OP((a).i,-,(b).i)\
114 (res).r=(a).r-(b).r; (res).i=(a).i-(b).i; \