39 lines · plain
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#include <clc/internal/clc.h>10#include <clc/relational/clc_isequal.h>11#include <clc/relational/relational.h>12 13#define _CLC_RELATIONAL_OP(X, Y) \14 __clc_isequal((X), (X)) && __clc_isequal((Y), (Y))15 16_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, int, __clc_isordered, float, float)17 18#ifdef cl_khr_fp6419 20#pragma OPENCL EXTENSION cl_khr_fp64 : enable21 22// The scalar version of __clc_isordered(double, double) returns an int, but the23// vector versions return long.24_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, long, __clc_isordered, double, double)25 26#endif27 28#ifdef cl_khr_fp1629 30#pragma OPENCL EXTENSION cl_khr_fp16 : enable31 32// The scalar version of __clc_isordered(half, half) returns an int, but the33// vector versions return short.34_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, short, __clc_isordered, half, half)35 36#endif37 38#undef _CLC_RELATIONAL_OP39