[vlc-devel] [vlc-commits] vlc_CPU_init: factorize altivec check by using asm input
    Rémi Denis-Courmont 
    remi at remlab.net
       
    Fri Aug 26 08:41:53 CEST 2011
    
    
  
On Fri, 26 Aug 2011 06:23:44 +0200 (CEST), git at videolan.org (Rafaël Carré)
wrote:
> @@ -257,10 +257,6 @@ out:
>  # if defined (__ARM_NEON__)
>      i_capabilities |= CPU_CAPABILITY_NEON;
>  # elif defined (CAN_COMPILE_NEON)
> -#  define NEED_RUNTIME_CPU_CHECK 1
> -# endif
> -
> -# ifdef NEED_RUNTIME_CPU_CHECK
WTH is this?
>  #  if defined (__linux__)
>      FILE *info = fopen ("/proc/cpuinfo", "rt");
>      if (info != NULL)
> @@ -274,11 +270,11 @@ out:
>  
>               if (strncmp (line, "Features\t:", 10))
>                   continue;
> -#   if defined (CAN_COMPILE_NEON) && !defined (__ARM_NEON__)
> +
And this too???
>               cap = strstr (line + 10, " neon");
>               if (cap != NULL && (cap[5] == '\0' || cap[5] == ' '))
>                   i_capabilities |= CPU_CAPABILITY_NEON;
> -#   endif
> +
-- 
Rémi Denis-Courmont
http://www.remlab.net/
    
    
More information about the vlc-devel
mailing list