vect_dsp16_complex_abs.c File Reference


Detailed Description

generic 16-bit complex vector absolute function

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file vect_dsp16_complex_abs.c.

#include "dsp.h"
#include "preprocessor.h"

Go to the source code of this file.

Defines

#define DSP16_COMPLEX_ABS(x_num, data)
#define DSP16_COMPLEX_ABS_KERNEL_X_FCT(x_num, data)

Functions

void dsp16_vect_complex_abs (dsp16_t *vect1, dsp16_complex_t *vect2, int size)
 16-bit fixed point version of the complex vector absolute function.
static void dsp16_vect_complex_abs_kernel_x0 (dsp16_t *vect1, dsp16_complex_t *vect2)


Define Documentation

#define DSP16_COMPLEX_ABS ( x_num,
data   ) 

Value:

temp1 = vect2[x_num].real; \
  temp1 = (temp1*temp1) >> DSP16_QB; \
  temp2 = vect2[x_num].imag; \
  temp2 = (temp2*temp2) >> DSP16_QB; \
  vect1[x_num] = dsp16_op_sqrt(temp1 + temp2);

Definition at line 53 of file vect_dsp16_complex_abs.c.

Referenced by dsp16_vect_complex_abs().

#define DSP16_COMPLEX_ABS_KERNEL_X_FCT ( x_num,
data   ) 

Value:

static void TPASTE2(dsp16_vect_complex_abs_kernel_x, x_num)(dsp16_t *vect1, dsp16_complex_t *vect2) \
{ \
  S32 temp1, temp2; \
  MREPEAT(x_num, DSP16_COMPLEX_ABS, ""); \
}

Definition at line 63 of file vect_dsp16_complex_abs.c.


Function Documentation

static void dsp16_vect_complex_abs_kernel_x0 ( dsp16_t vect1,
dsp16_complex_t vect2 
) [static]

Definition at line 71 of file vect_dsp16_complex_abs.c.

Referenced by dsp16_vect_complex_abs().

00072 {
00073 }


Generated on Fri Feb 19 02:23:20 2010 for AVR32 UC3 - EVK1104 DSPLib Demo Documentation by  doxygen 1.5.5