1 #include
<clc
/internal
/clc.h
>
2 #include
<clc
/relational
/relational.h
>
4 _CLC_DEFINE_RELATIONAL_UNARY
(int, __clc_isinf
, __builtin_isinf
, float
)
8 #pragma OPENCL EXTENSION cl_khr_fp64
: enable
10 // The scalar version of __clc_isinf
(double) returns an int
, but the vector
11 // versions return long.
12 _CLC_DEF _CLC_OVERLOAD int __clc_isinf
(double x
) { return __builtin_isinf
(x); }
14 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL
(long, __clc_isinf
, double
)
19 #pragma OPENCL EXTENSION cl_khr_fp16
: enable
21 // The scalar version of __clc_isinf
(half) returns an int
, but the vector
22 // versions return short.
23 _CLC_DEF _CLC_OVERLOAD int __clc_isinf
(half x
) { return __builtin_isinf
(x); }
25 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL
(short, __clc_isinf
, half
)