Skip to content

Commit 0408ded

Browse files
authored
Merge pull request #510 from mkroening/float-x86_64-none
Closes #509
2 parents cb3ca5e + efde713 commit 0408ded

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pub mod int;
4444

4545
#[cfg(any(
4646
all(target_family = "wasm", target_os = "unknown"),
47+
all(target_arch = "x86_64", target_os = "none"),
4748
all(target_arch = "x86_64", target_os = "uefi"),
4849
all(target_arch = "arm", target_os = "none"),
4950
target_os = "xous",

src/math.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ no_mangle! {
106106
fn truncf(x: f32) -> f32;
107107
}
108108

109-
// only for the thumb*-none-eabi* targets and riscv32*-none-elf targets that lack the floating point instruction set
109+
// only for the thumb*-none-eabi*, riscv32*-none-elf and x86_64-unknown-none targets that lack the floating point instruction set
110110
#[cfg(any(
111111
all(target_arch = "arm", target_os = "none"),
112-
all(target_arch = "riscv32", not(target_feature = "f"), target_os = "none")
112+
all(target_arch = "riscv32", not(target_feature = "f"), target_os = "none"),
113+
all(target_arch = "x86_64", target_os = "none")
113114
))]
114115
no_mangle! {
115116
fn fmin(x: f64, y: f64) -> f64;

0 commit comments

Comments
 (0)