This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
5656 Bn :: Asin => 1 ,
5757 Bn :: Asinh => 2 ,
5858 Bn :: Atan => 1 ,
59- Bn :: Atan2 => 1 ,
59+ Bn :: Atan2 => 2 ,
6060 Bn :: Atanh => 2 ,
6161 Bn :: Cbrt => 1 ,
6262 Bn :: Cos => 1 ,
@@ -180,6 +180,20 @@ impl MaybeOverride<(f32,)> for SpecialCase {
180180 return XFAIL ;
181181 }
182182
183+ if ( ctx. base_name == BaseName :: Lgamma || ctx. base_name == BaseName :: LgammaR )
184+ && input. 0 > 4e36
185+ && expected. is_infinite ( )
186+ && !actual. is_infinite ( )
187+ {
188+ // This result should saturate but we return a finite value.
189+ return XFAIL ;
190+ }
191+
192+ if ctx. base_name == BaseName :: J0 && input. 0 < -1e34 {
193+ // Errors get huge close to -inf
194+ return XFAIL ;
195+ }
196+
183197 maybe_check_nan_bits ( actual, expected, ctx)
184198 }
185199
@@ -241,6 +255,11 @@ impl MaybeOverride<(f64,)> for SpecialCase {
241255 return XFAIL ;
242256 }
243257
258+ if ctx. base_name == BaseName :: J0 && input. 0 < -1e300 {
259+ // Errors get huge close to -inf
260+ return XFAIL ;
261+ }
262+
244263 maybe_check_nan_bits ( actual, expected, ctx)
245264 }
246265
@@ -357,6 +376,7 @@ impl MaybeOverride<(i32, f32)> for SpecialCase {
357376 }
358377 }
359378}
379+
360380impl MaybeOverride < ( i32 , f64 ) > for SpecialCase {
361381 fn check_float < F : Float > (
362382 input : ( i32 , f64 ) ,
You can’t perform that action at this time.
0 commit comments