diff options
author | Evgeny Mankov <evgeny.mankov@gmail.com> | 2019-04-18 10:08:55 +0000 |
---|---|---|
committer | Evgeny Mankov <evgeny.mankov@gmail.com> | 2019-04-18 10:08:55 +0000 |
commit | 88aa3d7237687504335b2a62e39678f6a8f7e06d (patch) | |
tree | b1af5ebcab9ecdd3b1f863c1204498179e9499f0 /clang/lib/Headers/__clang_cuda_cmath.h | |
parent | 69186f82f3f557423618d7e5ffeb3355e89ce73a (diff) | |
download | bcm5719-llvm-88aa3d7237687504335b2a62e39678f6a8f7e06d.tar.gz bcm5719-llvm-88aa3d7237687504335b2a62e39678f6a8f7e06d.zip |
[CUDA][Windows] Restrict long double device functions declarations to Windows
As agreed in D60220, make long double declarations unobservable on non-windows platforms.
[Testing]
{Windows 10, Ubuntu 16.04.5}/{Visual C++ 2017 15.9.11 & 2019 16.0.1, gcc+ 5.4.0}/CUDA {8.0, 9.0, 9.1, 9.2, 10.0, 10.1}
Reviewed by: Artem Belevich
Differential Revision: https://reviews.llvm.org/D60818
llvm-svn: 358654
Diffstat (limited to 'clang/lib/Headers/__clang_cuda_cmath.h')
-rw-r--r-- | clang/lib/Headers/__clang_cuda_cmath.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Headers/__clang_cuda_cmath.h b/clang/lib/Headers/__clang_cuda_cmath.h index df873c51690..cbcef0f5653 100644 --- a/clang/lib/Headers/__clang_cuda_cmath.h +++ b/clang/lib/Headers/__clang_cuda_cmath.h @@ -64,16 +64,13 @@ __DEVICE__ float frexp(float __arg, int *__exp) { #ifndef _MSC_VER __DEVICE__ bool isinf(float __x) { return ::__isinff(__x); } __DEVICE__ bool isinf(double __x) { return ::__isinf(__x); } -__DEVICE__ bool isinf(long double __x) { return ::__isinfl(__x); } __DEVICE__ bool isfinite(float __x) { return ::__finitef(__x); } // For inscrutable reasons, __finite(), the double-precision version of // __finitef, does not exist when compiling for MacOS. __isfinited is available // everywhere and is just as good. __DEVICE__ bool isfinite(double __x) { return ::__isfinited(__x); } -__DEVICE__ bool isfinite(long double __x) { return ::__finitel(__x); } __DEVICE__ bool isnan(float __x) { return ::__isnanf(__x); } __DEVICE__ bool isnan(double __x) { return ::__isnan(__x); } -__DEVICE__ bool isnan(long double __x) { return ::__isnanl(__x); } #endif __DEVICE__ bool isgreater(float __x, float __y) { |