File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,24 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
90
90
Bn :: Exp10 if usize:: BITS < 64 => ulp = 4 ,
91
91
Bn :: Lgamma | Bn :: LgammaR => ulp = 400 ,
92
92
Bn :: Tanh => ulp = 4 ,
93
- _ if ctx. fn_ident == Id :: Sincosf => ulp = 500 ,
94
- _ if ctx. fn_ident == Id :: Tgamma => ulp = 20 ,
93
+ _ => ( ) ,
94
+ }
95
+
96
+ match ctx. fn_ident {
97
+ // FIXME(#401): musl has an incorrect result here.
98
+ Id :: Fdim => ulp = 2 ,
99
+ Id :: Jnf | Id :: Ynf => ulp = 4000 ,
100
+ Id :: Sincosf => ulp = 500 ,
101
+ Id :: Tgamma => ulp = 20 ,
95
102
_ => ( ) ,
96
103
}
97
104
}
98
105
99
106
// In some cases, our implementation is less accurate than musl on i586.
100
107
if cfg ! ( x86_no_sse) {
101
108
match ctx. fn_ident {
109
+ Id :: Asinh => ulp = 3 ,
110
+ Id :: Asinhf => ulp = 3 ,
102
111
Id :: Log1p | Id :: Log1pf => ulp = 2 ,
103
112
Id :: Round => ulp = 1 ,
104
113
Id :: Tan => ulp = 2 ,
You can’t perform that action at this time.
0 commit comments