ATLAS Offline Software
Classes | Namespaces | Macros | Typedefs | Enumerations
FPHelpers.h File Reference
#include <cstdint>
#include <climits>
#include <cstring>
Include dependency graph for FPHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FloatingPointHelpers::IEEE754_like< mantiss, exp, tag >
 
struct  FloatingPointHelpers::ConversionHelper< FLarge, FSmall >
 
struct  FloatingPointHelpers::ConversionHelper< StandardDouble, StandardFloat >
 
struct  FloatingPointHelpers::ConversionHelper< Format, Format >
 

Namespaces

 FloatingPointHelpers
 
 FloatingPointHelpers::LeadingZerosPortability
 
 FloatingPointHelpers::OperatorsHelper
 
 FloatingPointHelpers::BitCastHelper
 

Macros

#define CALORECGPU_INCLUDE_CUDA_SUPPORT   1
 
#define CALORECGPU_MULTIPLE_PORTABILITY_CLZ_FUNC_HELPER(ATTRIB, TYPE, BUILTIN)
 

Typedefs

using FloatingPointHelpers::StandardFloat = IEEE754_like< 23, 8 >
 
using FloatingPointHelpers::StandardDouble = IEEE754_like< 52, 11 >
 
using FloatingPointHelpers::CUDAHalfFloat = IEEE754_like< 10, 5 >
 
using FloatingPointHelpers::CUDABFloat16 = IEEE754_like< 7, 8 >
 

Enumerations

enum  FloatingPointHelpers::RoundingModes {
  FloatingPointHelpers::RoundingModes::ToPlusInfinity, FloatingPointHelpers::RoundingModes::ToMinusInfinity, FloatingPointHelpers::RoundingModes::ToZero, FloatingPointHelpers::RoundingModes::ToNearestEven,
  FloatingPointHelpers::RoundingModes::ToNearestAwayFromZero, FloatingPointHelpers::RoundingModes::Default = ToNearestEven
}
 

Detailed Description

Contains functions to deal with arbitrary IEEE754-like floating point formats.

Definition in file FPHelpers.h.

Macro Definition Documentation

◆ CALORECGPU_INCLUDE_CUDA_SUPPORT

#define CALORECGPU_INCLUDE_CUDA_SUPPORT   1

Definition at line 13 of file FPHelpers.h.

◆ CALORECGPU_MULTIPLE_PORTABILITY_CLZ_FUNC_HELPER

#define CALORECGPU_MULTIPLE_PORTABILITY_CLZ_FUNC_HELPER (   ATTRIB,
  TYPE,
  BUILTIN 
)
Value:
template<> \
ATTRIB inline unsigned int count_leading_zeros(const TYPE num) \
{ \
if (!num) \
{ \
return sizeof(TYPE) * CHAR_BIT; \
} \
return BUILTIN(num); \
} \

Definition at line 95 of file FPHelpers.h.

trigbs_pickEvents.num
num
Definition: trigbs_pickEvents.py:76
TYPE
#define TYPE(CODE, TYP, IOTYP)