Skip to content

Commit c279f34

Browse files
authored
math: add {fmin,fmax}{f,} for thumb*-none-eabi*
These are exposed in core::f32 close rust-lang#354 c.f. rust-lang/rust#62729 Patch from @whitequark (https://paste.debian.net/1168430/)
1 parent 33ad366 commit c279f34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/math.rs

+4
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ no_mangle! {
9292
// only for the thumb*-none-eabi* targets
9393
#[cfg(all(target_arch = "arm", target_os = "none"))]
9494
no_mangle! {
95+
fn fmin(x: f64, y: f64) -> f64;
96+
fn fminf(x: f32, y: f32) -> f32;
97+
fn fmax(x: f64, y: f64) -> f64;
98+
fn fmaxf(x: f32, y: f32) -> f32;
9599
// `f64 % f64`
96100
fn fmod(x: f64, y: f64) -> f64;
97101
// `f32 % f32`

0 commit comments

Comments
 (0)