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 @@ -55,7 +55,7 @@ pub fn default_ulp(ctx: &CheckCtx) -> u32 {
55
55
Bn :: Asin => 1 ,
56
56
Bn :: Asinh => 2 ,
57
57
Bn :: Atan => 1 ,
58
- Bn :: Atan2 => 1 ,
58
+ Bn :: Atan2 => 2 ,
59
59
Bn :: Atanh => 2 ,
60
60
Bn :: Cbrt => 1 ,
61
61
Bn :: Cos => 1 ,
@@ -187,6 +187,20 @@ impl MaybeOverride<(f32,)> for SpecialCase {
187
187
return XFAIL ;
188
188
}
189
189
190
+ if ( ctx. base_name == BaseName :: Lgamma || ctx. base_name == BaseName :: LgammaR )
191
+ && input. 0 > 4e36
192
+ && expected. is_infinite ( )
193
+ && !actual. is_infinite ( )
194
+ {
195
+ // This result should saturate but we return a finite value.
196
+ return XFAIL ;
197
+ }
198
+
199
+ if ctx. base_name == BaseName :: J0 && input. 0 < -1e34 {
200
+ // Errors get huge close to -inf
201
+ return XFAIL ;
202
+ }
203
+
190
204
maybe_check_nan_bits ( actual, expected, ctx)
191
205
}
192
206
@@ -248,6 +262,11 @@ impl MaybeOverride<(f64,)> for SpecialCase {
248
262
return XFAIL ;
249
263
}
250
264
265
+ if ctx. base_name == BaseName :: J0 && input. 0 < -1e300 {
266
+ // Errors get huge close to -inf
267
+ return XFAIL ;
268
+ }
269
+
251
270
maybe_check_nan_bits ( actual, expected, ctx)
252
271
}
253
272
@@ -364,6 +383,7 @@ impl MaybeOverride<(i32, f32)> for SpecialCase {
364
383
}
365
384
}
366
385
}
386
+
367
387
impl MaybeOverride < ( i32 , f64 ) > for SpecialCase {
368
388
fn check_float < F : Float > (
369
389
input : ( i32 , f64 ) ,
You can’t perform that action at this time.
0 commit comments