why intermediate

This commit is contained in:
Quaternions 2024-08-28 10:05:08 -07:00
parent e1368962c1
commit 002d3d9eac

View File

@ -23,12 +23,8 @@ macro_rules! impl_wide_operations {
impl<U:std::ops::Add<Output=U>,T:Copy+fixed_wide_traits::wide::WideMul<Output=U>> $struct<T> {
#[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) ) +
)
}
}