diff --git a/fixed_wide_vectors/src/macros/wide.rs b/fixed_wide_vectors/src/macros/wide.rs index ea5f6c3..01da30b 100644 --- a/fixed_wide_vectors/src/macros/wide.rs +++ b/fixed_wide_vectors/src/macros/wide.rs @@ -23,12 +23,8 @@ macro_rules! impl_wide_operations { impl,T:Copy+fixed_wide_traits::wide::WideMul> $struct { #[inline] pub fn wide_length_squared(&self) -> U { - let squared = $struct { - $( $field: self.$field.wide_mul(self.$field) ), + - }; - $crate::sum_repeating!( - $( + squared.$field ) + + $( + self.$field.wide_mul(self.$field) ) + ) } }