summaryrefslogtreecommitdiffstats
path: root/libass/ass_utils.h
diff options
context:
space:
mode:
authorOneric <oneric@oneric.stub>2022-03-16 19:50:43 +0100
committerOneric <oneric@oneric.stub>2022-03-17 23:58:33 +0100
commit9608c8c838e1046601c27f6473e23654fedf1716 (patch)
treeb1d4c88bc34b9db0899743af58cd3628a22b89b1 /libass/ass_utils.h
parent5f0e8450f834894b2745238e3d32ff4878710ec8 (diff)
downloadlibass-9608c8c838e1046601c27f6473e23654fedf1716.tar.bz2
libass-9608c8c838e1046601c27f6473e23654fedf1716.tar.xz
asm/x86: check highest supported leaf for cpuid
If a higher then supported leaf is requested, at least Intel processors will silently return the data of the highest supported leaf, invalidating the following feature tests. Reported in: https://github.com/libass/libass/pull/603
Diffstat (limited to 'libass/ass_utils.h')
-rw-r--r--libass/ass_utils.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/libass/ass_utils.h b/libass/ass_utils.h
index 9d6e166..7fc922e 100644
--- a/libass/ass_utils.h
+++ b/libass/ass_utils.h
@@ -51,9 +51,7 @@
#define FEATURE_MASK(feat) (((uint32_t) 1) << (feat))
#if CONFIG_ASM && ARCH_X86
-int has_sse2(void);
-int has_avx(void);
-int has_avx2(void);
+void ass_cpu_capabilities(bool *sse2, bool *avx2);
#endif
typedef struct {