Microchip® Advanced Software Framework

vect_dsp32_min_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_MIN_END_KERNEL_X_FCT(x_num, data)   __attribute__((__naked__)) DSP32_MIN_END_KERNEL_X_FCT__(x_num, data)
 
#define DSP32_MIN_END_KERNEL_X_FCT__(x_num, data)
 
#define DSP32_MINIMUM_0(r_vect1, min)
 
#define DSP32_MINIMUM_1(r_vect1, min)
 
#define DSP32_MINIMUM_2(r_vect1, min)
 
#define DSP32_MINIMUM_3(r_vect1, min)
 

Functions

dsp32_t dsp32_vect_min (dsp32_t *vect1, int size)
 32-bit fixed point version of the vector minimum function. More...
 
static int dsp32_vect_min_kernel_ext (dsp32_t *vect1, int size, dsp32_t *min)
 avr32-uc3 32 bit version More...
 

#define ASM_INSTRUCT_COMPACKED (   str)    str
#define ASM_INSTRUCT_EXTENDED (   str)    str
#define DSP32_MIN_END_KERNEL_X_FCT (   x_num,
  data 
)    __attribute__((__naked__)) DSP32_MIN_END_KERNEL_X_FCT__(x_num, data)
#define DSP32_MIN_END_KERNEL_X_FCT__ (   x_num,
  data 
)
Value:
static dsp32_t TPASTE2(dsp32_vect_min_end_kernel_x, x_num)(dsp32_t *vect1, dsp32_t min) \
{ \
__asm__ __volatile__ ( \
"pushm r0-r3, lr\n\t" \
TPASTE2(DSP32_MINIMUM_, x_num)(r12, r11) \
"mov r12, r11\n\t" \
"popm r0-r3, pc\n\t" \
); \
\
return 0; \
}
#define min(a, b)
Takes the minimal value of a and b.
Definition: compiler.h:847
dsp32_t__ dsp32_t
32-bit signed fixed point type optimized for 32-bit or lower microcontrollers
Definition: dsp_types.h:201
A_ALIGNED dsp32_complex_t vect1[SIZE]
The output buffer.
Definition: complex_fft_example.c:88
#define TPASTE2(a, b)
Definition: tpaste.h:61
#define DSP32_MINIMUM_0 (   r_vect1,
  min 
)
#define DSP32_MINIMUM_1 (   r_vect1,
  min 
)
Value:
"ld.w r0, "ASTRINGZ(r_vect1)"[0x0]\n\t" \
"min "ASTRINGZ(min)", "ASTRINGZ(min)", r0\n\t"
#define min(a, b)
Takes the minimal value of a and b.
Definition: compiler.h:847
#define ASTRINGZ(x)
Absolute stringize.
Definition: stringz.h:71
#define DSP32_MINIMUM_2 (   r_vect1,
  min 
)
Value:
"ld.d r0, "ASTRINGZ(r_vect1)"[0x0]\n\t" \
"min "ASTRINGZ(min)", "ASTRINGZ(min)", r0\n\t" \
"min "ASTRINGZ(min)", "ASTRINGZ(min)", r1\n\t"
#define min(a, b)
Takes the minimal value of a and b.
Definition: compiler.h:847
#define ASTRINGZ(x)
Absolute stringize.
Definition: stringz.h:71
#define DSP32_MINIMUM_3 (   r_vect1,
  min 
)
Value:
"ld.d r0, "ASTRINGZ(r_vect1)"[0x0]\n\t" \
"min "ASTRINGZ(min)", "ASTRINGZ(min)", r0\n\t" \
"min "ASTRINGZ(min)", "ASTRINGZ(min)", r1\n\t" \
"ld.w r0, "ASTRINGZ(r_vect1)"[0x8]\n\t" \
"min "ASTRINGZ(min)", "ASTRINGZ(min)", r0\n\t"
#define min(a, b)
Takes the minimal value of a and b.
Definition: compiler.h:847
#define ASTRINGZ(x)
Absolute stringize.
Definition: stringz.h:71

static int dsp32_vect_min_kernel_ext ( dsp32_t vect1,
int  size,
dsp32_t min 
)
static

avr32-uc3 32 bit version

References ASM_INSTRUCT_COMPACKED.

Referenced by dsp32_vect_min().