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

#include <fpreal16.h>

Classes

union  uif
 

Public Member Functions

 fpreal16 ()=default
 
 fpreal16 (const fpreal16 &h)=default
 
 fpreal16 (fpreal32 f)
 
 operator fpreal32 () const
 
fpreal16 operator- () const
 
fpreal16operator= (const fpreal16 &h)=default
 
fpreal16 operator= (fpreal32 f)
 
fpreal16 operator+= (fpreal16 h)
 
fpreal16 operator+= (fpreal32 f)
 
fpreal16 operator-= (fpreal16 h)
 
fpreal16 operator-= (fpreal32 f)
 
fpreal16 operator*= (fpreal16 h)
 
fpreal16 operator*= (fpreal32 f)
 
fpreal16 operator/= (fpreal16 h)
 
fpreal16 operator/= (fpreal32 f)
 
fpreal16 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 fpreal16 posInf ()
 
static fpreal16 negInf ()
 
static fpreal16 qNan ()
 
static fpreal16 sNan ()
 
static void ensureStaticDataIsInitialized ()
 

Static Protected Member Functions

static bool selftest ()
 

Static Protected Attributes

static const uif_toFloat
 
static const unsigned short * _eLut
 
static bool _itWorks
 

Detailed Description

Examples:
field3d/f3d_io.C, and RAY/RAY_DemoGT.C.

Definition at line 110 of file fpreal16.h.

Constructor & Destructor Documentation

fpreal16::fpreal16 ( )
default
fpreal16::fpreal16 ( const fpreal16 h)
default
SYS_FORCE_INLINE fpreal16::fpreal16 ( fpreal32  f)

Definition at line 431 of file fpreal16.h.

Member Function Documentation

SYS_FORCE_INLINE unsigned short fpreal16::bits ( ) const

Definition at line 764 of file fpreal16.h.

static void fpreal16::ensureStaticDataIsInitialized ( )
static
SYS_FORCE_INLINE bool fpreal16::isDenormalized ( ) const

Definition at line 687 of file fpreal16.h.

SYS_FORCE_INLINE bool fpreal16::isFinite ( ) const

Definition at line 671 of file fpreal16.h.

SYS_FORCE_INLINE bool fpreal16::isInfinity ( ) const

Definition at line 712 of file fpreal16.h.

SYS_FORCE_INLINE bool fpreal16::isNan ( ) const

Definition at line 703 of file fpreal16.h.

SYS_FORCE_INLINE bool fpreal16::isNegative ( ) const

Definition at line 721 of file fpreal16.h.

SYS_FORCE_INLINE bool fpreal16::isNormalized ( ) const

Definition at line 679 of file fpreal16.h.

SYS_FORCE_INLINE bool fpreal16::isZero ( ) const

Definition at line 696 of file fpreal16.h.

SYS_FORCE_INLINE fpreal16 fpreal16::negInf ( )
static

Definition at line 737 of file fpreal16.h.

SYS_FORCE_INLINE fpreal16::operator fpreal32 ( ) const

Definition at line 507 of file fpreal16.h.

fpreal16 fpreal16::operator*= ( fpreal16  h)
inline

Definition at line 639 of file fpreal16.h.

fpreal16 fpreal16::operator*= ( fpreal32  f)
inline

Definition at line 647 of file fpreal16.h.

fpreal16 fpreal16::operator+= ( fpreal16  h)
inline

Definition at line 607 of file fpreal16.h.

fpreal16 fpreal16::operator+= ( fpreal32  f)
inline

Definition at line 615 of file fpreal16.h.

SYS_FORCE_INLINE fpreal16 fpreal16::operator- ( ) const

Definition at line 590 of file fpreal16.h.

fpreal16 fpreal16::operator-= ( fpreal16  h)
inline

Definition at line 623 of file fpreal16.h.

fpreal16 fpreal16::operator-= ( fpreal32  f)
inline

Definition at line 631 of file fpreal16.h.

fpreal16 fpreal16::operator/= ( fpreal16  h)
inline

Definition at line 655 of file fpreal16.h.

fpreal16 fpreal16::operator/= ( fpreal32  f)
inline

Definition at line 663 of file fpreal16.h.

fpreal16& fpreal16::operator= ( const fpreal16 h)
default
SYS_FORCE_INLINE fpreal16 fpreal16::operator= ( fpreal32  f)

Definition at line 599 of file fpreal16.h.

SYS_FORCE_INLINE fpreal16 fpreal16::posInf ( )
static

Definition at line 728 of file fpreal16.h.

SYS_FORCE_INLINE fpreal16 fpreal16::qNan ( )
static

Definition at line 746 of file fpreal16.h.

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

Definition at line 531 of file fpreal16.h.

static bool fpreal16::selftest ( )
staticprotected
SYS_FORCE_INLINE void fpreal16::setBits ( unsigned short  bits)

Definition at line 771 of file fpreal16.h.

SYS_FORCE_INLINE fpreal16 fpreal16::sNan ( )
static

Definition at line 755 of file fpreal16.h.

Member Data Documentation

const unsigned short* fpreal16::_eLut
staticprotected

Definition at line 244 of file fpreal16.h.

bool fpreal16::_itWorks
staticprotected

Definition at line 245 of file fpreal16.h.

const uif* fpreal16::_toFloat
staticprotected

Definition at line 243 of file fpreal16.h.


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