Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Gramner <gramner@twoorioles.com>2021-08-23 20:22:01 +0300
committerHenrik Gramner <gramner@twoorioles.com>2021-08-31 12:47:42 +0300
commit64c65de3faf1fa5e0272858203a9590f4ca31927 (patch)
tree9dbb39ddf653a0c04fb36540319665ed75239f76 /meson.build
parent94a0e5ec13febf376d9bf29ed8d0bb693c690c5c (diff)
x86: Automatically convert SSE asm to AVX when compiling for AVX targets
Requires meson 0.51 or newer (older versions will just keep the SSE).
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 3 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index abbb28b..96ac31e 100644
--- a/meson.build
+++ b/meson.build
@@ -375,6 +375,9 @@ if host_machine.cpu_family().startswith('x86')
cdata_asm.set10('ARCH_X86_64', host_machine.cpu_family() == 'x86_64')
cdata_asm.set10('ARCH_X86_32', host_machine.cpu_family() == 'x86')
cdata_asm.set10('PIC', true)
+
+ # Convert SSE asm into (128-bit) AVX when compiler flags are set to use AVX instructions
+ cdata_asm.set10('FORCE_VEX_ENCODING', cc.get_define('__AVX__') != '')
endif
cdata.set10('ARCH_PPC64LE', host_machine.cpu() == 'ppc64le')