You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
x86: cpu: Detect Conroe CPUs and their slow shuffle unit
This commit is contained in:
committed by
Diego Biurrun
parent
7d7355aa92
commit
8e9cd81d29
@@ -221,6 +221,12 @@ int ff_get_cpu_flags_x86(void)
|
|||||||
* functions on the Atom. */
|
* functions on the Atom. */
|
||||||
if (family == 6 && model == 28)
|
if (family == 6 && model == 28)
|
||||||
rval |= AV_CPU_FLAG_ATOM;
|
rval |= AV_CPU_FLAG_ATOM;
|
||||||
|
|
||||||
|
/* Conroe has a slow shuffle unit. Check the model number to ensure not
|
||||||
|
* to include crippled low-end Penryns and Nehalems that lack SSE4. */
|
||||||
|
if ((rval & AV_CPU_FLAG_SSSE3) && !(rval & AV_CPU_FLAG_SSE4) &&
|
||||||
|
family == 6 && model < 23)
|
||||||
|
rval |= AV_CPU_FLAG_SSSE3SLOW;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* cpuid */
|
#endif /* cpuid */
|
||||||
|
Reference in New Issue
Block a user