brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1002 B · 93f14d7 Raw
34 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/relational/clc_isinf.h>10 11int __nv_isinff(float);12int __nv_isinfd(double);13 14_CLC_OVERLOAD _CLC_DEF int __clc_isinf(float x) { return __nv_isinff(x); }15 16#ifdef cl_khr_fp6417#pragma OPENCL EXTENSION cl_khr_fp64 : enable18 19_CLC_OVERLOAD _CLC_DEF int __clc_isinf(double x) { return __nv_isinfd(x); }20 21#endif22 23#ifdef cl_khr_fp1624#pragma OPENCL EXTENSION cl_khr_fp16 : enable25 26_CLC_OVERLOAD _CLC_DEF int __clc_isinf(half x) { return __clc_isinf((float)x); }27 28#endif29 30#define __CLC_FUNCTION __clc_isinf31#define __CLC_BODY <clc/shared/unary_def_scalarize.inc>32#define __CLC_RET_TYPE __CLC_BIT_INT33#include <clc/math/gentype.inc>34