add sqrt_fast_f16/f32/f64
[vector-math.git] / src / prim.rs
index 7ba23e5b394ba9fe9c9ea1f18a43ee9fbacd9a3b..39bfa87fca4000a08d2d6f4ec5e4176a481f0b7a 100644 (file)
@@ -135,7 +135,12 @@ impl_int!(u32, i32);
 impl_int!(u64, i64);
 
 pub trait PrimFloat:
-    PrimBase + ops::Neg<Output = Self> + ConvertFrom<Self::BitsType> + ConvertFrom<Self::SignedBitsType>
+    PrimBase
+    + ops::Neg<Output = Self>
+    + ConvertFrom<Self::BitsType>
+    + ConvertFrom<Self::SignedBitsType>
+    + fmt::LowerExp
+    + fmt::UpperExp
 {
     type BitsType: PrimUInt<SignedType = Self::SignedBitsType> + ConvertFrom<Self>;
     type SignedBitsType: PrimSInt<UnsignedType = Self::BitsType> + ConvertFrom<Self>;