op_dsp16_fix_sqrt.c File Reference


Detailed Description

Square root operator for the AVR32 UC3.

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

Definition in file op_dsp16_fix_sqrt.c.

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

Go to the source code of this file.

Defines

#define DSP16_SQRT_NEWTON_ITERATION(x_num, data)
#define DSP16_SQRT_ONE_POINT_FIVE   ((S32) (3 << (DSP16_QB-1)))

Functions

dsp16_t dsp16_op_sqrt (dsp16_t num)
 16-bit fixed point version of the square root function.


Define Documentation

#define DSP16_SQRT_NEWTON_ITERATION ( x_num,
data   ) 

Value:

a = ((S32) x)*((S32) x); \
  a = (((S32) num)*a) >> (DSP16_QB+1); \
  x = (((S32) x)*(DSP16_SQRT_ONE_POINT_FIVE - a)) >> (DSP16_QB);

Definition at line 54 of file op_dsp16_fix_sqrt.c.

Referenced by dsp16_op_sqrt().

#define DSP16_SQRT_ONE_POINT_FIVE   ((S32) (3 << (DSP16_QB-1)))

Definition at line 52 of file op_dsp16_fix_sqrt.c.


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