[libc-commits] [PATCH] D115828: [libc] Implement correctly rounded log2f based on RLIBM library.

Paul Zimmermann via libc-commits libc-commits at lists.llvm.org
Thu Dec 23 06:05:16 PST 2021


       Dear Santosh,

> Have you commented out lines src/__support/FPUtil/PolyEval.h:38-42.

yes:

--- a/libc/src/__support/FPUtil/PolyEval.h
+++ b/libc/src/__support/FPUtil/PolyEval.h
@@ -35,7 +35,7 @@ INLINE_FMA static inline T polyeval(T x, T a0, Ts... a) {
 } // namespace fputil
 } // namespace __llvm_libc
 
-#ifdef LLVM_LIBC_ARCH_X86_64
+#ifdef LLVM_LIBC_ARCH_X86_64_XXX
 
 #include "x86_64/PolyEval.h"

Please find attached the log2f.cpp file I am using.

Best regards,
Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log2f.cpp
Type: application/octet-stream
Size: 7430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20211223/358caaac/attachment-0001.obj>


More information about the libc-commits mailing list