brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 71ee5b0 Raw
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_isless, float, float)15 16#ifdef cl_khr_fp6417 18#pragma OPENCL EXTENSION cl_khr_fp64 : enable19 20// The scalar version of __clc_isless(double, double) returns an int, but21// the vector versions return long.22_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, long, __clc_isless, double, double)23 24#endif25 26#ifdef cl_khr_fp1627 28#pragma OPENCL EXTENSION cl_khr_fp16 : enable29 30// The scalar version of __clc_isless(half, half) returns an int, but the31// vector versions return short.32_CLC_DEFINE_SIMPLE_RELATIONAL_BINARY(int, short, __clc_isless, half, half)33 34#endif35 36#undef _CLC_RELATIONAL_OP37