fixed: special case for convenience
This commit is contained in:
parent
260ed0fd5c
commit
0cd28e402e
@ -275,6 +275,14 @@ macro_rules! impl_multiply_operator_not_const_generic {
|
|||||||
}
|
}
|
||||||
#[cfg(not(feature="wide-mul"))]
|
#[cfg(not(feature="wide-mul"))]
|
||||||
impl_multiplicative_operator_not_const_generic!(($struct, $trait, $method, $output ), $width);
|
impl_multiplicative_operator_not_const_generic!(($struct, $trait, $method, $output ), $width);
|
||||||
|
#[cfg(feature="deferred-division")]
|
||||||
|
impl ratio_ops::ratio::Divide<i64> 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 {
|
macro_rules! impl_divide_operator_not_const_generic {
|
||||||
|
Loading…
Reference in New Issue
Block a user