add sqrt_fast_f16/f32/f64
[vector-math.git] / src / scalar.rs
index c1a1ec94c2b59608d8bd40476670185aa5734434..b15388b24ef6473abab300da2fcfea8e5a3a83f1 100644 (file)
@@ -368,19 +368,19 @@ macro_rules! impl_float {
                 #[cfg(feature = "std")]
                 return Value(self.0.ceil());
                 #[cfg(not(feature = "std"))]
-                todo!();
+                return crate::algorithms::base::ceil(Scalar, self);
             }
             fn floor(self) -> Self {
                 #[cfg(feature = "std")]
                 return Value(self.0.floor());
                 #[cfg(not(feature = "std"))]
-                todo!();
+                return crate::algorithms::base::floor(Scalar, self);
             }
             fn round(self) -> Self {
                 #[cfg(feature = "std")]
                 return Value(self.0.round());
                 #[cfg(not(feature = "std"))]
-                todo!();
+                return crate::algorithms::base::round_to_nearest_ties_to_even(Scalar, self);
             }
             #[cfg(feature = "fma")]
             fn fma(self, a: Self, b: Self) -> Self {