Microchip® Advanced Software Framework

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

Macros

#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. More...
 

#define DSP32_SQRT_NEWTON_ITERATION (   x_num,
  data 
)
Value:
a = (x*x); \
a = (s64_num*a) >> (DSP32_QB+1); \
A_ALIGNED dsp32_t x[SIZE+NUM_SIZE]
The input signal.
Definition: iirpart_example.c:142
#define DSP32_SQRT_ONE_POINT_FIVE
Definition: op_dsp32_fix_sqrt.c:46
#define DSP32_QB
number of fractional bits
Definition: dsp_types.h:167

Referenced by dsp32_op_sqrt().

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