Skip to content

Commit

Permalink
math: add {fmin,fmax}{f,} for thumb*-none-eabi*
Browse files Browse the repository at this point in the history
These are exposed in core::f32

close rust-lang#354 
c.f. rust-lang/rust#62729
Patch from @whitequark (https://paste.debian.net/1168430/)
  • Loading branch information
jordens authored Oct 24, 2020
1 parent 33ad366 commit c279f34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/math.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit c279f34

Please sign in to comment.