]> git.ipfire.org Git - thirdparty/qemu.git/commit - meson.build
util/bufferiszero: Use __attribute__((target)) for avx2/avx512
authorRichard Henderson <richard.henderson@linaro.org>
Sun, 4 Dec 2022 01:31:12 +0000 (19:31 -0600)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 16 Jan 2023 20:14:12 +0000 (10:14 -1000)
commit701ea5870d3752173d0c78d79d9d1f57757a8036
treef35668299954e5fdb0a056f56cdc8dd0ff152538
parent5584e2dbe8c9c95ceb178786fb88e5edf625e1b6
util/bufferiszero: Use __attribute__((target)) for avx2/avx512

Use the attribute, which is supported by clang, instead of
the #pragma, which is not supported and, for some reason,
also not detected by the meson probe, so we fail by -Werror.

Include only <immintrin.h> as that is the outermost "official"
header for these intrinsics -- emmintrin.h and smmintrin -- are
older SSE2 and SSE4 specific headers, while the immintrin.h
includes all of the Intel intrinsics.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
meson.build
util/bufferiszero.c