@@ -41,10 +41,11 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
41
41
( Musl , Id :: Tgamma ) => 20 ,
42
42
43
43
// Overrides for MPFR
44
+ ( Mpfr , Id :: Acosh ) => 4 ,
44
45
( Mpfr , Id :: Acoshf ) => 4 ,
45
46
( Mpfr , Id :: Asinh | Id :: Asinhf ) => 2 ,
46
47
( Mpfr , Id :: Atanh | Id :: Atanhf ) => 2 ,
47
- ( Mpfr , Id :: Exp10 | Id :: Exp10f ) => 3 ,
48
+ ( Mpfr , Id :: Exp10 | Id :: Exp10f ) => 6 ,
48
49
( Mpfr , Id :: Lgamma | Id :: LgammaR | Id :: Lgammaf | Id :: LgammafR ) => 16 ,
49
50
( Mpfr , Id :: Sinh | Id :: Sinhf ) => 2 ,
50
51
( Mpfr , Id :: Tanh | Id :: Tanhf ) => 2 ,
@@ -105,17 +106,15 @@ impl MaybeOverride<(f32,)> for SpecialCase {
105
106
_ulp : & mut u32 ,
106
107
ctx : & CheckCtx ,
107
108
) -> Option < TestResult > {
108
- if ctx. basis == CheckBasis :: Musl {
109
- if ctx. fn_name == "expm1f" && input. 0 > 80.0 && actual. is_infinite ( ) {
110
- // we return infinity but the number is representable
111
- return XFAIL ;
112
- }
109
+ if ctx. fn_name == "expm1f" && input. 0 > 80.0 && actual. is_infinite ( ) {
110
+ // we return infinity but the number is representable
111
+ return XFAIL ;
112
+ }
113
113
114
- if ctx. fn_name == "sinhf" && input. 0 . abs ( ) > 80.0 && actual. is_nan ( ) {
115
- // we return some NaN that should be real values or infinite
116
- // doesn't seem to happen on x86
117
- return XFAIL ;
118
- }
114
+ if ctx. fn_name == "sinhf" && input. 0 . abs ( ) > 80.0 && actual. is_nan ( ) {
115
+ // we return some NaN that should be real values or infinite
116
+ // doesn't seem to happen on x86
117
+ return XFAIL ;
119
118
}
120
119
121
120
if ctx. fn_name == "acoshf" && input. 0 < -1.0 {
0 commit comments