33 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_CLC_DEFINE_ISFPCLASS(int, int, __clc_isnan, fcNan, float)13 14#ifdef cl_khr_fp6415 16#pragma OPENCL EXTENSION cl_khr_fp64 : enable17 18// The scalar version of __clc_isnan(double) returns an int, but the vector19// versions return a long.20_CLC_DEFINE_ISFPCLASS(int, long, __clc_isnan, fcNan, double)21 22#endif23 24#ifdef cl_khr_fp1625 26#pragma OPENCL EXTENSION cl_khr_fp16 : enable27 28// The scalar version of __clc_isnan(half) returns an int, but the vector29// versions return a short.30_CLC_DEFINE_ISFPCLASS(int, short, __clc_isnan, fcNan, half)31 32#endif33