Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 8dc619a

Browse files
committed
Adjust the precision of J0/J1 based on new tests
It seems that these results are not target dependent, the high ULP results can be hit on x86 as well.
1 parent 027f927 commit 8dc619a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/libm-test/src/precision.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
2626
// Overrides that apply to either basis
2727
// FMA is expected to be infinite precision.
2828
(_, Id::Fma | Id::Fmaf) => 0,
29-
(_, Id::J0 | Id::J0f | Id::J1 | Id::J1f) => {
30-
// Results seem very target-dependent
31-
if cfg!(target_arch = "x86_64") { 4000 } else { 800_000 }
32-
}
29+
(_, Id::J0 | Id::J0f | Id::J1 | Id::J1f) => 800_000,
3330
(_, Id::Jn | Id::Jnf) => 1000,
3431

3532
// Overrides for musl

0 commit comments

Comments
 (0)