altivec optimizations patch by (Brian Foley <bfoley at compsoc dot nuigalway dot...