[libc-commits] [PATCH] D115408: [libc] Implement correctly rounded logf based on RLIBM library.

Paul Zimmermann via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Dec 14 00:56:18 PST 2021


zimmermann6 added a comment.

I confirm the new version is CR for all cases in rounding to nearest. A way to make the exceptional cases CR for directed rounding modes is the following:

  case 0x3f80d19f:
    {
      volatile double h = 0x1.a1e82cp-8f, l = -0x1.fffd1ep-33f;
      return h + l;
    }

Or compile with -frounding-math to avoid the "volatile" trick.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115408



More information about the libc-commits mailing list