[libc-commits] [PATCH] D150131: [libc][math] Implement double precision log function correctly rounded to all rounding modes.

Mikhail Ramalho via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Jun 1 14:21:41 PDT 2023


mikhail.ramalho added a comment.

hey @lntue, can you replace `__int128_t` with



================
Comment at: libc/src/math/generic/log_range_reduction.h:62
+  // |s*v| < 2^-27, ulp = 2^(-76-21) = 2^-97
+  __int128_t sv3 = static_cast<__int128_t>(s3) * static_cast<__int128_t>(vv2);
+  // |vv3| < 2^-21, ulp = 2^-97
----------------
Can you replace `__int128_t` with  `MType`? It would fix rv32 compilation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150131/new/

https://reviews.llvm.org/D150131



More information about the libc-commits mailing list