Commit f6c77658 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Detect ARMv6 on Linux

parent 1d2a483e
......@@ -54,12 +54,17 @@ static void vlc_CPU_init (void)
while (getline (&line, &linelen, info) != -1)
{
if (strncmp (line, CPU_FLAGS, strlen (CPU_FLAGS)))
continue;
char *p = line, *cap;
uint_fast32_t core_caps = 0;
#if defined (__arm__)
unsigned ver;
if (sscanf (line, "Processor\t: ARMv%u", &ver) >= 1 && ver >= 6)
core_caps |= VLC_CPU_ARMv6;
#endif
if (strncmp (line, CPU_FLAGS, strlen (CPU_FLAGS)))
continue;
while ((cap = strsep (&p, " ")) != NULL)
{
#if defined (__arm__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment