Skip to content

Commit 40a52cf

Browse files
committed
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.
1 parent 31395ec commit 40a52cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ impl f32 {
800800
/// let angle = std::f32::consts::PI;
801801
///
802802
/// let abs_difference = (angle.to_degrees() - 180.0).abs();
803-
///
803+
/// # #[cfg(any(not(target_arch = "x86"), target_feature = "sse2"))]
804804
/// assert!(abs_difference <= f32::EPSILON);
805805
/// ```
806806
#[must_use = "this returns the result of the operation, \

0 commit comments

Comments
 (0)