reduce the error tolerance to match algebraic and fast-math operations
This commit is contained in:
parent
4c5babdab5
commit
6ac0120a60
1 changed files with 3 additions and 2 deletions
|
|
@ -38,8 +38,9 @@ macro_rules! assert_approx_eq {
|
|||
}};
|
||||
|
||||
($a:expr, $b: expr) => {
|
||||
// accept up to 64ULP (16ULP for host floats and 16ULP for miri artificial error and 32 for any rounding errors)
|
||||
assert_approx_eq!($a, $b, 64);
|
||||
// accept up to 12ULP (4ULP for host floats and 4ULP for miri artificial error and 4 for any additional effects
|
||||
// due to having multiple error sources.
|
||||
assert_approx_eq!($a, $b, 12);
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue