diff --git a/fixed_wide/src/fixed.rs b/fixed_wide/src/fixed.rs index f777c11..c0751e1 100644 --- a/fixed_wide/src/fixed.rs +++ b/fixed_wide/src/fixed.rs @@ -275,6 +275,14 @@ macro_rules! impl_multiply_operator_not_const_generic { } #[cfg(not(feature="wide-mul"))] impl_multiplicative_operator_not_const_generic!(($struct, $trait, $method, $output ), $width); + #[cfg(feature="deferred-division")] + impl ratio_ops::ratio::Divide for Fixed<$width,{$width*32}>{ + type Output=Self; + #[inline] + fn divide(self, other: i64)->Self::Output{ + Self::from_bits(self.bits/BInt::from(other)) + } + } } } macro_rules! impl_divide_operator_not_const_generic {