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 {
56
56
Bn :: Asin => 1 ,
57
57
Bn :: Asinh => 2 ,
58
58
Bn :: Atan => 1 ,
59
- Bn :: Atan2 => 1 ,
59
+ Bn :: Atan2 => 2 ,
60
60
Bn :: Atanh => 2 ,
61
61
Bn :: Cbrt => 1 ,
62
62
Bn :: Cos => 1 ,
@@ -180,6 +180,20 @@ impl MaybeOverride<(f32,)> for SpecialCase {
180
180
return XFAIL ;
181
181
}
182
182
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
+
183
197
maybe_check_nan_bits ( actual, expected, ctx)
184
198
}
185
199
@@ -241,6 +255,11 @@ impl MaybeOverride<(f64,)> for SpecialCase {
241
255
return XFAIL ;
242
256
}
243
257
258
+ if ctx. base_name == BaseName :: J0 && input. 0 < -1e300 {
259
+ // Errors get huge close to -inf
260
+ return XFAIL ;
261
+ }
262
+
244
263
maybe_check_nan_bits ( actual, expected, ctx)
245
264
}
246
265
@@ -357,6 +376,7 @@ impl MaybeOverride<(i32, f32)> for SpecialCase {
357
376
}
358
377
}
359
378
}
379
+
360
380
impl MaybeOverride < ( i32 , f64 ) > for SpecialCase {
361
381
fn check_float < F : Float > (
362
382
input : ( i32 , f64 ) ,
You can’t perform that action at this time.
0 commit comments