GNU Radio 3.7.3 C++ API
gr::fxpt Class Reference

fixed point sine and cosine and friends.fixed pt radians


-2**31 -pi 0 0 2**31-1 pi - epsilon More...

#include <gnuradio/fxpt.h>

Static Public Member Functions

static gr_int32 float_to_fixed (float x)
 
static float fixed_to_float (gr_int32 x)
 
static float sin (gr_int32 x)
 Given a fixed point angle x, return float sine (x) More...
 
static float cos (gr_int32 x)
 
static void sincos (gr_int32 x, float *s, float *c)
 

Detailed Description

fixed point sine and cosine and friends.

fixed pt radians


-2**31 -pi 0 0 2**31-1 pi - epsilon

Member Function Documentation

static float gr::fxpt::cos ( gr_int32  x)
inlinestatic
static float gr::fxpt::fixed_to_float ( gr_int32  x)
inlinestatic
static float gr::fxpt::sin ( gr_int32  x)
inlinestatic

Given a fixed point angle x, return float sine (x)

Referenced by gr::fxpt_vco::sin(), gr::fxpt_nco::sin(), gr::fxpt_vco::sincos(), and gr::fxpt_nco::sincos().

static void gr::fxpt::sincos ( gr_int32  x,
float *  s,
float *  c 
)
inlinestatic

The documentation for this class was generated from the following file: