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