Expose minimal floating point symbols for x86_64-unknown-none

This commit is contained in:
Martin Kröning 2022-12-07 16:08:01 +01:00
parent e8bb3b9fd2
commit 620f50589e
2 changed files with 4 additions and 2 deletions

View file

@ -44,6 +44,7 @@ pub mod int;
#[cfg(any(
all(target_family = "wasm", target_os = "unknown"),
all(target_arch = "x86_64", target_os = "none"),
all(target_arch = "x86_64", target_os = "uefi"),
all(target_arch = "arm", target_os = "none"),
target_os = "xous",

View file

@ -106,10 +106,11 @@ no_mangle! {
fn truncf(x: f32) -> f32;
}
// only for the thumb*-none-eabi* targets and riscv32*-none-elf targets that lack the floating point instruction set
// only for the thumb*-none-eabi*, riscv32*-none-elf and x86_64-unknown-none targets that lack the floating point instruction set
#[cfg(any(
all(target_arch = "arm", target_os = "none"),
all(target_arch = "riscv32", not(target_feature = "f"), target_os = "none")
all(target_arch = "riscv32", not(target_feature = "f"), target_os = "none"),
all(target_arch = "x86_64", target_os = "none")
))]
no_mangle! {
fn fmin(x: f64, y: f64) -> f64;