Definition in file vect_dsp32_add_and_saturate.c.
#include "dsp.h"
#include "preprocessor.h"
Go to the source code of this file.
Defines | |
| #define | DSP32_ADD_KERNEL_X_FCT(x_num, data) |
| #define | DSP32_ADDITION(x_num, data) |
Functions | |
| void | dsp32_vect_add_and_sat (dsp32_t *vect1, dsp32_t *vect2, dsp32_t *vect3, int size) |
| 32-bit fixed point version of the vector additon function. | |
| #define DSP32_ADD_KERNEL_X_FCT | ( | x_num, | |||
| data | ) |
Value:
static void TPASTE2(dsp32_vect_add_kernel_x, x_num)(dsp32_t *vect1, dsp32_t *vect2, dsp32_t *vect3) \ { \ MREPEAT(x_num, DSP32_ADDITION, ""); \ }
Definition at line 66 of file vect_dsp32_add_and_saturate.c.
| #define DSP32_ADDITION | ( | x_num, | |||
| data | ) |
Value:
{ \
S64 temp = vect2[x_num] + vect3[x_num]; \
if (temp > (S64) DSP_Q_MAX(DSP32_QA, DSP32_QB)) \
vect1[x_num] = DSP_Q_MAX(DSP32_QA, DSP32_QB); \
else if (temp < (S64) DSP_Q_MIN(DSP32_QA, DSP32_QB)) \
vect1[x_num] = DSP_Q_MIN(DSP32_QA, DSP32_QB); \
else \
vect1[x_num] = (dsp32_t) temp; \
}
Definition at line 52 of file vect_dsp32_add_and_saturate.c.
1.5.5