mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-17 04:17:05 +00:00
ppc/cpu: make linux 32bit specific altivec detection depend on __linux__
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c75b611a38
commit
874b9dcc4b
@ -61,7 +61,7 @@ int ff_get_cpu_flags_ppc(void)
|
|||||||
if (err == 0)
|
if (err == 0)
|
||||||
return has_vu ? AV_CPU_FLAG_ALTIVEC : 0;
|
return has_vu ? AV_CPU_FLAG_ALTIVEC : 0;
|
||||||
return 0;
|
return 0;
|
||||||
#elif CONFIG_RUNTIME_CPUDETECT
|
#elif CONFIG_RUNTIME_CPUDETECT && defined(__linux__) && !ARCH_PPC64
|
||||||
int proc_ver;
|
int proc_ver;
|
||||||
// Support of mfspr PVR emulation added in Linux 2.6.17.
|
// Support of mfspr PVR emulation added in Linux 2.6.17.
|
||||||
__asm__ volatile("mfspr %0, 287" : "=r" (proc_ver));
|
__asm__ volatile("mfspr %0, 287" : "=r" (proc_ver));
|
||||||
|
Loading…
Reference in New Issue
Block a user