diff options
Diffstat (limited to 'libass/ass_utils.c')
-rw-r--r-- | libass/ass_utils.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libass/ass_utils.c b/libass/ass_utils.c index 65b6f74..57f6306 100644 --- a/libass/ass_utils.c +++ b/libass/ass_utils.c @@ -52,9 +52,7 @@ int has_avx(void) ass_get_xgetbv(0, &eax, &edx); if ((eax & 0x6) != 0x6) return 0; - eax = 0; - ass_get_cpuid(&eax, &ebx, &ecx, &edx); - return (ecx & 0x6) == 0x6 ? (misc >> 28) & 0x1 : 0; // check high bits are relevant, then AVX support + return (misc >> 28) & 0x1; } int has_avx2(void) |