From 002d3d9eac022a1e01074e79a2b1d1e65f839a83 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 28 Aug 2024 10:05:08 -0700 Subject: [PATCH] why intermediate --- fixed_wide_vectors/src/macros/wide.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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) ) + ) } }