why intermediate
This commit is contained in:
parent
e1368962c1
commit
002d3d9eac
@ -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> {
|
impl<U:std::ops::Add<Output=U>,T:Copy+fixed_wide_traits::wide::WideMul<Output=U>> $struct<T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn wide_length_squared(&self) -> U {
|
pub fn wide_length_squared(&self) -> U {
|
||||||
let squared = $struct {
|
|
||||||
$( $field: self.$field.wide_mul(self.$field) ), +
|
|
||||||
};
|
|
||||||
|
|
||||||
$crate::sum_repeating!(
|
$crate::sum_repeating!(
|
||||||
$( + squared.$field ) +
|
$( + self.$field.wide_mul(self.$field) ) +
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user