[vlc-devel] [PATCH 03/25] cpu: add missing VLC_AVX target attribute

Victorien Le Couviour--Tuffet victorien.lecouviour.tuffet at gmail.com
Tue Apr 14 12:40:14 CEST 2020


From: Lyndon Brown <jnqnfe at gmail.com>

---
 include/vlc_cpu.h | 2 ++
 1 file changed, 2 insertions(+)

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__
-- 
2.24.1



More information about the vlc-devel mailing list