Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 5aeb0be

Browse files
Rename only-soft-floats feature into force-soft-floats
1 parent ac39e6a commit 5aeb0be

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ unstable = []
2424
musl-reference-tests = ['rand']
2525

2626
# Used to prevent using any intrinsics or arch-specific code.
27-
only-soft-floats = []
27+
force-soft-floats = []
2828

2929
[workspace]
3030
members = [

crates/compiler-builtins-smoke-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ bench = false
1010
[features]
1111
unstable = []
1212
checked = []
13-
only-soft-floats = []
13+
force-soft-floats = []

src/math/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ macro_rules! div {
7676

7777
macro_rules! llvm_intrinsically_optimized {
7878
(#[cfg($($clause:tt)*)] $e:expr) => {
79-
#[cfg(all(feature = "unstable", not(feature = "only-soft-floats"), $($clause)*))]
79+
#[cfg(all(feature = "unstable", not(feature = "force-soft-floats"), $($clause)*))]
8080
{
8181
if true { // thwart the dead code lint
8282
$e

src/math/sqrt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ pub fn sqrt(x: f64) -> f64 {
9292
}
9393
}
9494
}
95-
#[cfg(all(target_feature = "sse2", not(feature = "only-soft-floats")))]
95+
#[cfg(all(target_feature = "sse2", not(feature = "force-soft-floats")))]
9696
{
9797
// Note: This path is unlikely since LLVM will usually have already
9898
// optimized sqrt calls into hardware instructions if sse2 is available,
@@ -107,7 +107,7 @@ pub fn sqrt(x: f64) -> f64 {
107107
_mm_cvtsd_f64(m_sqrt)
108108
}
109109
}
110-
#[cfg(any(not(target_feature = "sse2"), feature = "only-soft-floats"))]
110+
#[cfg(any(not(target_feature = "sse2"), feature = "force-soft-floats"))]
111111
{
112112
use core::num::Wrapping;
113113

src/math/sqrtf.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub fn sqrtf(x: f32) -> f32 {
2727
}
2828
}
2929
}
30-
#[cfg(all(target_feature = "sse", not(feature = "only-soft-floats")))]
30+
#[cfg(all(target_feature = "sse", not(feature = "force-soft-floats")))]
3131
{
3232
// Note: This path is unlikely since LLVM will usually have already
3333
// optimized sqrt calls into hardware instructions if sse is available,
@@ -42,7 +42,7 @@ pub fn sqrtf(x: f32) -> f32 {
4242
_mm_cvtss_f32(m_sqrt)
4343
}
4444
}
45-
#[cfg(any(not(target_feature = "sse"), feature = "only-soft-floats"))]
45+
#[cfg(any(not(target_feature = "sse"), feature = "force-soft-floats"))]
4646
{
4747
const TINY: f32 = 1.0e-30;
4848

0 commit comments

Comments
 (0)