[vlc-commits] [Git][videolan/vlc][master] cpu: properly indent x86 defines

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Feb 26 20:29:12 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
e09bec51 by Johannes Kauffmann at 2023-02-26T20:15:02+00:00
cpu: properly indent x86 defines

To match the other architecture subsections.

- - - - -


1 changed file:

- include/vlc_cpu.h


Changes:

=====================================
include/vlc_cpu.h
=====================================
@@ -48,49 +48,49 @@ unsigned vlc_CPU_raw(void);
 #  define VLC_CPU_AVX    0x00002000
 #  define VLC_CPU_AVX2   0x00004000
 
-# if defined (__SSE__)
-#  define VLC_SSE
-# else
-#  define VLC_SSE __attribute__ ((__target__ ("sse")))
-# endif
+#  if defined (__SSE__)
+#   define VLC_SSE
+#  else
+#   define VLC_SSE __attribute__ ((__target__ ("sse")))
+#  endif
 
-# ifdef __SSE2__
-#  define vlc_CPU_SSE2() (1)
-# else
-#  define vlc_CPU_SSE2() ((vlc_CPU() & VLC_CPU_SSE2) != 0)
-# endif
+#  ifdef __SSE2__
+#   define vlc_CPU_SSE2() (1)
+#  else
+#   define vlc_CPU_SSE2() ((vlc_CPU() & VLC_CPU_SSE2) != 0)
+#  endif
 
-# ifdef __SSE3__
-#  define vlc_CPU_SSE3() (1)
-# else
-#  define vlc_CPU_SSE3() ((vlc_CPU() & VLC_CPU_SSE3) != 0)
-# endif
+#  ifdef __SSE3__
+#   define vlc_CPU_SSE3() (1)
+#  else
+#   define vlc_CPU_SSE3() ((vlc_CPU() & VLC_CPU_SSE3) != 0)
+#  endif
 
-# ifdef __SSSE3__
-#  define vlc_CPU_SSSE3() (1)
-# else
-#  define vlc_CPU_SSSE3() ((vlc_CPU() & VLC_CPU_SSSE3) != 0)
-# endif
+#  ifdef __SSSE3__
+#   define vlc_CPU_SSSE3() (1)
+#  else
+#   define vlc_CPU_SSSE3() ((vlc_CPU() & VLC_CPU_SSSE3) != 0)
+#  endif
 
-# ifdef __SSE4_1__
-#  define vlc_CPU_SSE4_1() (1)
-# else
-#  define vlc_CPU_SSE4_1() ((vlc_CPU() & VLC_CPU_SSE4_1) != 0)
-# endif
+#  ifdef __SSE4_1__
+#   define vlc_CPU_SSE4_1() (1)
+#  else
+#   define vlc_CPU_SSE4_1() ((vlc_CPU() & VLC_CPU_SSE4_1) != 0)
+#  endif
 
-# 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 __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__
-#  define vlc_CPU_AVX2() (1)
-# else
-#  define vlc_CPU_AVX2() ((vlc_CPU() & VLC_CPU_AVX2) != 0)
-# endif
+#  ifdef __AVX2__
+#   define vlc_CPU_AVX2() (1)
+#  else
+#   define vlc_CPU_AVX2() ((vlc_CPU() & VLC_CPU_AVX2) != 0)
+#  endif
 
 # elif defined (__ppc__) || defined (__ppc64__) || defined (__powerpc__)
 #  define HAVE_FPU 1



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e09bec51c0fab46125a70c5dbaa17b3f47390448

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e09bec51c0fab46125a70c5dbaa17b3f47390448
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list