[vlc-devel] [PATCH 1/19] add missing VLC_AVX define

Lyndon Brown jnqnfe at gmail.com
Thu Sep 24 21:34:26 CEST 2020


From: Lyndon Brown <jnqnfe at gmail.com>
Date: Fri, 8 Mar 2019 04:33:39 +0000
Subject: add missing VLC_AVX define


diff --git a/include/vlc_cpu.h b/include/vlc_cpu.h
index 80dfd9656d..4222eee3ac 100644
--- a/include/vlc_cpu.h
+++ b/include/vlc_cpu.h
@@ -112,8 +112,10 @@ unsigned vlc_CPU_raw(void);
 
 # ifdef __AVX__
 #  define vlc_CPU_AVX() (1)
+#  define VLC_AVX
 # else
 #  define vlc_CPU_AVX() ((vlc_CPU() & VLC_CPU_AVX) != 0)
+#  define VLC_AVX __attribute__ ((__target__ ("avx")))
 # endif
 
 # ifdef __AVX2__



More information about the vlc-devel mailing list