[x264-devel] x86: Add some additional cpuflag relations

Henrik Gramner git at videolan.org
Mon May 22 00:02:43 CEST 2017


x264 | branch: master | Henrik Gramner <henrik at gramner.com> | Sat May  6 12:26:56 2017 +0200| [8c2974255b01728d4eda2434cc1997c4a3ca5eff] | committer: Henrik Gramner

x86: Add some additional cpuflag relations

Simplifies writing assembly code that depends on available instructions.

LZCNT implies SSE2
BMI1 implies AVX+LZCNT
AVX2 implies BMI2

Skip printing LZCNT under CPU capabilities when BMI1 or BMI2 is available,
and don't print FMA4 when FMA3 is available.

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=8c2974255b01728d4eda2434cc1997c4a3ca5eff
---

 common/bitstream.c     | 28 ++++++++++----------
 common/cpu.c           | 10 +++++---
 common/quant.c         | 69 +++++++++++++++++++++++---------------------------
 common/x86/cabac-a.asm | 34 ++++++++++++-------------
 common/x86/quant-a.asm | 24 ++++++++++--------
 common/x86/quant.h     | 27 ++++++++++----------
 common/x86/x86inc.asm  | 36 +++++++++++++-------------
 encoder/encoder.c      |  6 +++++
 tools/checkasm.c       | 45 +++++++++-----------------------
 9 files changed, 129 insertions(+), 150 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/x264.git/?a=commitdiff;h=8c2974255b01728d4eda2434cc1997c4a3ca5eff


More information about the x264-devel mailing list