brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · eec8c1a Raw
38 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_islessequal, float, float)15 16#ifdef cl_khr_fp6417 18#pragma OPENCL EXTENSION cl_khr_fp64 : enable19 20// The scalar version of __clc_islessequal(double, double) returns an int, but21// the vector versions return long.22_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, long, __clc_islessequal, double,23                                     double)24 25#endif26 27#ifdef cl_khr_fp1628 29#pragma OPENCL EXTENSION cl_khr_fp16 : enable30 31// The scalar version of __clc_islessequal(half, half) returns an int, but the32// vector versions return short.33_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, short, __clc_islessequal, half, half)34 35#endif36 37#undef _CLC_RELATIONAL_OP38