12 #include "interop/config.h"
16 #if defined(HAVE_NO_STD_ISNAN)
17 # if defined(HAVE_ISNAN)
19 #elif defined(HAVE___ISNAN)
21 #elif defined(HAVE_FLOAT_H_ISNAN)
32 bool isnan(
const T val)
34 # if defined(HAVE_ISNAN)
36 # elif defined(HAVE___ISNAN)
38 # elif defined(HAVE_FLOAT_H_ISNAN)
50 bool isinf(
const T val)
52 # if defined(HAVE_ISNAN)
54 # elif defined(HAVE___ISNAN)
56 # elif defined(HAVE_FLOAT_H_ISNAN)
59 return !isnan(val) && isnan(val-val);
65 namespace illumina {
namespace interop {
namespace util
77 float float_cast(
const T val,
const T sentinel = std::numeric_limits<T>::max())
80 return std::numeric_limits<float>::quiet_NaN();
81 return static_cast<float>(val);
Definition: enum_description.h:15
float float_cast(const T val, const T sentinel=std::numeric_limits< T >::max())
Definition: math.h:77