TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
cFloat16 Class Reference

Detailed Description

16bits IEEE Floating point number class.

Public Member Functions

 cFloat16 ()
 
 cFloat16 (const cFloat16 &h)
 
 cFloat16 (tF32 f)
 
 cFloat16 (tU16 aValue)
 
cFloat16 operator- () const
 
cFloat16 operator= (cFloat16 h)
 
cFloat16 operator= (tF32 f)
 
cFloat16 operator+= (cFloat16 h)
 
cFloat16 operator+= (tF32 f)
 
cFloat16 operator-= (cFloat16 h)
 
cFloat16 operator-= (tF32 f)
 
cFloat16 operator*= (cFloat16 h)
 
cFloat16 operator*= (tF32 f)
 
cFloat16 operator/= (cFloat16 h)
 
cFloat16 operator/= (tF32 f)
 
cFloat16 round (tU32 n) const
 
bool IsFinite () const
 
bool IsNormalized () const
 
bool IsDenormalized () const
 
bool IsZero () const
 
bool IsNan () const
 
bool IsInfinity () const
 
bool IsNegative () const
 
tU16 GetBits () const
 
void SetBits (tU16 bits)
 
 operator tF32 () const
 
tF32 ToFloat () const
 

Static Public Member Functions

static cFloat16 posInf ()
 
static cFloat16 negInf ()
 
static cFloat16 qNan ()
 
static cFloat16 sNan ()
 

Constructor & Destructor Documentation

cFloat16 ( tU16  aValue)
explicit