HalfFloat Class Reference

#include <half.h>

Public Member Functions

 HalfFloat ()
 
MAXON_IMPLICIT HalfFloat (Float32 val)
 
MAXON_IMPLICIT HalfFloat (Int val)
 
MAXON_IMPLICIT HalfFloat (Int32 val)
 
MAXON_IMPLICIT HalfFloat (Float val)
 
MAXON_ATTRIBUTE_FORCE_INLINE operator Float32 () const
 
MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator- () const
 
MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator+ (const HalfFloat &other)
 
MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator- (const HalfFloat &other)
 
MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator* (const HalfFloat &other)
 
MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator/ (const HalfFloat &other)
 
String ToString (const FormatStatement *formatStatement=nullptr) const
 
UInt16 GetBits () const
 
 MAXON_OPERATOR_EQUALITY (HalfFloat, _half)
 
Bool operator< (const HalfFloat &other) const
 
 MAXON_OPERATOR_INEQUALITY (HalfFloat)
 
HashInt GetHashCode () const
 

Static Public Member Functions

static constexpr Bool TriviallyHashable ()
 

Private Member Functions

UInt16 CmpValue () const
 

Private Attributes

UInt16 _half
 

Constructor & Destructor Documentation

◆ HalfFloat() [1/5]

HalfFloat ( )

◆ HalfFloat() [2/5]

◆ HalfFloat() [3/5]

◆ HalfFloat() [4/5]

◆ HalfFloat() [5/5]

Member Function Documentation

◆ operator Float32()

◆ operator-() [1/2]

◆ operator+()

MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator+ ( const HalfFloat other)

◆ operator-() [2/2]

MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator- ( const HalfFloat other)

◆ operator*()

MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator* ( const HalfFloat other)

◆ operator/()

MAXON_ATTRIBUTE_FORCE_INLINE HalfFloat operator/ ( const HalfFloat other)

◆ ToString()

String ToString ( const FormatStatement formatStatement = nullptr) const

◆ GetBits()

UInt16 GetBits ( ) const

◆ MAXON_OPERATOR_EQUALITY()

MAXON_OPERATOR_EQUALITY ( HalfFloat  ,
_half   
)

◆ operator<()

Bool operator< ( const HalfFloat other) const

◆ MAXON_OPERATOR_INEQUALITY()

MAXON_OPERATOR_INEQUALITY ( HalfFloat  )

◆ GetHashCode()

HashInt GetHashCode ( ) const

◆ TriviallyHashable()

static constexpr Bool TriviallyHashable ( )
staticconstexpr

◆ CmpValue()

UInt16 CmpValue ( ) const
private

Member Data Documentation

◆ _half

UInt16 _half
private