ref: 28d333577ee8ecf5b77fda2794625bd6adbfd9ee
parent: 6a6c3528925e623891c8404afdf43c0d63815709
author: Henrik Gramner <gramner@twoorioles.com>
date: Sun May 10 11:48:57 EDT 2020
x86: Unconditionally compile msac_init.c Eliminates the x86-64 check from the meson configuration file to be consistent with how other x86-64-exclusive code is handled.
--- a/src/meson.build
+++ b/src/meson.build
@@ -151,13 +151,8 @@
libdav1d_sources += files(
'x86/cpu.c',
+ 'x86/msac_init.c',
)
-
- if host_machine.cpu_family() == 'x86_64'
- libdav1d_sources += files(
- 'x86/msac_init.c',
- )
- endif
libdav1d_tmpl_sources += files(
'x86/cdef_init_tmpl.c',
--- a/src/x86/msac_init.c
+++ b/src/x86/msac_init.c
@@ -28,6 +28,7 @@
#include "src/msac.h"
#include "src/x86/msac.h"
+#if ARCH_X86_64
void dav1d_msac_init_x86(MsacContext *const s) {
const unsigned flags = dav1d_get_cpu_flags();
@@ -39,4 +40,4 @@
s->symbol_adapt16 = dav1d_msac_decode_symbol_adapt16_avx2;
}
}
-
+#endif