2 #include
"relational.h"
4 _CLC_DEFINE_RELATIONAL_UNARY
(int, signbit
, __builtin_signbitf
, float
)
8 #pragma OPENCL EXTENSION cl_khr_fp64
: enable
10 // The scalar version of signbit
(double) returns an int
, but the vector versions
13 _CLC_DEF _CLC_OVERLOAD int signbit
(double x
){
14 return __builtin_signbit
(x);
17 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL
(long, signbit
, double
)
22 #pragma OPENCL EXTENSION cl_khr_fp16
: enable
24 // The scalar version of signbit
(half) returns an int
, but the vector versions
27 _CLC_DEF _CLC_OVERLOAD int signbit
(half x
){
28 return __builtin_signbit
(x);
31 _CLC_DEFINE_RELATIONAL_UNARY_VEC_ALL
(short, signbit
, half
)