Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
Represents an half-precision floating point value. More...
#include <half.hpp>
Public Member Functions | |
half () | |
half (const half &hf) | |
half (int i) | |
half (long long i) | |
half (float f) | |
half (double d) | |
operator float () const | |
operator double () const | |
operator int () const | |
operator long long () const | |
half & | operator= (const half &other) |
half | operator+ (const half &other) const |
half & | operator+= (const half &other) |
half | operator- (const half &other) const |
half & | operator-= (const half &other) |
half | operator* (const half &other) const |
half & | operator*= (const half &other) |
half | operator/ (const half &other) const |
half & | operator/= (const half &other) |
bool | isZero () const |
operator bool () const | |
bool | operator== (const half &other) const |
bool | operator== (const float &other) const |
bool | operator== (const double &other) const |
bool | operator== (const int &other) const |
bool | operator== (const long long &other) const |
bool | operator!= (const half &other) const |
bool | operator!= (const float &other) const |
bool | operator!= (const double &other) const |
bool | operator!= (const int &other) const |
bool | operator!= (const long long &other) const |
bool | operator< (const half &other) const |
bool | operator> (const half &other) const |
bool | isNaN () const |
bool | isinf () const |
bool | isinf_pos () const |
bool | isinf_neg () const |
bool | isdenorm () const |
half | operator- () const |
Static Public Member Functions | |
static half | infinity () |
static half | NaN () |
static void | convertDoubleToHalf (const double *d, half *h, int count) |
static void | convertHalfToDouble (const half *h, double *d, int count) |
static half | convertFloatToHalf (float f) |
static float | convertHalfToFloat (const half &h) |
static void | convertFloatToHalf (const float *f, half *h, int count) |
static void | convertHalfToFloat (const half *h, float *f, int count) |
Public Attributes | |
unsigned short | bits |
Represents an half-precision floating point value.
Definition at line 40 of file half.hpp.
vl::half::operator float | ( | ) | const [inline] |
Definition at line 55 of file half.hpp.
References convertHalfToFloat().
vl::half::operator double | ( | ) | const [inline] |
Definition at line 60 of file half.hpp.
References convertHalfToFloat().
vl::half::operator int | ( | ) | const [inline] |
Definition at line 65 of file half.hpp.
References convertHalfToFloat().
vl::half::operator long long | ( | ) | const [inline] |
Definition at line 70 of file half.hpp.
References convertHalfToFloat().
Definition at line 81 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
Definition at line 86 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
Definition at line 91 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
Definition at line 96 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
Definition at line 101 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
Definition at line 106 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
Definition at line 111 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
Definition at line 116 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
bool vl::half::isZero | ( | ) | const [inline] |
Definition at line 121 of file half.hpp.
References bits.
Referenced by operator bool(), operator!=(), and operator==().
vl::half::operator bool | ( | ) | const [inline] |
bool vl::half::operator== | ( | const half & | other ) | const [inline] |
bool vl::half::operator== | ( | const float & | other ) | const [inline] |
Definition at line 142 of file half.hpp.
References convertFloatToHalf(), and operator==().
bool vl::half::operator== | ( | const double & | other ) | const [inline] |
Definition at line 147 of file half.hpp.
References convertFloatToHalf(), and operator==().
bool vl::half::operator== | ( | const int & | other ) | const [inline] |
Definition at line 152 of file half.hpp.
References convertFloatToHalf(), and operator==().
bool vl::half::operator== | ( | const long long & | other ) | const [inline] |
Definition at line 157 of file half.hpp.
References convertFloatToHalf(), and operator==().
bool vl::half::operator!= | ( | const half & | other ) | const [inline] |
bool vl::half::operator!= | ( | const float & | other ) | const [inline] |
Definition at line 173 of file half.hpp.
References convertFloatToHalf(), and operator!=().
bool vl::half::operator!= | ( | const double & | other ) | const [inline] |
Definition at line 178 of file half.hpp.
References convertFloatToHalf(), and operator!=().
bool vl::half::operator!= | ( | const int & | other ) | const [inline] |
Definition at line 183 of file half.hpp.
References convertFloatToHalf(), and operator!=().
bool vl::half::operator!= | ( | const long long & | other ) | const [inline] |
Definition at line 188 of file half.hpp.
References convertFloatToHalf(), and operator!=().
bool vl::half::operator< | ( | const half & | other ) | const [inline] |
Definition at line 193 of file half.hpp.
References convertHalfToFloat().
bool vl::half::operator> | ( | const half & | other ) | const [inline] |
Definition at line 198 of file half.hpp.
References convertHalfToFloat().
bool vl::half::isNaN | ( | ) | const [inline] |
Definition at line 203 of file half.hpp.
References bits, and vl::exp().
Referenced by operator!=(), and operator==().
bool vl::half::isinf | ( | ) | const [inline] |
bool vl::half::isinf_pos | ( | ) | const [inline] |
Definition at line 217 of file half.hpp.
References bits, vl::exp(), and vl::sign().
bool vl::half::isinf_neg | ( | ) | const [inline] |
Definition at line 225 of file half.hpp.
References bits, vl::exp(), and vl::sign().
bool vl::half::isdenorm | ( | ) | const [inline] |
half vl::half::operator- | ( | ) | const [inline] |
static half vl::half::infinity | ( | ) | [inline, static] |
static half vl::half::NaN | ( | ) | [inline, static] |
static void vl::half::convertDoubleToHalf | ( | const double * | d, |
half * | h, | ||
int | count | ||
) | [inline, static] |
Definition at line 262 of file half.hpp.
References convertFloatToHalf().
static void vl::half::convertHalfToDouble | ( | const half * | h, |
double * | d, | ||
int | count | ||
) | [inline, static] |
Definition at line 268 of file half.hpp.
References convertHalfToFloat().
static half vl::half::convertFloatToHalf | ( | float | f ) | [inline, static] |
Definition at line 274 of file half.hpp.
References bits, vl::exp(), and vl::sign().
Referenced by convertDoubleToHalf(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), and operator==().
static float vl::half::convertHalfToFloat | ( | const half & | h ) | [inline, static] |
Definition at line 317 of file half.hpp.
References bits, vl::exp(), and vl::sign().
Referenced by convertHalfToDouble(), operator double(), operator float(), operator int(), operator long long(), vl::operator*(), operator*(), operator*=(), vl::operator+(), operator+(), operator+=(), vl::operator-(), operator-(), operator-=(), vl::operator/(), operator/(), operator/=(), operator<(), and operator>().
static void vl::half::convertFloatToHalf | ( | const float * | f, |
half * | h, | ||
int | count | ||
) | [inline, static] |
Definition at line 366 of file half.hpp.
References bits, vl::exp(), and vl::sign().
static void vl::half::convertHalfToFloat | ( | const half * | h, |
float * | f, | ||
int | count | ||
) | [inline, static] |
Definition at line 411 of file half.hpp.
References bits, vl::exp(), and vl::sign().
unsigned short vl::half::bits |
Definition at line 464 of file half.hpp.
Referenced by convertFloatToHalf(), convertHalfToFloat(), infinity(), isdenorm(), isinf(), isinf_neg(), isinf_pos(), isNaN(), isZero(), NaN(), operator!=(), operator-(), operator=(), and operator==().