[libc-commits] [PATCH] D94112: [libc] Add implementations of nearbyint[f|l].

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue Jan 5 12:51:57 PST 2021


sivachandra created this revision.
sivachandra added a reviewer: lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
sivachandra requested review of this revision.

The implementation is exactly the same as rint* as even rint does not
raise any floating point exceptions currently. [Note that the standards
do not specify that floating point exceptions must be raised - they
leave it up to the implementation to choose to raise FE_INEXACT when
rounding non-integral values.]


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94112

Files:
  libc/config/linux/x86_64/entrypoints.txt
  libc/spec/stdc.td
  libc/src/math/CMakeLists.txt
  libc/src/math/nearbyint.cpp
  libc/src/math/nearbyint.h
  libc/src/math/nearbyintf.cpp
  libc/src/math/nearbyintf.h
  libc/src/math/nearbyintl.cpp
  libc/src/math/nearbyintl.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94112.314692.patch
Type: text/x-patch
Size: 6592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20210105/78035799/attachment.bin>


More information about the libc-commits mailing list