Only return the fp value.

Signed-off-by: Benjamin Schultzer <benjamin@schultzer.com>
This commit is contained in:
Benjamin Schultzer 2019-07-03 14:15:29 -07:00
parent 1d159b5278
commit 05762eb876
2 changed files with 6 additions and 4 deletions

View file

@ -1,5 +1,6 @@
#[inline]
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn remainder(x: f64, y: f64) -> (f64, i32) {
super::remquo(x, y)
pub fn remainder(x: f64, y: f64) -> f64 {
let (result, _) = super::remquo(x, y);
result
}

View file

@ -1,5 +1,6 @@
#[inline]
#[cfg_attr(all(test, assert_no_panic), no_panic::no_panic)]
pub fn remainderf(x: f32, y: f32) -> (f32, i32) {
super::remquof(x, y)
pub fn remainderf(x: f32, y: f32) -> f32 {
let (result, _) = super::remquof(x, y);
result
}