Minor tweak to horizontal add and multiply for Float4.

In theory this should make it more pipeline-able.
This commit is contained in:
Nathan Vegdahl 2016-07-31 11:49:01 -07:00
parent b4939f88c8
commit d12b76a933

View File

@ -40,11 +40,11 @@ impl Float4 {
}
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 {
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 {