We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bcc6bc commit d8aa81bCopy full SHA for d8aa81b
libm-test/src/precision.rs
@@ -19,8 +19,8 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
19
let mut ulp = match ctx.base_name {
20
// operations from builtins are always precise
21
Bn::Add | Bn::Sub | Bn::Mul | Bn::Div => 0,
22
- // TODO: is this actually what we want?
23
- Bn::Powi => 4,
+ // FIXME: we need a better powi implementation (though this is no worse than C)
+ Bn::Powi => 100,
24
25
// Operations that require exact results. This list should correlate with what we
26
// have documented at <https://doc.rust-lang.org/std/primitive.f32.html>.
0 commit comments