[LangRef] Fix code segment and numbering issue in the 'call' instruction section...
[llvm-project.git] / libclc / clc / lib / generic / relational / clc_isinf.cl
blobafe29122f36a3e61b6dd20e10728bf4333e7a80d
1 #include <clc/internal/clc.h>
2 #include <clc/relational/relational.h>
4 _CLC_DEFINE_RELATIONAL_UNARY(int, __clc_isinf, __builtin_isinf, float)
6 #ifdef cl_khr_fp64
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)
15 #endif
17 #ifdef cl_khr_fp16
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)
26 #endif