projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd69468
)
[libc][NFC] Set rounding mode for sincosf exhaustive test.
author
Tue Ly
<lntue@google.com>
Thu, 29 Jun 2023 00:30:54 +0000
(20:30 -0400)
committer
Tue Ly
<lntue@google.com>
Thu, 29 Jun 2023 00:30:54 +0000
(20:30 -0400)
libc/test/src/math/exhaustive/sincosf_test.cpp
patch
|
blob
|
history
diff --git
a/libc/test/src/math/exhaustive/sincosf_test.cpp
b/libc/test/src/math/exhaustive/sincosf_test.cpp
index
dfc2228
..
1917924
100644
(file)
--- a/
libc/test/src/math/exhaustive/sincosf_test.cpp
+++ b/
libc/test/src/math/exhaustive/sincosf_test.cpp
@@
-18,6
+18,9
@@
struct SincosfChecker : public virtual __llvm_libc::testing::Test {
using UIntType = uint32_t;
uint64_t check(UIntType start, UIntType stop, mpfr::RoundingMode rounding) {
+ mpfr::ForceRoundingMode r(rounding);
+ if (!r.success)
+ return (stop > start);
UIntType bits = start;
uint64_t failed = 0;
do {