[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / libclc / generic / lib / relational / signbit.cl
bloba7378d7d6053e22efb7bad4167a28f85860dd053
1 #include <clc/clc.h>
2 #include "relational.h"
4 _CLC_DEFINE_RELATIONAL_UNARY(int, signbit, __builtin_signbitf, float)
6 #ifdef cl_khr_fp64
8 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
10 // The scalar version of signbit(double) returns an int, but the vector versions
11 // return long.
13 _CLC_DEF _CLC_OVERLOAD int signbit(double x){
14 return __builtin_signbit(x);
17 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL(long, signbit, double)
19 #endif
20 #ifdef cl_khr_fp16
22 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
24 // The scalar version of signbit(half) returns an int, but the vector versions
25 // return short.
27 _CLC_DEF _CLC_OVERLOAD int signbit(half x){
28 return __builtin_signbit(x);
31 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL(short, signbit, half)
33 #endif