2 #include
"relational.h"
4 _CLC_DEFINE_RELATIONAL_UNARY
(int, isnan
, __builtin_isnan
, float
)
8 #pragma OPENCL EXTENSION cl_khr_fp64
: enable
10 // The scalar version of isnan
(double) returns an int
, but the vector versions
12 _CLC_DEF _CLC_OVERLOAD int isnan
(double x
) {
13 return __builtin_isnan
(x);
16 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL
(long, isnan
, double
)
22 #pragma OPENCL EXTENSION cl_khr_fp16
: enable
24 // The scalar version of isnan
(half) returns an int
, but the vector versions
26 _CLC_DEF _CLC_OVERLOAD int isnan
(half x
) {
27 return __builtin_isnan
(x);
30 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL
(short, isnan
, half
)