HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
half Class Reference

#include <half.h>

Classes

union  uif
 

Public Member Functions

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

Static Public Member Functions

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

Detailed Description

Definition at line 91 of file half.h.

Constructor & Destructor Documentation

half::half ( )
inline

Definition at line 418 of file half.h.

half::half ( float  f)
inline

Definition at line 429 of file half.h.

Member Function Documentation

unsigned short half::bits ( ) const
inline

Definition at line 745 of file half.h.

bool half::isDenormalized ( ) const
inline

Definition at line 668 of file half.h.

bool half::isFinite ( ) const
inline

Definition at line 652 of file half.h.

bool half::isInfinity ( ) const
inline

Definition at line 693 of file half.h.

bool half::isNan ( ) const
inline

Definition at line 684 of file half.h.

bool half::isNegative ( ) const
inline

Definition at line 702 of file half.h.

bool half::isNormalized ( ) const
inline

Definition at line 660 of file half.h.

bool half::isZero ( ) const
inline

Definition at line 677 of file half.h.

half half::negInf ( )
inlinestatic

Definition at line 718 of file half.h.

half::operator float ( ) const
inline

Definition at line 493 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 588 of file half.h.

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

Definition at line 596 of file half.h.

half half::operator- ( ) const
inline

Definition at line 563 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/= ( 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 572 of file half.h.

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

Definition at line 580 of file half.h.

half half::posInf ( )
inlinestatic

Definition at line 709 of file half.h.

half half::qNan ( )
inlinestatic

Definition at line 727 of file half.h.

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

Definition at line 504 of file half.h.

void half::setBits ( unsigned short  bits)
inline

Definition at line 752 of file half.h.

half half::sNan ( )
inlinestatic

Definition at line 736 of file half.h.


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