This commit is contained in:
Quaternions 2024-09-09 15:07:26 -07:00
parent b98eba27e5
commit 658c73a033

View File

@ -291,6 +291,15 @@ macro_rules! impl_wide_operators{
} }
} }
} }
#[cfg(not(feature="ratio"))]
impl core::ops::Div<Fixed<$rhs,{$rhs*32}>> for Fixed<$lhs,{$lhs*32}>{
type Output=Fixed<{$lhs+$rhs},{($lhs+$rhs)*32}>;
fn div(self, other: Fixed<$rhs,{$rhs*32}>)->Self::Output{
paste::item!{
self.[<wide_div_ $lhs _ $rhs>](other)
}
}
}
} }
} }