#include <Cordic.h>
Public Member Functions | |
Cordic (const uint32_t &aPhiScale, const uint32_t &aMagnitudeBits, const uint32_t &aSteps) | |
int32_t | IntegerizeMagnitude (const double &aMagnitude) |
double | NormalizeMagnitude (const uint32_t &aMagnitude) |
double | NormalizePhi (const uint32_t &aPhi) |
void | operator() (int32_t aX, int32_t aY, int32_t &aPhi, uint32_t &aMagnitude) |
virtual | ~Cordic () |
Private Member Functions | |
uint32_t | tower (const double &aRadians) |
Private Attributes | |
uint32_t | mMagnitudeBits |
uint64_t | mMagnitudeRenormalization |
uint32_t | mMagnitudeScale |
uint32_t | mPhiScale |
const double | mPi |
std::vector< uint32_t > | mRotations |
uint32_t | mSteps |
Cordic::Cordic | ( | const uint32_t & | aPhiScale, |
const uint32_t & | aMagnitudeBits, | ||
const uint32_t & | aSteps | ||
) |
Definition at line 9 of file Cordic.cc.
References mMagnitudeRenormalization, mMagnitudeScale, mRotations, mSteps, funct::pow(), mathSSE::sqrt(), and tower().
int32_t Cordic::IntegerizeMagnitude | ( | const double & | aMagnitude | ) |
double Cordic::NormalizeMagnitude | ( | const uint32_t & | aMagnitude | ) |
double Cordic::NormalizePhi | ( | const uint32_t & | aPhi | ) |
void Cordic::operator() | ( | int32_t | aX, |
int32_t | aY, | ||
int32_t & | aPhi, | ||
uint32_t & | aMagnitude | ||
) |
Definition at line 44 of file Cordic.cc.
References mMagnitudeBits, mMagnitudeRenormalization, mPi, mRotations, mSteps, tower(), globals_cff::x1, and globals_cff::x2.
|
private |
|
private |
Definition at line 25 of file Cordic.h.
Referenced by operator()().
|
private |
Definition at line 27 of file Cordic.h.
Referenced by Cordic(), and operator()().
|
private |
Definition at line 24 of file Cordic.h.
Referenced by Cordic(), IntegerizeMagnitude(), and NormalizeMagnitude().
|
private |
Definition at line 23 of file Cordic.h.
Referenced by NormalizePhi(), and tower().
|
private |
Definition at line 30 of file Cordic.h.
Referenced by operator()(), and tower().
|
private |
Definition at line 28 of file Cordic.h.
Referenced by Cordic(), and operator()().
|
private |
Definition at line 26 of file Cordic.h.
Referenced by Cordic(), and operator()().