math: add {fmin,fmax}{f,} for thumb*-none-eabi* (#389)

These are exposed in core::f32

close #354 
c.f. rust-lang/rust#62729
Patch from @whitequark (https://paste.debian.net/1168430/)
This commit is contained in:
Robert Jördens
2020-10-26 17:37:02 +01:00
committed by GitHub
parent 34e35d74b6
commit a97fe5f1d3

View File

@@ -92,6 +92,10 @@ no_mangle! {
// only for the thumb*-none-eabi* targets
#[cfg(all(target_arch = "arm", target_os = "none"))]
no_mangle! {
fn fmin(x: f64, y: f64) -> f64;
fn fminf(x: f32, y: f32) -> f32;
fn fmax(x: f64, y: f64) -> f64;
fn fmaxf(x: f32, y: f32) -> f32;
// `f64 % f64`
fn fmod(x: f64, y: f64) -> f64;
// `f32 % f32`