[rtsan] Remove mkfifoat interceptor (#116997)
[llvm-project.git] / libclc / clc / lib / generic / relational / clc_isnotequal.cl
blob9f90713b2da5085f09b45c5c4a4d29b922938a5f
1 #include <clc/internal/clc.h>
2 #include <clc/relational/relational.h>
4 #define _CLC_DEFINE_ISNOTEQUAL(RET_TYPE, FUNCTION, ARG1_TYPE, ARG2_TYPE) \
5 _CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG1_TYPE x, ARG2_TYPE y) { \
6 return (x != y); \
9 _CLC_DEFINE_ISNOTEQUAL(int, __clc_isnotequal, float, float)
10 _CLC_DEFINE_RELATIONAL_BINARY_VEC_ALL(int, __clc_isnotequal, float, float)
12 #ifdef cl_khr_fp64
13 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
15 // The scalar version of __clc_isnotequal(double, double) returns an int, but
16 // the vector versions return long.
18 _CLC_DEFINE_ISNOTEQUAL(int, __clc_isnotequal, double, double)
19 _CLC_DEFINE_RELATIONAL_BINARY_VEC_ALL(long, __clc_isnotequal, double, double)
21 #endif
22 #ifdef cl_khr_fp16
23 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
25 // The scalar version of __clc_isnotequal(half, half) returns an int, but the
26 // vector versions return short.
28 _CLC_DEFINE_ISNOTEQUAL(int, __clc_isnotequal, half, half)
29 _CLC_DEFINE_RELATIONAL_BINARY_VEC_ALL(short, __clc_isnotequal, half, half)
31 #endif
33 #undef _CLC_DEFINE_ISNOTEQUAL