]> granicus.if.org Git - libvpx/commitdiff
Use smartalign for long nops with NASM
authorKO Myung-Hun <komh@chollian.net>
Sun, 3 Feb 2013 12:44:56 +0000 (21:44 +0900)
committerKO Myung-Hun <komh@chollian.net>
Sun, 3 Feb 2013 12:51:05 +0000 (21:51 +0900)
'CPU amdnop' is supported by YASM only.

Change-Id: Ia3f7c2ba6d3bdf2889b62f5c6127fd515d7c7394

third_party/x86inc/x86inc.asm

index 81f231187f7488d76afa590bf9b9e5e2d3d140a6..a66a96bba6273fedb4410360c3acd9abc7082a8f 100644 (file)
 %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