We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7275359 + 7da562d commit 5532b94Copy full SHA for 5532b94
src/math.rs
@@ -118,8 +118,11 @@ no_mangle! {
118
fn truncf(x: f32) -> f32;
119
}
120
121
-// only for the thumb*-none-eabi* targets
122
-#[cfg(all(target_arch = "arm", target_os = "none"))]
+// only for the thumb*-none-eabi* targets and riscv32*-none-elf targets that lack the floating point instruction set
+#[cfg(any(
123
+ all(target_arch = "arm", target_os = "none"),
124
+ all(target_arch = "riscv32", not(target_feature = "f"), target_os = "none")
125
+))]
126
no_mangle! {
127
fn fmin(x: f64, y: f64) -> f64;
128
fn fminf(x: f32, y: f32) -> f32;
0 commit comments