vmx: adjust macros when loading vectors on ppc64le
authorFernando Seiti Furusato <ferseiti@linux.vnet.ibm.com>
Thu, 25 Jun 2015 12:59:54 +0000 (15:59 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 2 Jul 2015 07:04:15 +0000 (10:04 +0300)
commitf6a26d09257dde9cd41144120543c8b754de515f
treea7b6e1bfe4d314fddb3320d3cc4c9e4b2df2b698
parentb3a61703f41c6b34ba2ec9736030e1df04f53ab4
vmx: adjust macros when loading vectors on ppc64le

Replaced usage of vec_lvsl to direct unaligned assignment
operation (=). That is because, according to Power ABI Specification,
the usage of lvsl is deprecated on ppc64le.

Changed COMPUTE_SHIFT_{MASK,MASKS,MASKC} macro usage to no-op for powerpc
little endian since unaligned access is supported on ppc64le.

v2:

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

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