Pioneer
Loading...
Searching...
No Matches
Classes | Public Types | Static Public Member Functions | Static Public Attributes | List of all members
IEEEFloatTraits< float > Struct Reference

#include <FloatComparison.h>

Classes

union  FloatOrInt
 

Public Types

typedef float float_type
 
typedef bool bool_type
 
typedef int32_t int_type
 
typedef uint32_t uint_type
 

Static Public Member Functions

static float DefaultAbsTolerance ()
 
static float DefaultRelTolerance ()
 
static float DefaultTolerance ()
 
static float SmallestNormalisedValue ()
 

Static Public Attributes

static const uint_type TopBit = uint_type(1) << (sizeof(float) * 8 - 1)
 
static const uint_type ExponentBits = (~uint_type(0) << std::numeric_limits<float>::digits) & ~TopBit
 
static const uint_type MantissaBits = ~TopBit & ~ExponentBits
 
static const int_type DefaultUlpTolerance = 4
 

Member Typedef Documentation

◆ bool_type

typedef bool IEEEFloatTraits< float >::bool_type

◆ float_type

typedef float IEEEFloatTraits< float >::float_type

◆ int_type

typedef int32_t IEEEFloatTraits< float >::int_type

◆ uint_type

typedef uint32_t IEEEFloatTraits< float >::uint_type

Member Function Documentation

◆ DefaultAbsTolerance()

static float IEEEFloatTraits< float >::DefaultAbsTolerance ( )
inlinestatic

◆ DefaultRelTolerance()

static float IEEEFloatTraits< float >::DefaultRelTolerance ( )
inlinestatic

◆ DefaultTolerance()

static float IEEEFloatTraits< float >::DefaultTolerance ( )
inlinestatic

◆ SmallestNormalisedValue()

static float IEEEFloatTraits< float >::SmallestNormalisedValue ( )
inlinestatic

Member Data Documentation

◆ DefaultUlpTolerance

const int_type IEEEFloatTraits< float >::DefaultUlpTolerance = 4
static

◆ ExponentBits

const uint_type IEEEFloatTraits< float >::ExponentBits = (~uint_type(0) << std::numeric_limits<float>::digits) & ~TopBit
static

◆ MantissaBits

const uint_type IEEEFloatTraits< float >::MantissaBits = ~TopBit & ~ExponentBits
static

◆ TopBit

const uint_type IEEEFloatTraits< float >::TopBit = uint_type(1) << (sizeof(float) * 8 - 1)
static

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