From: KO Myung-Hun Date: Sun, 3 Feb 2013 12:44:56 +0000 (+0900) Subject: Use smartalign for long nops with NASM X-Git-Tag: v1.3.0~1193 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7f5e4fd7bd9a351538efdb745c53429e890017bb;p=libvpx Use smartalign for long nops with NASM 'CPU amdnop' is supported by YASM only. Change-Id: Ia3f7c2ba6d3bdf2889b62f5c6127fd515d7c7394 --- diff --git a/third_party/x86inc/x86inc.asm b/third_party/x86inc/x86inc.asm index 81f231187..a66a96bba 100644 --- a/third_party/x86inc/x86inc.asm +++ b/third_party/x86inc/x86inc.asm @@ -114,7 +114,12 @@ %endif ; Always use long nops (reduces 0x90 spam in disassembly on x86_32) +%ifndef __NASM_VER__ CPU amdnop +%else +%use smartalign +ALIGNMODE k7 +%endif ; Macros to eliminate most code duplication between x86_32 and x86_64: ; Currently this works only for leaf functions which load all their arguments