Auto merge of #114042 - liushuyu:ubuntu/i586-fpmath, r=workingjubilee · rust-lang/rust@cf9fd95 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit cf9fd95
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.
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -858,7 +858,7 @@ impl f32 { | ||
858 | 858 | /// let angle = std::f32::consts::PI; |
859 | 859 | /// |
860 | 860 | /// let abs_difference = (angle.to_degrees() - 180.0).abs(); |
861 | - /// | |
861 | + /// # #[cfg(any(not(target_arch = "x86"), target_feature = "sse2"))] | |
862 | 862 | /// assert!(abs_difference <= f32::EPSILON); |
863 | 863 | /// ``` |
864 | 864 | #[must_use = "this returns the result of the operation, \ |