Skip to content

Commit 7562122

Browse files
authored
Merge pull request #534 from kiffie/mips-core-float
2 parents 1c50c7a + 2a58f6f commit 7562122

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ pub mod int;
4848
all(target_arch = "x86_64", target_os = "uefi"),
4949
all(target_arch = "arm", target_os = "none"),
5050
all(target_arch = "xtensa", target_os = "none"),
51+
all(target_arch = "mips", target_os = "none"),
5152
target_os = "xous",
5253
all(target_vendor = "fortanix", target_env = "sgx")
5354
))]

src/math.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,12 @@ no_mangle! {
136136
fn truncf(x: f32) -> f32;
137137
}
138138

139-
// only for the thumb*-none-eabi*, riscv32*-none-elf and x86_64-unknown-none targets that lack the floating point instruction set
139+
// 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
140140
#[cfg(any(
141141
all(target_arch = "arm", target_os = "none"),
142142
all(target_arch = "riscv32", not(target_feature = "f"), target_os = "none"),
143-
all(target_arch = "x86_64", target_os = "none")
143+
all(target_arch = "x86_64", target_os = "none"),
144+
all(target_arch = "mips", target_os = "none"),
144145
))]
145146
no_mangle! {
146147
fn fmin(x: f64, y: f64) -> f64;

0 commit comments

Comments
 (0)