impl 128-bit MulAdd and MulAddAssign

This commit is contained in:
Josh Stone 2018-05-07 12:28:35 -07:00
parent fe53805550
commit 6161f1ade1
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,8 @@ macro_rules! mul_add_impl {
}
mul_add_impl!(MulAdd for isize usize i8 u8 i16 u16 i32 u32 i64 u64);
#[cfg(feature = "i128")]
mul_add_impl!(MulAdd for i128 u128);
#[cfg(feature = "std")]
impl MulAddAssign<f32, f32> for f32 {
@ -96,6 +98,8 @@ macro_rules! mul_add_assign_impl {
}
mul_add_assign_impl!(MulAddAssign for isize usize i8 u8 i16 u16 i32 u32 i64 u64);
#[cfg(feature = "i128")]
mul_add_assign_impl!(MulAddAssign for i128 u128);
#[cfg(test)]
mod tests {