summaryrefslogtreecommitdiffstats
path: root/libass/ass_bitmap.c
diff options
context:
space:
mode:
authorOleg Oshmyan <chortos@inbox.lv>2022-02-12 19:44:43 +0200
committerOleg Oshmyan <chortos@inbox.lv>2022-02-12 19:44:43 +0200
commitc4e2aadc88db638eed6090fa81a690235a11d3bd (patch)
treefbee5b3b45e9daef6c72b203c5f3b7bd69cd2c3f /libass/ass_bitmap.c
parentfe296cb5930d12b323237089bd2da42de1790ae0 (diff)
downloadlibass-c4e2aadc88db638eed6090fa81a690235a11d3bd.tar.bz2
libass-c4e2aadc88db638eed6090fa81a690235a11d3bd.tar.xz
Consistently use x86 asm code if we've built it
We detect x86 and enable building asm code in `configure`. However, before this commit, we don't actually use that code unless we detect x86 via the C compiler's predefined macros. We could check more macros to support more C compilers, but what we really want is to use the same trigger for both building and using this code. To that end, add ARCH_X86 to config.h iff x86 asm is being built.
Diffstat (limited to 'libass/ass_bitmap.c')
-rw-r--r--libass/ass_bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_bitmap.c b/libass/ass_bitmap.c
index 5e2ca77..b11fcfa 100644
--- a/libass/ass_bitmap.c
+++ b/libass/ass_bitmap.c
@@ -42,7 +42,7 @@
#undef ALIGN
#undef DECORATE
-#if (defined(__i386__) || defined(__x86_64__)) && CONFIG_ASM
+#if CONFIG_ASM && ARCH_X86
#define ALIGN 4
#define DECORATE(func) ass_##func##_sse2