Skip to content

Commit 332790c

Browse files
jordensAaronKutch
authored andcommitted
math: add {fmin,fmax}{f,} for thumb*-none-eabi* (rust-lang#389)
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 e49b2d2 commit 332790c

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)