op_dsp32_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_dsp32_fix_sqrt.c.

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

Go to the source code of this file.

Defines

#define DSP32_SQRT_NEWTON_ITERATION(x_num, data)
#define DSP32_SQRT_ONE_POINT_FIVE   ((S64) (3LL << (DSP32_QB-1)))

Functions

dsp32_t dsp32_op_sqrt (dsp32_t num)
 32-bit fixed point version of the square root function.


Define Documentation

#define DSP32_SQRT_NEWTON_ITERATION ( x_num,
data   ) 

Value:

a = (x*x); \
  a = (s64_num*a) >> (DSP32_QB+1); \
  x = (x*(DSP32_SQRT_ONE_POINT_FIVE - a)) >> (DSP32_QB);

Definition at line 54 of file op_dsp32_fix_sqrt.c.

Referenced by dsp32_op_sqrt().

#define DSP32_SQRT_ONE_POINT_FIVE   ((S64) (3LL << (DSP32_QB-1)))

Definition at line 52 of file op_dsp32_fix_sqrt.c.


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