|
Nebula
|
#include <half.h>
Classes | |
| union | Float |
Public Member Functions | |
| half () | |
| Constructor. | |
| half (const half &h) | |
| Construct from other half. | |
| half (const float f) | |
| Construct from float. | |
| operator float () const | |
| Convert to float. | |
| bool | operator== (const half rhs) const |
| Compare equals. | |
| bool | operator== (const float rhs) const |
| Compare equals. | |
| bool | operator!= (const half rhs) const |
| Compare not equals. | |
| bool | operator!= (const float rhs) const |
| Compare not equals. | |
| bool | operator< (const half rhs) const |
| Compare less. | |
| bool | operator< (const float rhs) const |
| Compare less. | |
| bool | operator<= (const half rhs) const |
| Compare less equals. | |
| bool | operator<= (const float rhs) const |
| Compare less equals. | |
| bool | operator> (const half rhs) const |
| Compare greater. | |
| bool | operator> (const float rhs) const |
| Compare greater. | |
| bool | operator>= (const half rhs) const |
| Compare greater equals. | |
| bool | operator>= (const float rhs) const |
| Compare greater equals. | |
| half & | operator+= (half other) |
| half & | operator-= (half other) |
| half & | operator*= (half other) |
| half & | operator/= (half other) |
| half | operator- () const |
Private Attributes | |
| union Math::half:: { ... } | |
Static Private Attributes | |
| static const uint8_t | BITS_MANTISSA = 10 |
| static const uint8_t | BITS_EXPONENT = 5 |
| static const uint8_t | MAX_EXPONENT_VALUE = 31 |
| static const uint8_t | BIAS = MAX_EXPONENT_VALUE / 2 |
| static const uint8_t | MAX_EXPONENT = BIAS |
| static const uint8_t | MIN_EXPONENT = -BIAS |
| static const uint8_t | MAX_EXPONENT10 = 9 |
| static const uint8_t | MIN_EXPONENT10 = -9 |
Friends | |
| class | std::numeric_limits< Math::half > |
|
inline |
Constructor.
|
inline |
Construct from other half.
|
inline |
Construct from float.
|
inline |
Convert to float.
|
inline |
Compare not equals.
|
inline |
Compare not equals.
|
inline |
|
inline |
Compare less.
|
inline |
Compare less.
|
inline |
Compare less equals.
|
inline |
Compare less equals.
|
inline |
Compare equals.
|
inline |
Compare equals.
|
inline |
Compare greater.
|
inline |
Compare greater.
|
inline |
Compare greater equals.
|
inline |
Compare greater equals.
|
friend |
| union { ... } Math::half |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
staticprivate |