Skip to content

Commit

Permalink
Merge pull request #534 from kiffie/mips-core-float
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Jun 28, 2023
2 parents 1c50c7a + 2a58f6f commit 7562122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pub mod int;
all(target_arch = "x86_64", target_os = "uefi"),
all(target_arch = "arm", target_os = "none"),
all(target_arch = "xtensa", target_os = "none"),
all(target_arch = "mips", target_os = "none"),
target_os = "xous",
all(target_vendor = "fortanix", target_env = "sgx")
))]
Expand Down
5 changes: 3 additions & 2 deletions src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ no_mangle! {
fn truncf(x: f32) -> f32;
}

// only for the thumb*-none-eabi*, riscv32*-none-elf and x86_64-unknown-none targets that lack the floating point instruction set
// only for the thumb*-none-eabi*, riscv32*-none-elf, x86_64-unknown-none and mips*-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 = "x86_64", target_os = "none")
all(target_arch = "x86_64", target_os = "none"),
all(target_arch = "mips", target_os = "none"),
))]
no_mangle! {
fn fmin(x: f64, y: f64) -> f64;
Expand Down

0 comments on commit 7562122

Please sign in to comment.