From c279f34f1935b18ae0c4b4e668cde648aba3bac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20J=C3=B6rdens?= Date: Sat, 24 Oct 2020 18:15:04 +0200 Subject: [PATCH] math: add {fmin,fmax}{f,} for thumb*-none-eabi* These are exposed in core::f32 close #354 c.f. rust-lang/rust#62729 Patch from @whitequark (https://paste.debian.net/1168430/) --- src/math.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/math.rs b/src/math.rs index 4b27cb80f..94f91124b 100644 --- a/src/math.rs +++ b/src/math.rs @@ -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`