#include <_fixed.h>
Public Types | |
typedef T | value_type |
Public Member Functions | |
fixed_base () ETL_ATTRIB_INLINE | |
fixed_base (const float &f) ETL_ATTRIB_INLINE | |
fixed_base (const double &f) ETL_ATTRIB_INLINE | |
fixed_base (const long double &f) ETL_ATTRIB_INLINE | |
fixed_base (const int &i) ETL_ATTRIB_INLINE | |
fixed_base (const int &n, const int &d) ETL_ATTRIB_INLINE | |
Fraction constructor. | |
fixed_base (const _fixed &x) ETL_ATTRIB_INLINE | |
fixed_base (value_type x, raw) ETL_ATTRIB_INLINE | |
T & | data () ETL_ATTRIB_PURE ETL_ATTRIB_INLINE |
const T & | data () const ETL_ATTRIB_PURE ETL_ATTRIB_INLINE |
const _fixed & | operator+= (const _fixed &rhs) ETL_ATTRIB_INLINE |
fixed+=fixed | |
const _fixed & | operator-= (const _fixed &rhs) ETL_ATTRIB_INLINE |
fixed-=fixed | |
template<typename U> | |
const _fixed & | operator *= (const U &rhs) ETL_ATTRIB_INLINE |
template<typename U> | |
const _fixed & | operator/= (const U &rhs) ETL_ATTRIB_INLINE |
const _fixed & | operator *= (const _fixed &rhs) ETL_ATTRIB_INLINE |
fixed*=fixed | |
const _fixed & | operator/= (const _fixed &rhs) ETL_ATTRIB_INLINE |
fixed/=fixed | |
const _fixed & | operator *= (const int &rhs) ETL_ATTRIB_INLINE |
fixed*=int | |
const _fixed & | operator/= (const int &rhs) ETL_ATTRIB_INLINE |
fixed/=int | |
template<typename U> | |
_fixed | operator+ (const U &rhs) const ETL_ATTRIB_INLINE |
fixed + ... | |
template<typename U> | |
_fixed | operator- (const U &rhs) const ETL_ATTRIB_INLINE |
fixed - ... | |
template<typename U> | |
_fixed | operator * (const U &rhs) const ETL_ATTRIB_INLINE |
fixed * ... | |
template<typename U> | |
_fixed | operator/ (const U &rhs) const ETL_ATTRIB_INLINE |
fixed / ... | |
_fixed | operator+ (const _fixed &rhs) const ETL_ATTRIB_INLINE |
fixed + fixed | |
_fixed | operator- (const _fixed &rhs) const ETL_ATTRIB_INLINE |
fixed - fixed | |
_fixed | operator * (const _fixed &rhs) const ETL_ATTRIB_INLINE |
fixed * fixed | |
_fixed | operator/ (const _fixed &rhs) const ETL_ATTRIB_INLINE |
fixed / fixed | |
_fixed | operator * (const int &rhs) const ETL_ATTRIB_INLINE |
fixed * int | |
_fixed | operator/ (const int &rhs) const ETL_ATTRIB_INLINE |
fixed / int | |
_fixed | operator * (const float &rhs) const ETL_ATTRIB_INLINE |
fixed * float | |
_fixed | operator * (const double &rhs) const ETL_ATTRIB_INLINE |
fixed * double | |
_fixed | operator- () const ETL_ATTRIB_INLINE |
operator float () const ETL_ATTRIB_INLINE | |
operator double () const ETL_ATTRIB_INLINE | |
operator long double () const ETL_ATTRIB_INLINE | |
operator int () const ETL_ATTRIB_INLINE | |
operator bool () const ETL_ATTRIB_INLINE | |
_fixed | floor () const |
_fixed | ceil () const |
_fixed | round () const |
bool | operator== (const _fixed &rhs) const |
bool | operator!= (const _fixed &rhs) const |
bool | operator< (const _fixed &rhs) const |
bool | operator> (const _fixed &rhs) const |
bool | operator<= (const _fixed &rhs) const |
bool | operator>= (const _fixed &rhs) const |
Private Types | |
typedef fixed_base< T, FIXED_BITS > | _fixed |
typedef fixed_base< T, FIXED_BITS > | self_type |
Static Private Member Functions | |
static bool | _TYPE_SMALLER_THAN_INT () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
static bool | _USING_ALL_BITS () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
static value_type | _ONE () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
static value_type | _F_MASK () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
static float | _EPSILON () ETL_ATTRIB_CONST ETL_ATTRIB_INLINE |
Private Attributes | |
T | _data |
Classes | |
class | raw |
========================================================================
A more detailed description needs to be written.
Definition at line 95 of file _fixed.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fraction constructor.
|
|
|
|
|
|
Definition at line 204 of file _fixed.h. Referenced by fixed_base< T, FIXED_BITS >::operator *=(), and fixed_base< T, FIXED_BITS >::operator/=(). |
|
Definition at line 210 of file _fixed.h. Referenced by fixed_base< T, FIXED_BITS >::_F_MASK(), and fixed_base< T, FIXED_BITS >::_ONE(). |
|
|
Definition at line 222 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_ONE(), and fixed_base< T, FIXED_BITS >::_USING_ALL_BITS(). Referenced by fixed_base< T, FIXED_BITS >::ceil(), fixed_base< T, FIXED_BITS >::floor(), and fixed_base< T, FIXED_BITS >::round(). |
|
Definition at line 228 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_ONE(). |
|
|
Definition at line 241 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed+=fixed
Definition at line 248 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed-=fixed
Definition at line 256 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
|
|
|
|
fixed*=fixed
Definition at line 264 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_TYPE_SMALLER_THAN_INT(). |
|
fixed/=fixed
Definition at line 279 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_TYPE_SMALLER_THAN_INT(). |
|
fixed*=int
Definition at line 305 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed/=int
Definition at line 312 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed + ...
|
|
fixed - ...
Definition at line 370 of file _fixed.h. References fixed_base< T, FIXED_BITS >::operator-(). |
|
fixed * ...
|
|
fixed / ...
|
|
fixed + fixed
Definition at line 325 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed - fixed
Definition at line 334 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed * fixed
Definition at line 343 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed / fixed
Definition at line 353 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed * int
Definition at line 391 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed / int
Definition at line 416 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
fixed * float
|
|
fixed * double
|
|
Definition at line 445 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. Referenced by fixed_base< T, FIXED_BITS >::operator-(). |
|
Definition at line 452 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_ONE(). |
|
Definition at line 458 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_ONE(). |
|
Definition at line 464 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_ONE(). |
|
Definition at line 470 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
Definition at line 476 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data. |
|
Definition at line 483 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data, and fixed_base< T, FIXED_BITS >::_F_MASK(). |
|
Definition at line 491 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data, fixed_base< T, FIXED_BITS >::_F_MASK(), and fixed_base< T, FIXED_BITS >::_ONE(). |
|
Definition at line 502 of file _fixed.h. References fixed_base< T, FIXED_BITS >::_data, fixed_base< T, FIXED_BITS >::_F_MASK(), and fixed_base< T, FIXED_BITS >::_ONE(). |
|
Definition at line 162 of file _fixed.h. References fixed_base< T, FIXED_BITS >::data(). |
|
Definition at line 163 of file _fixed.h. References fixed_base< T, FIXED_BITS >::data(). |
|
Definition at line 164 of file _fixed.h. References fixed_base< T, FIXED_BITS >::data(). |
|
Definition at line 165 of file _fixed.h. References fixed_base< T, FIXED_BITS >::data(). |
|
Definition at line 166 of file _fixed.h. References fixed_base< T, FIXED_BITS >::data(). |
|
Definition at line 167 of file _fixed.h. References fixed_base< T, FIXED_BITS >::data(). |
|