Skip to content

Commit 1f21402

Browse files
committed
increase allowed precision for powi
1 parent a8fa866 commit 1f21402

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libm-test/src/precision.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
1818
// ULP compared to the infinite (MPFR) result.
1919
let mut ulp = match ctx.base_name {
2020
// operations from builtins are always precise
21-
Bn::Add | Bn::Sub | Bn::Mul | Bn::Div | Bn::Powi => 0,
21+
Bn::Add | Bn::Sub | Bn::Mul | Bn::Div => 0,
22+
// TODO: is this actually what we want?
23+
Bn::Powi => 4,
2224

2325
// Operations that require exact results. This list should correlate with what we
2426
// have documented at <https://doc.rust-lang.org/std/primitive.f32.html>.

0 commit comments

Comments
 (0)