[llvm] [APFloat] Add exp functions for single and double using exp/expf implementations from LLVM libc. (PR #190667)
via llvm-commits
llvm-commits at lists.llvm.org
Wed May 6 09:53:18 PDT 2026
================
@@ -29,6 +29,13 @@
#include <cstring>
#include <limits.h>
+// Shared headers from LLVM libc
+// Make sure to add ${LLVM_SOURCE_DIR}/../libc to include directories.
+#define LIBC_NAMESPACE __llvm_libc_apfloat
+#define LIBC_MATH (LIBC_MATH_NO_ERRNO | LIBC_MATH_NO_EXCEPT)
----------------
lntue wrote:
These are used inside the LLVM libc's implementation. I'll add comments about their usage here.
https://github.com/llvm/llvm-project/pull/190667
More information about the llvm-commits
mailing list