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

#include <FloatComparison.h>

Classes

union  FloatOrInt
 

Public Types

typedef double float_type
 
typedef bool bool_type
 
typedef int64_t int_type
 
typedef uint64_t uint_type
 

Static Public Member Functions

static double DefaultAbsTolerance ()
 
static double DefaultRelTolerance ()
 
static double DefaultTolerance ()
 
static double SmallestNormalisedValue ()
 

Static Public Attributes

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

Member Typedef Documentation

◆ bool_type

typedef bool IEEEFloatTraits< double >::bool_type

◆ float_type

typedef double IEEEFloatTraits< double >::float_type

◆ int_type

typedef int64_t IEEEFloatTraits< double >::int_type

◆ uint_type

typedef uint64_t IEEEFloatTraits< double >::uint_type

Member Function Documentation

◆ DefaultAbsTolerance()

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

◆ DefaultRelTolerance()

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

◆ DefaultTolerance()

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

◆ SmallestNormalisedValue()

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

Member Data Documentation

◆ DefaultUlpTolerance

const int_type IEEEFloatTraits< double >::DefaultUlpTolerance = 16
static

◆ ExponentBits

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

◆ MantissaBits

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

◆ TopBit

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

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