[rtsan] Remove mkfifoat interceptor (#116997)
[llvm-project.git] / libclc / clc / lib / generic / relational / clc_isordered.cl
blob6183d1ddf918f5b32b8d3864be851554d40c770d
1 #include <clc/internal/clc.h>
2 #include <clc/relational/clc_isequal.h>
3 #include <clc/relational/relational.h>
5 #define _CLC_DEFINE_ISORDERED(RET_TYPE, FUNCTION, ARG1_TYPE, ARG2_TYPE) \
6 _CLC_DEF _CLC_OVERLOAD RET_TYPE FUNCTION(ARG1_TYPE x, ARG2_TYPE y) { \
7 return __clc_isequal(x, x) && __clc_isequal(y, y); \
10 _CLC_DEFINE_ISORDERED(int, __clc_isordered, float, float)
11 _CLC_DEFINE_RELATIONAL_BINARY_VEC_ALL(int, __clc_isordered, float, float)
13 #ifdef cl_khr_fp64
14 #pragma OPENCL EXTENSION cl_khr_fp64 : enable
16 // The scalar version of __clc_isordered(double, double) returns an int, but the
17 // vector versions return long.
19 _CLC_DEFINE_ISORDERED(int, __clc_isordered, double, double)
20 _CLC_DEFINE_RELATIONAL_BINARY_VEC_ALL(long, __clc_isordered, double, double)
22 #endif
23 #ifdef cl_khr_fp16
24 #pragma OPENCL EXTENSION cl_khr_fp16 : enable
26 // The scalar version of __clc_isordered(half, half) returns an int, but the
27 // vector versions return short.
29 _CLC_DEFINE_ISORDERED(int, __clc_isordered, half, half)
30 _CLC_DEFINE_RELATIONAL_BINARY_VEC_ALL(short, __clc_isordered, half, half)
32 #endif
34 #undef _CLC_DEFINE_ISORDERED