[Ffmpeg-devel] [PATH] test if cpu supports CMOV

Guillaume Poirier gpoirier
Fri Oct 13 11:31:03 CEST 2006


Hi,
The attached patch (hopefully) allows to test for the presence of CMOV
instruction, introduced in _real_ i686 CPUs.
It's needed for latest and greatest CABAC code, as some cpus that
claim to be i686 do not support cmov (such as VIA C3).

This patch creates #define HAVE_CMOV 1 for config.h and
TARGET_CMOV=yes for config.mak.
I don't know if the name is too wise, maybe it would be better to have
 HAVE_X86_CMOV to specify that were are talking about x86 in
particular (other CPU support conditional move too, sadly, PPC doesn't).

Guillaume
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: test_cmov.diff
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061013/bc0dcb75/attachment.txt>



More information about the ffmpeg-devel mailing list