[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libclc / generic / lib / relational / isinf.cl
blob96aae4aa700e41cd4ec9b76bc69f274f1eb6bfbb
1 #include <clc/clc.h>
2 #include "relational.h"
4 _CLC_DEFINE_RELATIONAL_UNARY(int, isinf, __builtin_isinf, float)
6 #ifdef cl_khr_fp64
8 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
10 // The scalar version of isinf(double) returns an int, but the vector versions
11 // return long.
12 _CLC_DEF _CLC_OVERLOAD int isinf(double x) {
13 return __builtin_isinf(x);
16 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL(long, isinf, double)
17 #endif
19 #ifdef cl_khr_fp16
21 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
23 // The scalar version of isinf(half) returns an int, but the vector versions
24 // return short.
25 _CLC_DEF _CLC_OVERLOAD int isinf(half x) {
26 return __builtin_isinf(x);
29 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL(short, isinf, half)
30 #endif