[llvm-branch-commits] [clang] be40c12 - [HIP] Add signbit(long double) decl

Aaron En Ye Shi via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jan 14 10:33:41 PST 2021


Author: Aaron En Ye Shi
Date: 2021-01-14T18:23:37Z
New Revision: be40c12040a0d5551bf3430cbb184b5ef23e25fd

URL: https://github.com/llvm/llvm-project/commit/be40c12040a0d5551bf3430cbb184b5ef23e25fd
DIFF: https://github.com/llvm/llvm-project/commit/be40c12040a0d5551bf3430cbb184b5ef23e25fd.diff

LOG: [HIP] Add signbit(long double) decl

An _MSC_VER version of signbit(long double) is required for MSVC headers.

Fixes: SWDEV-256409

Differential Revision: https://reviews.llvm.org/D93062

Added: 
    

Modified: 
    clang/lib/Headers/__clang_cuda_math_forward_declares.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/Headers/__clang_cuda_math_forward_declares.h b/clang/lib/Headers/__clang_cuda_math_forward_declares.h
index 8a270859e4a5..c0f1f47cc993 100644
--- a/clang/lib/Headers/__clang_cuda_math_forward_declares.h
+++ b/clang/lib/Headers/__clang_cuda_math_forward_declares.h
@@ -160,6 +160,9 @@ __DEVICE__ double scalbln(double, long);
 __DEVICE__ float scalbln(float, long);
 __DEVICE__ double scalbn(double, int);
 __DEVICE__ float scalbn(float, int);
+#ifdef _MSC_VER
+__DEVICE__ bool signbit(long double);
+#endif
 __DEVICE__ bool signbit(double);
 __DEVICE__ bool signbit(float);
 __DEVICE__ double sin(double);


        


More information about the llvm-branch-commits mailing list