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 a0dd0550ad
commit da9c12b2da
2 changed files with 6 additions and 4 deletions
+3 -2
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
}
+3 -2
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
}