core library: Disable fpmath tests for i386 ...

This patch disables the floating-point epsilon test for i386 since
x87 registers are too imprecise and can't produce the expected
results.
This commit is contained in:
liushuyu 2023-07-25 09:48:12 +08:00
parent 31395ec382
commit 40a52cf55c
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437

View File

@ -800,7 +800,7 @@ impl f32 {
/// let angle = std::f32::consts::PI;
///
/// let abs_difference = (angle.to_degrees() - 180.0).abs();
///
/// # #[cfg(any(not(target_arch = "x86"), target_feature = "sse2"))]
/// assert!(abs_difference <= f32::EPSILON);
/// ```
#[must_use = "this returns the result of the operation, \