Visualization Library 2.0.0
A 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 |
|
inlinestatic |
Definition at line 262 of file half.hpp.
References convertFloatToHalf().
|
inlinestatic |
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==().
|
inlinestatic |
Definition at line 366 of file half.hpp.
References bits, vl::exp(), and vl::sign().
|
inlinestatic |
Definition at line 268 of file half.hpp.
References convertHalfToFloat().
|
inlinestatic |
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(), operator*(), vl::operator*(), operator*=(), operator+(), vl::operator+(), operator+=(), operator-(), vl::operator-(), operator-=(), operator/(), vl::operator/(), operator/=(), operator<(), and operator>().
|
inlinestatic |
Definition at line 411 of file half.hpp.
References bits, vl::exp(), and vl::sign().
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Definition at line 225 of file half.hpp.
References bits, vl::exp(), and vl::sign().
|
inline |
Definition at line 217 of file half.hpp.
References bits, vl::exp(), and vl::sign().
|
inline |
Definition at line 203 of file half.hpp.
References bits, and vl::exp().
Referenced by operator!=(), and operator==().
|
inline |
Definition at line 121 of file half.hpp.
References bits.
Referenced by operator bool(), operator!=(), and operator==().
|
inlinestatic |
|
inline |
|
inline |
Definition at line 60 of file half.hpp.
References convertHalfToFloat().
|
inline |
Definition at line 55 of file half.hpp.
References convertHalfToFloat().
|
inline |
Definition at line 65 of file half.hpp.
References convertHalfToFloat().
|
inline |
Definition at line 70 of file half.hpp.
References convertHalfToFloat().
|
inline |
|
inline |
Definition at line 173 of file half.hpp.
References convertFloatToHalf(), and operator!=().
|
inline |
Definition at line 178 of file half.hpp.
References convertFloatToHalf(), and operator!=().
|
inline |
Definition at line 183 of file half.hpp.
References convertFloatToHalf(), and operator!=().
|
inline |
Definition at line 188 of file half.hpp.
References convertFloatToHalf(), and operator!=().
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 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 111 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
Definition at line 116 of file half.hpp.
References convertFloatToHalf(), and convertHalfToFloat().
|
inline |
Definition at line 193 of file half.hpp.
References convertHalfToFloat().
|
inline |
|
inline |
Definition at line 142 of file half.hpp.
References convertFloatToHalf(), and operator==().
|
inline |
Definition at line 147 of file half.hpp.
References convertFloatToHalf(), and operator==().
|
inline |
Definition at line 152 of file half.hpp.
References convertFloatToHalf(), and operator==().
|
inline |
Definition at line 157 of file half.hpp.
References convertFloatToHalf(), and operator==().
|
inline |
Definition at line 198 of file half.hpp.
References convertHalfToFloat().
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==().
Visualization Library 2.0.0 Reference Documentation
Updated on Wed Dec 23 2020 12:44:08.
© Copyright Michele Bosi. All rights reserved.