10 #ifndef _MpDspUtilsSum_h_ 11 #define _MpDspUtilsSum_h_ 41 __asm__ __volatile__ (
"qadd %0,%1,%2;\n" 52 if ((c ^ a) & MPF_SIGN_BIT32)
55 c = (a < 0) ? (INT32_MIN+1) : INT32_MAX;
73 #ifndef MP_FIXED_POINT // [ 77 return (a > b) ? a : b;
95 #endif // MP_FIXED_POINT ] 100 ((a == INT16_MIN) ? INT16_MAX : -a) : a;
105 return (a < b) ? a : b;
110 return (a > b) ? a : b;
116 ((a == INT32_MIN) ? INT32_MAX : -a) : a;
121 return (a < b) ? a : b;
126 return (a > b) ? a : b;
129 #endif // _MpDspUtilsSum_h_ #define MPF_SIGN_BIT32
Definition: MpDspUtils.h:36
static void addMul_I(int32_t &a, int16_t b, int16_t c)
Perform (a+=b*c) saturated (32-bit accumulator, 16-bit operands).
Definition: MpDspUtilsSum.h:32
static void add_I(int16_t &a, int16_t b)
Perform (a+=b) saturated (16-bit).
Definition: MpDspUtilsSum.h:27
static int16_t minimum(int16_t a, int16_t b)
Perform minimum value calculation.
Definition: MpDspUtilsSum.h:103
static int16_t abs(int16_t a)
Perform absolute value calculation with saturation.
Definition: MpDspUtilsSum.h:97
static int16_t maximum(int16_t a, int16_t b)
Perform maximum value calculation.
Definition: MpDspUtilsSum.h:108
#define MPF_SATURATE16(val)
Saturate val to fit 16-bit signed integer.
Definition: MpDspUtils.h:60
static int16_t add(int16_t a, int16_t b)
Return (a+b) saturated (16-bit).
Definition: MpDspUtilsSum.h:22
#define MPF_EXTRACRT16(val)
Return 16 bit integer.
Definition: MpDspUtils.h:71