1 #define _CLC_ISEQUAL_DECL(TYPE, RETTYPE) \ 2 _CLC_OVERLOAD _CLC_DECL RETTYPE isequal(TYPE x, TYPE y); 3 4 #define _CLC_VECTOR_ISEQUAL_DECL(TYPE, RETTYPE) \ 5 _CLC_ISEQUAL_DECL(TYPE##2, RETTYPE##2) \ 6 _CLC_ISEQUAL_DECL(TYPE##3, RETTYPE##3) \ 7 _CLC_ISEQUAL_DECL(TYPE##4, RETTYPE##4) \ 8 _CLC_ISEQUAL_DECL(TYPE##8, RETTYPE##8) \ 9 _CLC_ISEQUAL_DECL(TYPE##16, RETTYPE##16) 10 11 _CLC_ISEQUAL_DECL(float, int) 12 _CLC_VECTOR_ISEQUAL_DECL(float, int) 13 14 #ifdef cl_khr_fp64 15 _CLC_ISEQUAL_DECL(double, int) 16 _CLC_VECTOR_ISEQUAL_DECL(double, long) 17 #endif 18 #ifdef cl_khr_fp16 19 _CLC_ISEQUAL_DECL(half, int) 20 _CLC_VECTOR_ISEQUAL_DECL(half, short) 21 #endif 22 23 #undef _CLC_ISEQUAL_DECL 24 #undef _CLC_VECTOR_ISEQUAL_DEC 25