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)
 
constexpr half (const half &h)=default
 
 operator float () const
 
half operator- () const
 
halfoperator= (const half &)=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
half::half ( float  f)
inline

Definition at line 433 of file ilmbase_half.h.

constexpr pxr_half::half::half ( const half h)
default

Member Function Documentation

unsigned short half::bits ( ) const
inline

Definition at line 741 of file ilmbase_half.h.

bool half::isDenormalized ( ) const
inline

Definition at line 664 of file ilmbase_half.h.

bool half::isFinite ( ) const
inline

Definition at line 648 of file ilmbase_half.h.

bool half::isInfinity ( ) const
inline

Definition at line 689 of file ilmbase_half.h.

bool half::isNan ( ) const
inline

Definition at line 680 of file ilmbase_half.h.

bool half::isNegative ( ) const
inline

Definition at line 698 of file ilmbase_half.h.

bool half::isNormalized ( ) const
inline

Definition at line 656 of file ilmbase_half.h.

bool half::isZero ( ) const
inline

Definition at line 673 of file ilmbase_half.h.

half half::negInf ( )
inlinestatic

Definition at line 714 of file ilmbase_half.h.

half::operator float ( ) const
inline

Definition at line 497 of file ilmbase_half.h.

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

Definition at line 616 of file ilmbase_half.h.

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

Definition at line 624 of file ilmbase_half.h.

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

Definition at line 584 of file ilmbase_half.h.

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

Definition at line 592 of file ilmbase_half.h.

half half::operator- ( ) const
inline

Definition at line 567 of file ilmbase_half.h.

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

Definition at line 600 of file ilmbase_half.h.

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

Definition at line 608 of file ilmbase_half.h.

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

Definition at line 632 of file ilmbase_half.h.

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

Definition at line 640 of file ilmbase_half.h.

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

Definition at line 576 of file ilmbase_half.h.

half half::posInf ( )
inlinestatic

Definition at line 705 of file ilmbase_half.h.

half half::qNan ( )
inlinestatic

Definition at line 723 of file ilmbase_half.h.

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

Definition at line 508 of file ilmbase_half.h.

void half::setBits ( unsigned short  bits)
inline

Definition at line 748 of file ilmbase_half.h.

half half::sNan ( )
inlinestatic

Definition at line 732 of file ilmbase_half.h.


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