Go to the documentation of this file. 1 #ifndef FWCORE_Utilities_isFinite_H 2 #define FWCORE_Utilities_isFinite_H 17 const unsigned int mask = 0x7f800000;
18 union {
unsigned int l;
float d;}
v;
20 return (
v.l&mask)!=
mask;
26 const unsigned long long mask = 0x7FF0000000000000LL;
27 union {
unsigned long long l;
double d;}
v;
29 return (
v.l&mask)!=
mask;
41 #endif // FWCORE_Utilities_isFinite_H