2 #include
"../clcmacro.h"
4 #define SIGN
(TYPE, F
) \
5 _CLC_DEF _CLC_OVERLOAD TYPE sign
(TYPE x
) { \
15 return x
; /* -0.0 or +0.0 */ \
19 _CLC_UNARY_VECTORIZE
(_CLC_OVERLOAD _CLC_DEF
, float
, sign
, float
)
23 #pragma OPENCL EXTENSION cl_khr_fp64
: enable
26 _CLC_UNARY_VECTORIZE
(_CLC_OVERLOAD _CLC_DEF
, double
, sign
, double
)