[all-commits] [llvm/llvm-project] 993d8a: [libc] Add implementations of nearbyint[f|l].
Siva Chandra via All-commits
all-commits at lists.llvm.org
Tue Jan 5 21:56:09 PST 2021
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 993d8ac5cb935b78fb136c25a7e4bae18852f429
https://github.com/llvm/llvm-project/commit/993d8ac5cb935b78fb136c25a7e4bae18852f429
Author: Siva Chandra Reddy <sivachandra at google.com>
Date: 2021-01-05 (Tue, 05 Jan 2021)
Changed paths:
M libc/config/linux/x86_64/entrypoints.txt
M libc/spec/stdc.td
M libc/src/math/CMakeLists.txt
A libc/src/math/nearbyint.cpp
A libc/src/math/nearbyint.h
A libc/src/math/nearbyintf.cpp
A libc/src/math/nearbyintf.h
A libc/src/math/nearbyintl.cpp
A libc/src/math/nearbyintl.h
Log Message:
-----------
[libc] Add implementations of nearbyint[f|l].
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.]
Reviewed By: lntue
Differential Revision: https://reviews.llvm.org/D94112
More information about the All-commits
mailing list