Classes | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
half Class Reference

#include <half.h>

List of all members.

Classes

union  uif

Public Member Functions

unsigned short bits () const
 half ()
 half (float f)
bool isDenormalized () const
bool isFinite () const
bool isInfinity () const
bool isNan () const
bool isNegative () const
bool isNormalized () const
bool isZero () const
 operator float () const
halfoperator*= (half h)
halfoperator*= (float f)
halfoperator+= (half h)
halfoperator+= (float f)
half operator- () const
halfoperator-= (half h)
halfoperator-= (float f)
halfoperator/= (half h)
halfoperator/= (float f)
halfoperator= (half h)
halfoperator= (float f)
half round (unsigned int n) const
void setBits (unsigned short bits)

Static Public Member Functions

static half negInf ()
static half posInf ()
static half qNan ()
static half sNan ()

Static Private Member Functions

static short convert (int i)
static float overflow ()

Private Attributes

unsigned short _h

Static Private Attributes

static const unsigned short _eLut [1<< 9]
static const uif _toFloat [1<< 16]

Detailed Description

Definition at line 90 of file half.h.


Constructor & Destructor Documentation

half::half ( ) [inline]

Definition at line 435 of file half.h.

half::half ( float  f) [inline]

Definition at line 446 of file half.h.


Member Function Documentation

unsigned short half::bits ( ) const [inline]

Definition at line 761 of file half.h.

static short half::convert ( int  i) [static, private]
bool half::isDenormalized ( ) const [inline]

Definition at line 684 of file half.h.

bool half::isFinite ( ) const [inline]

Definition at line 668 of file half.h.

bool half::isInfinity ( ) const [inline]

Definition at line 709 of file half.h.

bool half::isNan ( ) const [inline]

Definition at line 700 of file half.h.

bool half::isNegative ( ) const [inline]

Definition at line 718 of file half.h.

bool half::isNormalized ( ) const [inline]

Definition at line 676 of file half.h.

bool half::isZero ( ) const [inline]

Definition at line 693 of file half.h.

half half::negInf ( ) [inline, static]

Definition at line 734 of file half.h.

half::operator float ( ) const [inline]

Definition at line 509 of file half.h.

half & half::operator*= ( half  h) [inline]

Definition at line 636 of file half.h.

half & half::operator*= ( float  f) [inline]

Definition at line 644 of file half.h.

half & half::operator+= ( half  h) [inline]

Definition at line 604 of file half.h.

half & half::operator+= ( float  f) [inline]

Definition at line 612 of file half.h.

half half::operator- ( ) const [inline]

Definition at line 579 of file half.h.

half & half::operator-= ( half  h) [inline]

Definition at line 620 of file half.h.

half & half::operator-= ( float  f) [inline]

Definition at line 628 of file half.h.

half & half::operator/= ( half  h) [inline]

Definition at line 652 of file half.h.

half & half::operator/= ( float  f) [inline]

Definition at line 660 of file half.h.

half & half::operator= ( half  h) [inline]

Definition at line 588 of file half.h.

half & half::operator= ( float  f) [inline]

Definition at line 596 of file half.h.

static float half::overflow ( ) [static, private]
half half::posInf ( ) [inline, static]

Definition at line 725 of file half.h.

half half::qNan ( ) [inline, static]

Definition at line 743 of file half.h.

half half::round ( unsigned int  n) const [inline]

Definition at line 520 of file half.h.

void half::setBits ( unsigned short  bits) [inline]

Definition at line 768 of file half.h.

half half::sNan ( ) [inline, static]

Definition at line 752 of file half.h.


Member Data Documentation

const unsigned short half::_eLut[1<< 9] [static, private]

Definition at line 224 of file half.h.

unsigned short half::_h [private]

Definition at line 216 of file half.h.

const uif half::_toFloat[1<< 16] [static, private]

Definition at line 223 of file half.h.


The documentation for this class was generated from the following file:


threemxl
Author(s):
autogenerated on Thu Jun 6 2019 21:10:52