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 44689c2 commit 97da6e5Copy full SHA for 97da6e5
compiler-builtins/libm/crates/libm-test/src/precision.rs
@@ -104,11 +104,14 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
104
// In some cases, our implementation is less accurate than musl on i586.
105
if cfg!(x86_no_sse) {
106
match ctx.fn_ident {
107
+ // FIXME(#401): these need to be correctly rounded but are not.
108
+ Id::Fmaf => ulp = 1,
109
+ Id::Fdim => ulp = 1,
110
+
111
Id::Asinh => ulp = 3,
112
Id::Asinhf => ulp = 3,
113
Id::Exp10 | Id::Exp10f => ulp = 1_000_000,
114
Id::Exp2 | Id::Exp2f => ulp = 10_000_000,
- Id::Fmaf => ulp = 1,
115
Id::Log1p | Id::Log1pf => ulp = 2,
116
Id::Rint => ulp = 100_000,
117
Id::Round => ulp = 1,
0 commit comments