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

#include <ilmbase_half.h>

Classes

union  uif
 

Public Member Functions

 half ()=default
 
 half (float f)
 
 ~half ()=default
 
constexpr half (const half &) noexcept=default
 
constexpr 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
 
GF_API unsigned short bits () const
 
GF_API 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 97 of file ilmbase_half.h.

Constructor & Destructor Documentation

pxr_half::half::half ( )
default
pxr_half::half::half ( float  f)
inline

Definition at line 435 of file ilmbase_half.h.

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

Member Function Documentation

unsigned short pxr_half::half::bits ( ) const
inline

Definition at line 743 of file ilmbase_half.h.

bool pxr_half::half::isDenormalized ( ) const
inline

Definition at line 666 of file ilmbase_half.h.

bool pxr_half::half::isFinite ( ) const
inline

Definition at line 650 of file ilmbase_half.h.

bool pxr_half::half::isInfinity ( ) const
inline

Definition at line 691 of file ilmbase_half.h.

bool pxr_half::half::isNan ( ) const
inline

Definition at line 682 of file ilmbase_half.h.

bool pxr_half::half::isNegative ( ) const
inline

Definition at line 700 of file ilmbase_half.h.

bool pxr_half::half::isNormalized ( ) const
inline

Definition at line 658 of file ilmbase_half.h.

bool pxr_half::half::isZero ( ) const
inline

Definition at line 675 of file ilmbase_half.h.

half pxr_half::half::negInf ( )
inlinestatic

Definition at line 716 of file ilmbase_half.h.

pxr_half::half::operator float ( ) const
inline

Definition at line 499 of file ilmbase_half.h.

half & pxr_half::half::operator*= ( half  h)
inline

Definition at line 618 of file ilmbase_half.h.

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

Definition at line 626 of file ilmbase_half.h.

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

Definition at line 586 of file ilmbase_half.h.

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

Definition at line 594 of file ilmbase_half.h.

half pxr_half::half::operator- ( ) const
inline

Definition at line 569 of file ilmbase_half.h.

half & pxr_half::half::operator-= ( half  h)
inline

Definition at line 602 of file ilmbase_half.h.

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

Definition at line 610 of file ilmbase_half.h.

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

Definition at line 634 of file ilmbase_half.h.

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

Definition at line 642 of file ilmbase_half.h.

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

Definition at line 578 of file ilmbase_half.h.

half pxr_half::half::posInf ( )
inlinestatic

Definition at line 707 of file ilmbase_half.h.

half pxr_half::half::qNan ( )
inlinestatic

Definition at line 725 of file ilmbase_half.h.

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

Definition at line 510 of file ilmbase_half.h.

void pxr_half::half::setBits ( unsigned short  bits)
inline

Definition at line 750 of file ilmbase_half.h.

half pxr_half::half::sNan ( )
inlinestatic

Definition at line 734 of file ilmbase_half.h.


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