[vlc-devel] [PATCH 1/4] cpu: revector (nonfunctional change)
Steve Lhomme
robux4 at ycbcr.xyz
Mon Mar 30 08:21:05 CEST 2020
On 2020-03-29 22:43, RĂ©mi Denis-Courmont wrote:
> ---
> src/misc/cpu.c | 15 +++++++++------
> 1 file changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/src/misc/cpu.c b/src/misc/cpu.c
> index d42d7ed066..8a8835b79b 100644
> --- a/src/misc/cpu.c
> +++ b/src/misc/cpu.c
> @@ -55,8 +55,6 @@
> #include <machine/cpu.h>
> #endif
>
> -static uint32_t cpu_flags;
> -
> #if defined (__i386__) || defined (__x86_64__) || defined (__powerpc__) \
> || defined (__ppc__) || defined (__ppc64__) || defined (__powerpc64__)
> # if defined (HAVE_FORK)
> @@ -113,10 +111,9 @@ static void Altivec_test (void)
> #endif
>
> /**
> - * Determines the CPU capabilities and stores them in cpu_flags.
> - * The result can be retrieved with vlc_CPU().
> + * Determines the CPU capabilities.
> */
> -static void vlc_CPU_init(void)
> +static unsigned vlc_CPU_raw(void)
Should be uint32_t.
> {
> uint32_t i_capabilities = 0;
>
> @@ -247,8 +244,14 @@ out:
> # endif
>
> #endif
> + return i_capabilities;
> +}
>
> - cpu_flags = i_capabilities;
> +static uint32_t cpu_flags;
> +
> +static void vlc_CPU_init(void)
> +{
> + cpu_flags = vlc_CPU_raw();
> }
>
> VLC_WEAK unsigned vlc_CPU(void)
> --
> 2.26.0
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
More information about the vlc-devel
mailing list