37 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/relational.h>11 12#define _CLC_RELATIONAL_OP(X, Y) (X) > (Y)13 14_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, int, __clc_isgreater, float, float)15 16#ifdef cl_khr_fp6417 18#pragma OPENCL EXTENSION cl_khr_fp64 : enable19 20// The scalar version of __clc_isgreater(double, double) returns an int, but the21// vector versions return long.22_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, long, __clc_isgreater, double, double)23 24#endif25 26#ifdef cl_khr_fp1627 28#pragma OPENCL EXTENSION cl_khr_fp16 : enable29 30// The scalar version of __clc_isgreater(half, half) returns an int, but the31// vector versions return short.32_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, short, __clc_isgreater, half, half)33 34#endif35 36#undef _CLC_RELATIONAL_OP37