Minor tweak to horizontal add and multiply for Float4.
In theory this should make it more pipeline-able.
This commit is contained in:
parent
b4939f88c8
commit
d12b76a933
|
@ -40,11 +40,11 @@ impl Float4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn h_sum(&self) -> f32 {
|
pub fn h_sum(&self) -> f32 {
|
||||||
self.get_0() + self.get_1() + self.get_2() + self.get_3()
|
(self.get_0() + self.get_1()) + (self.get_2() + self.get_3())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn h_product(&self) -> f32 {
|
pub fn h_product(&self) -> f32 {
|
||||||
self.get_0() * self.get_1() * self.get_2() * self.get_3()
|
(self.get_0() * self.get_1()) * (self.get_2() * self.get_3())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn h_min(&self) -> f32 {
|
pub fn h_min(&self) -> f32 {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user