]> git.proxmox.com Git - mirror_zfs.git/commit
Vectorized fletcher_4 must be 128-bit aligned
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 28 Jun 2016 20:31:21 +0000 (13:31 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 29 Jun 2016 18:22:22 +0000 (11:22 -0700)
commit0dab2e84fcecff2806287efacb7c6205f346f69d
tree4813f9cb944c53140de7a12710f0ca7b12e3ec27
parentd1d19c785497fafb5e239f67006f534651ed2f27
Vectorized fletcher_4 must be 128-bit aligned

The fletcher_4_native() and fletcher_4_byteswap() functions may only
safely use the vectorized implementations when the buffer is 128-bit
aligned.  This is because both the AVX2 and SSE implementations process
four 32-bit words per iterations.  Fallback to the scalar implementation
which only processes a single 32-bit word for unaligned buffers.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gvozden Neskovic <neskovic@gmail.com>
Issue #4330
module/zcommon/zfs_fletcher.c