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); \
#define DSP32_SQRT_ONE_POINT_FIVE
Definition: op_dsp32_fix_sqrt.c:46
A_ALIGNED dsp32_t x[SIZE]
The input signal resulting from a multiplication between a cosine and a sine.
Definition: fir_example.c:89
#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)))