vmx: fix pix_multiply for ppc64le
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 25 Jun 2015 12:59:57 +0000 (15:59 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 2 Jul 2015 07:04:41 +0000 (10:04 +0300)
commit2be523b20402b7c9f548ac33b8c0f0ed00156c64
tree8c4d238cb2705266c910ba3b4d4c07bc3b3e712a
parent8d379ad88e208bed9697065f6911c9ef83d85276
vmx: fix pix_multiply for ppc64le

vec_mergeh/l operates differently for BE and LE, because of the order of
the vector elements (l->r in BE and r->l in LE).
To fix that, we simply need to swap between the input parameters, in case
we are working in LE.

v2:

- replace _LITTLE_ENDIAN with WORDS_BIGENDIAN for consistency
- fixed whitespaces and indentation issues

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
pixman/pixman-vmx.c