Microchip® Advanced Software Framework

vect_dsp32_realmul_at32uc.c File Reference
#include "dsp.h"
#include "preprocessor.h"

Macros

#define ASM_INSTRUCT_COMPACKED(str)   str
 
#define ASM_INSTRUCT_EXTENDED(str)   str
 
#define DSP32_REALMUL_END_KERNEL_X_FCT(x_num, data)   __attribute__((__naked__)) DSP32_REALMUL_END_KERNEL_X_FCT__(x_num, data)
 
#define DSP32_REALMUL_END_KERNEL_X_FCT__(x_num, data)
 
#define DSP32_REALMULTIPLICATION_0(r_vect1, r_vect2, real)
 
#define DSP32_REALMULTIPLICATION_1(r_vect1, r_vect2, real)
 
#define DSP32_REALMULTIPLICATION_2(r_vect1, r_vect2, real)
 
#define DSP32_REALMULTIPLICATION_3(r_vect1, r_vect2, real)
 

Functions

void dsp32_vect_realmul (dsp32_t *vect1, dsp32_t *vect2, int size, dsp32_t real)
 32-bit fixed point version of the vector multiplication with a real number. More...
 
static int dsp32_vect_realmul_kernel_ext (dsp32_t *vect1, dsp32_t *vect2, int size, dsp32_t real)
 avr32-uc3 32 bit version More...
 

#define ASM_INSTRUCT_COMPACKED (   str)    str
#define ASM_INSTRUCT_EXTENDED (   str)    str
#define DSP32_REALMUL_END_KERNEL_X_FCT (   x_num,
  data 
)    __attribute__((__naked__)) DSP32_REALMUL_END_KERNEL_X_FCT__(x_num, data)
#define DSP32_REALMUL_END_KERNEL_X_FCT__ (   x_num,
  data 
)
Value:
static void TPASTE2(dsp32_vect_realmul_end_kernel_x, x_num)(dsp32_t *vect1, dsp32_t *vect2, dsp32_t real) \
{ \
__asm__ __volatile__ ( \
"pushm r0-r7, lr\n\t" \
TPASTE2(DSP32_REALMULTIPLICATION_, x_num)(r12, r11, r10) \
"popm r0-r7, pc\n\t" \
); \
}
dsp32_t__ dsp32_t
32-bit signed fixed point type optimized for 32-bit or lower microcontrollers
Definition: dsp_types.h:201
A_ALIGNED dsp16_t vect2[SIZE]
The input signal resulting from a multiplication between a cosine and a sine.
Definition: complex_fft_example.c:92
A_ALIGNED dsp16_complex_t vect1[SIZE]
The output buffer.
Definition: complex_fft_example.c:89
#define TPASTE2(a, b)
Definition: tpaste.h:61
#define DSP32_REALMULTIPLICATION_0 (   r_vect1,
  r_vect2,
  real 
)
#define DSP32_REALMULTIPLICATION_1 (   r_vect1,
  r_vect2,
  real 
)
Value:
"ld.w r0, "ASTRINGZ(r_vect2)"[0x0]\n\t" \
\
"muls.d r4, r0, "ASTRINGZ(real)"\n\t" \
"lsl r3, r5, "ASTRINGZ(32-DSP32_QB)"\n\t" \
"or r3, r3, r4 >> "ASTRINGZ(DSP32_QB)"\n\t" \
"st.w "ASTRINGZ(r_vect1)"[0x0], r3\n\t"
#define DSP32_QB
number of fractional bits
Definition: dsp_types.h:167
#define ASTRINGZ(x)
Absolute stringize.
Definition: stringz.h:71
#define DSP32_REALMULTIPLICATION_2 (   r_vect1,
  r_vect2,
  real 
)
Value:
"ld.d r0, "ASTRINGZ(r_vect2)"[0x0]\n\t" \
\
"muls.d r4, r1, "ASTRINGZ(real)"\n\t" \
"lsl r3, r5, "ASTRINGZ(32-DSP32_QB)"\n\t" \
"or r3, r3, r4 >> "ASTRINGZ(DSP32_QB)"\n\t" \
\
"muls.d r4, r0, "ASTRINGZ(real)"\n\t" \
"lsl r2, r5, "ASTRINGZ(32-DSP32_QB)"\n\t" \
"or r2, r2, r4 >> "ASTRINGZ(DSP32_QB)"\n\t" \
"st.d "ASTRINGZ(r_vect1)"[0x0], r2\n\t"
#define DSP32_QB
number of fractional bits
Definition: dsp_types.h:167
#define ASTRINGZ(x)
Absolute stringize.
Definition: stringz.h:71
#define DSP32_REALMULTIPLICATION_3 (   r_vect1,
  r_vect2,
  real 
)
Value:
"ld.d r0, "ASTRINGZ(r_vect2)"[0x0]\n\t" \
\
"muls.d r4, r1, "ASTRINGZ(real)"\n\t" \
"lsl r3, r5, "ASTRINGZ(32-DSP32_QB)"\n\t" \
"or r3, r3, r4 >> "ASTRINGZ(DSP32_QB)"\n\t" \
\
"muls.d r4, r0, "ASTRINGZ(real)"\n\t" \
"lsl r2, r5, "ASTRINGZ(32-DSP32_QB)"\n\t" \
"or r2, r2, r4 >> "ASTRINGZ(DSP32_QB)"\n\t" \
"st.d "ASTRINGZ(r_vect1)"[0x0], r2\n\t" \
\
"ld.w r0, "ASTRINGZ(r_vect2)"[0x8]\n\t" \
\
"muls.d r4, r0, "ASTRINGZ(real)"\n\t" \
"lsl r3, r5, "ASTRINGZ(32-DSP32_QB)"\n\t" \
"or r3, r3, r4 >> "ASTRINGZ(DSP32_QB)"\n\t" \
"st.w "ASTRINGZ(r_vect1)"[0x8], r3\n\t"
#define DSP32_QB
number of fractional bits
Definition: dsp_types.h:167
#define ASTRINGZ(x)
Absolute stringize.
Definition: stringz.h:71

static int dsp32_vect_realmul_kernel_ext ( dsp32_t vect1,
dsp32_t vect2,
int  size,
dsp32_t  real 
)
static

avr32-uc3 32 bit version

References ASM_INSTRUCT_COMPACKED, ASTRINGZ, DSP32_QB, DSP_OPTI_ACCURACY, and DSP_OPTIMIZATION.

Referenced by dsp32_vect_realmul().