SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <fixed.h>
Classes | |
struct | internal |
Public Member Functions | |
Fixed () | |
Fixed (internal, IntType nVal) | |
Fixed (int64_t nVal) | |
Fixed (int nVal) | |
Fixed (short nVal) | |
Fixed (uint64_t nVal) | |
Fixed (unsigned int nVal) | |
Fixed (unsigned short nVal) | |
Fixed (double nVal) | |
Fixed (float nVal) | |
template<typename T > | |
Fixed & | operator= (T other) |
Fixed & | operator= (Fixed const &other) |
operator bool () const | |
operator double () const | |
IntType | as_internal () const |
float | as_float () const |
double | as_double () const |
int64_t | as_long () const |
int64_t | as_int64 () const |
int | as_int () const |
uint64_t | as_unsigned_long () const |
uint64_t | as_unsigned_int64 () const |
unsigned int | as_unsigned_int () const |
short | as_short () const |
unsigned short | as_unsigned_short () const |
Fixed | operator++ () |
Fixed | operator-- () |
Fixed | floor () const |
Fixed | ceil () const |
Fixed | sqrt () const |
Fixed | exp () const |
Fixed | log () const |
Fixed & | operator%= (Fixed const &other) |
Fixed & | operator*= (Fixed const &val) |
Fixed & | operator/= (Fixed const &val) |
Fixed & | operator-= (Fixed const &val) |
Fixed & | operator+= (Fixed const &val) |
Fixed & | operator*= (double val) |
Fixed & | operator*= (float val) |
Fixed & | operator*= (int64_t val) |
Fixed & | operator*= (int val) |
Fixed & | operator*= (short val) |
Fixed & | operator*= (char val) |
Fixed & | operator*= (uint64_t val) |
Fixed & | operator*= (unsigned int val) |
Fixed & | operator*= (unsigned short val) |
Fixed & | operator*= (unsigned char val) |
Fixed & | operator/= (double val) |
Fixed & | operator/= (float val) |
Fixed & | operator/= (int64_t val) |
Fixed & | operator/= (int val) |
Fixed & | operator/= (short val) |
Fixed & | operator/= (char val) |
Fixed & | operator/= (uint64_t val) |
Fixed & | operator/= (unsigned int val) |
Fixed & | operator/= (unsigned short val) |
Fixed & | operator/= (unsigned char val) |
bool | operator! () const |
Fixed | modf (Fixed *integral_part) const |
Fixed | atan () const |
Fixed | sin () const |
Fixed | cos () const |
Fixed | tan () const |
Fixed | operator- () const |
Fixed | abs () const |
Static Public Member Functions | |
static void | sin_cos (Fixed const &theta, Fixed *s, Fixed *c) |
static void | to_polar (Fixed const &x, Fixed const &y, Fixed *r, Fixed *theta) |
Static Public Attributes | |
static const Fixed | fixed_max |
static const Fixed | fixed_one |
static const Fixed | fixed_zero |
static const Fixed | fixed_half |
static const Fixed | fixed_pi |
static const Fixed | fixed_two_pi |
static const Fixed | fixed_half_pi |
static const Fixed | fixed_quarter_pi |
Static Private Member Functions | |
static int64_t | scale_cordic_result (int64_t a) |
static int64_t | right_shift (int64_t val, int shift) |
static void | perform_cordic_rotation (int64_t &px, int64_t &py, int64_t theta) |
static void | perform_cordic_polarization (int64_t &argx, int64_t &argy) |
Private Attributes | |
IntType | m_nVal |
Friends | |
bool | operator== (Fixed const &lhs, Fixed const &rhs) |
bool | operator!= (Fixed const &lhs, Fixed const &rhs) |
bool | operator< (Fixed const &lhs, Fixed const &rhs) |
bool | operator> (Fixed const &lhs, Fixed const &rhs) |
bool | operator<= (Fixed const &lhs, Fixed const &rhs) |
bool | operator>= (Fixed const &lhs, Fixed const &rhs) |
Definition at line 65 of file fixed.h.
Referenced by Fixed< IntType, IntBits >::operator*=(), Fixed< IntType, IntBits >::operator-(), Fixed< IntType, IntBits >::operator/=(), and Fixed< IntType, IntBits >::operator=().
|
inline |
|
inline |
Definition at line 72 of file fixed.h.
Definition at line 76 of file fixed.h.
Definition at line 80 of file fixed.h.
|
inline |
Definition at line 84 of file fixed.h.
|
inline |
Definition at line 88 of file fixed.h.
|
inline |
Definition at line 91 of file fixed.h.
Definition at line 94 of file fixed.h.
Definition at line 97 of file fixed.h.
|
inline |
Definition at line 2383 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal.
Referenced by abs(), and Fixed< IntType, IntBits >::operator!().
|
inline |
Definition at line 164 of file fixed.h.
Referenced by Fixed< IntType, IntBits >::operator double().
|
inline |
Definition at line 159 of file fixed.h.
|
inline |
Definition at line 178 of file fixed.h.
|
inline |
Definition at line 173 of file fixed.h.
|
inline |
Definition at line 154 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal.
Referenced by DSPDeviceSourceEngine::iqCorrections(), and DSPDeviceMIMOEngine::iqCorrections().
|
inline |
Definition at line 169 of file fixed.h.
|
inline |
Definition at line 197 of file fixed.h.
|
inline |
Definition at line 192 of file fixed.h.
|
inline |
Definition at line 187 of file fixed.h.
|
inline |
Definition at line 183 of file fixed.h.
|
inline |
Definition at line 202 of file fixed.h.
Fixed< IntType, IntBits > Fixed< IntType, IntBits >::atan | ( | ) | const |
Definition at line 763 of file fixed.h.
References Fixed< IntType, IntBits >::to_polar().
Referenced by Fixed< IntType, IntBits >::operator!().
|
inline |
Definition at line 2325 of file fixed.h.
References Fixed< IntType, IntBits >::floor(), and Fixed< IntType, IntBits >::m_nVal.
Referenced by ceil(), and Fixed< IntType, IntBits >::operator--().
|
inline |
Definition at line 2361 of file fixed.h.
References Fixed< IntType, IntBits >::sin_cos().
Referenced by cos(), and Fixed< IntType, IntBits >::operator!().
Fixed< IntType, IntBits > Fixed< IntType, IntBits >::exp | ( | ) | const |
Definition at line 532 of file fixed.h.
References Fixed< IntType, IntBits >::fixed_max, and Fixed< IntType, IntBits >::m_nVal.
Referenced by exp(), and Fixed< IntType, IntBits >::operator--().
|
inline |
Definition at line 2335 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal.
Referenced by Fixed< IntType, IntBits >::ceil(), floor(), and Fixed< IntType, IntBits >::operator--().
Fixed< IntType, IntBits > Fixed< IntType, IntBits >::log | ( | ) | const |
Definition at line 612 of file fixed.h.
References Fixed< IntType, IntBits >::fixed_max, Fixed< IntType, IntBits >::fixed_zero, Fixed< IntType, IntBits >::m_nVal, and Fixed< IntType, IntBits >::right_shift().
Referenced by log(), and Fixed< IntType, IntBits >::operator--().
|
inline |
Definition at line 2389 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal.
Referenced by modf(), and Fixed< IntType, IntBits >::operator!().
|
inline |
|
inline |
Definition at line 149 of file fixed.h.
References Fixed< IntType, IntBits >::as_double().
|
inline |
Definition at line 356 of file fixed.h.
References Fixed< IntType, IntBits >::abs(), Fixed< IntType, IntBits >::atan(), Fixed< IntType, IntBits >::cos(), Fixed< IntType, IntBits >::modf(), Fixed< IntType, IntBits >::operator-(), Fixed< IntType, IntBits >::sin(), Fixed< IntType, IntBits >::sin_cos(), Fixed< IntType, IntBits >::tan(), and Fixed< IntType, IntBits >::to_polar().
Fixed< IntType, IntBits > & Fixed< IntType, IntBits >::operator%= | ( | Fixed< IntType, IntBits > const & | other | ) |
Definition at line 382 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal.
Referenced by Fixed< IntType, IntBits >::operator--().
Fixed< IntType, IntBits > & Fixed< IntType, IntBits >::operator*= | ( | Fixed< IntType, IntBits > const & | val | ) |
Definition at line 389 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal.
Referenced by Fixed< IntType, IntBits >::operator--().
|
inline |
Definition at line 240 of file fixed.h.
References Fixed< IntType, IntBits >::Fixed().
|
inline |
Definition at line 245 of file fixed.h.
References Fixed< IntType, IntBits >::Fixed().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 207 of file fixed.h.
|
inline |
|
inline |
Definition at line 2377 of file fixed.h.
References Fixed< IntType, IntBits >::Fixed(), and Fixed< IntType, IntBits >::m_nVal.
Referenced by Fixed< IntType, IntBits >::operator!().
Definition at line 213 of file fixed.h.
References Fixed< IntType, IntBits >::ceil(), Fixed< IntType, IntBits >::exp(), Fixed< IntType, IntBits >::floor(), Fixed< IntType, IntBits >::log(), Fixed< IntType, IntBits >::operator%=(), Fixed< IntType, IntBits >::operator*=(), Fixed< IntType, IntBits >::operator/=(), and Fixed< IntType, IntBits >::sqrt().
|
inline |
Fixed< IntType, IntBits > & Fixed< IntType, IntBits >::operator/= | ( | Fixed< IntType, IntBits > const & | val | ) |
Definition at line 421 of file fixed.h.
References Fixed< IntType, IntBits >::fixed_max, Fixed< IntType, IntBits >::m_nVal, and Fixed< IntType, IntBits >::right_shift().
Referenced by Fixed< IntType, IntBits >::operator--().
|
inline |
Definition at line 298 of file fixed.h.
References Fixed< IntType, IntBits >::Fixed().
|
inline |
Definition at line 303 of file fixed.h.
References Fixed< IntType, IntBits >::Fixed().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 102 of file fixed.h.
References Fixed< IntType, IntBits >::Fixed().
|
inline |
|
staticprivate |
Definition at line 696 of file fixed.h.
References i, Fixed< IntType, IntBits >::right_shift(), and Fixed< IntType, IntBits >::scale_cordic_result().
Referenced by Fixed< IntType, IntBits >::to_polar().
|
staticprivate |
Definition at line 668 of file fixed.h.
References i, Fixed< IntType, IntBits >::right_shift(), and Fixed< IntType, IntBits >::scale_cordic_result().
Referenced by Fixed< IntType, IntBits >::sin_cos().
|
staticprivate |
Definition at line 662 of file fixed.h.
Referenced by Fixed< IntType, IntBits >::log(), Fixed< IntType, IntBits >::operator/=(), Fixed< IntType, IntBits >::perform_cordic_polarization(), Fixed< IntType, IntBits >::perform_cordic_rotation(), and Fixed< IntType, IntBits >::to_polar().
|
staticprivate |
Definition at line 655 of file fixed.h.
Referenced by Fixed< IntType, IntBits >::perform_cordic_polarization(), and Fixed< IntType, IntBits >::perform_cordic_rotation().
|
inline |
Definition at line 2353 of file fixed.h.
References Fixed< IntType, IntBits >::sin_cos().
Referenced by Fixed< IntType, IntBits >::operator!(), and sin().
|
static |
Definition at line 726 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal, and Fixed< IntType, IntBits >::perform_cordic_rotation().
Referenced by Fixed< IntType, IntBits >::cos(), Fixed< IntType, IntBits >::operator!(), polar(), Fixed< IntType, IntBits >::sin(), and Fixed< IntType, IntBits >::tan().
Fixed< IntType, IntBits > Fixed< IntType, IntBits >::sqrt | ( | ) | const |
Definition at line 483 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal.
Referenced by Fixed< IntType, IntBits >::operator--(), and sqrt().
|
inline |
Definition at line 2369 of file fixed.h.
References Fixed< IntType, IntBits >::sin_cos().
Referenced by Fixed< IntType, IntBits >::operator!(), and tan().
|
static |
Definition at line 771 of file fixed.h.
References Fixed< IntType, IntBits >::m_nVal, Fixed< IntType, IntBits >::perform_cordic_polarization(), and Fixed< IntType, IntBits >::right_shift().
Referenced by arg(), Fixed< IntType, IntBits >::atan(), and Fixed< IntType, IntBits >::operator!().
|
static |
Definition at line 53 of file fixed.h.
Referenced by Fixed< IntType, IntBits >::exp(), Fixed< IntType, IntBits >::log(), Fixed< IntType, IntBits >::operator/=(), and polar().
|
static |
Definition at line 55 of file fixed.h.
Referenced by Fixed< IntType, IntBits >::log(), and polar().
|
private |
Definition at line 45 of file fixed.h.
Referenced by Fixed< IntType, IntBits >::abs(), Fixed< IntType, IntBits >::as_internal(), Fixed< IntType, IntBits >::ceil(), Fixed< IntType, IntBits >::exp(), Fixed< IntType, IntBits >::floor(), Fixed< IntType, IntBits >::log(), Fixed< IntType, IntBits >::modf(), Fixed< IntType, IntBits >::operator%=(), Fixed< IntType, IntBits >::operator*=(), Fixed< IntType, IntBits >::operator+=(), Fixed< IntType, IntBits >::operator-(), Fixed< IntType, IntBits >::operator-=(), Fixed< IntType, IntBits >::operator/=(), Fixed< IntType, IntBits >::operator=(), Fixed< IntType, IntBits >::sin_cos(), Fixed< IntType, IntBits >::sqrt(), and Fixed< IntType, IntBits >::to_polar().