Skip to content

Commit ea3fd02

Browse files
authored
Revert "[libc] Make GPU libm use generic implementations" (llvm#98061)
Reverts llvm#98014 buildbot is broken.
1 parent e0012a0 commit ea3fd02

File tree

6 files changed

+1201
-51
lines changed

6 files changed

+1201
-51
lines changed

libc/include/llvm-libc-macros/math-macros.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@
4141
#define FP_LLOGBNAN LONG_MAX
4242
#endif
4343

44-
#if defined(__NVPTX__) || defined(__AMDGPU__) || defined(__FAST_MATH__)
44+
#ifdef __FAST_MATH__
4545
#define math_errhandling 0
4646
#elif defined(__NO_MATH_ERRNO__)
4747
#define math_errhandling (MATH_ERREXCEPT)
48+
#elif defined(__NVPTX__) || defined(__AMDGPU__)
49+
#define math_errhandling (MATH_ERRNO)
4850
#else
4951
#define math_errhandling (MATH_ERRNO | MATH_ERREXCEPT)
5052
#endif

0 commit comments

Comments
 (0)