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 ()=default
 
 half (float f)
 
 ~half ()=default
 
 half (const half &)=default
 
 half (half &&) noexcept=default
 
 operator float () const
 
half operator- () const
 
halfoperator= (const half &h)=default
 
halfoperator= (half &&h) noexcept=default
 
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
 
HALF_EXPORT unsigned short bits () const
 
HALF_EXPORT 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 ( )
default
half::half ( float  f)
inline

Definition at line 429 of file half.h.

half::~half ( )
default
half::half ( const half )
default
half::half ( half &&  )
defaultnoexcept

Member Function Documentation

unsigned short half::bits ( ) const
inline

Definition at line 737 of file half.h.

bool half::isDenormalized ( ) const
inline

Definition at line 660 of file half.h.

bool half::isFinite ( ) const
inline

Definition at line 644 of file half.h.

bool half::isInfinity ( ) const
inline

Definition at line 685 of file half.h.

bool half::isNan ( ) const
inline

Definition at line 676 of file half.h.

bool half::isNegative ( ) const
inline

Definition at line 694 of file half.h.

bool half::isNormalized ( ) const
inline

Definition at line 652 of file half.h.

bool half::isZero ( ) const
inline

Definition at line 669 of file half.h.

half half::negInf ( )
inlinestatic

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

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

Definition at line 620 of file half.h.

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

Definition at line 580 of file half.h.

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

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

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

Definition at line 604 of file half.h.

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

Definition at line 628 of file half.h.

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

Definition at line 636 of file half.h.

half& half::operator= ( const half h)
default
half& half::operator= ( half &&  h)
defaultnoexcept
half & half::operator= ( float  f)
inline

Definition at line 572 of file half.h.

half half::posInf ( )
inlinestatic

Definition at line 701 of file half.h.

half half::qNan ( )
inlinestatic

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

half half::sNan ( )
inlinestatic

Definition at line 728 of file half.h.


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