Skip to content

Commit cf9fd95

Browse files
committed
Auto merge of #114042 - liushuyu:ubuntu/i586-fpmath, r=workingjubilee
core library: Disable fpmath tests for i586 ... This patch disables the floating-point epsilon test for i586 since x87 registers are too imprecise and can't produce the expected results.
2 parents 90f3a6f + 40a52cf commit cf9fd95

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
@@ -858,7 +858,7 @@ impl f32 {
858858
/// let angle = std::f32::consts::PI;
859859
///
860860
/// let abs_difference = (angle.to_degrees() - 180.0).abs();
861-
///
861+
/// # #[cfg(any(not(target_arch = "x86"), target_feature = "sse2"))]
862862
/// assert!(abs_difference <= f32::EPSILON);
863863
/// ```
864864
#[must_use = "this returns the result of the operation, \

0 commit comments

Comments
 (0)