diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-02-25 16:59:54 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-02-25 16:59:54 -0800 |
commit | ee14b6efe1ab8674edea83fba7596857f0fcad21 (patch) | |
tree | b58d3c937fb3aac4f634f8e15120ff7d2362bc12 /mbr | |
parent | cdf1db11733ccf85fdc1378fa5548024c73513f5 (diff) | |
download | syslinux-ee14b6efe1ab8674edea83fba7596857f0fcad21.tar.gz syslinux-ee14b6efe1ab8674edea83fba7596857f0fcad21.tar.xz syslinux-ee14b6efe1ab8674edea83fba7596857f0fcad21.zip |
gptmbr: use cltq to extend a zero %eax into %edx
Using cltq (cdq) to clear %edx when %eax is zero is cheaper by one
byte.
Diffstat (limited to 'mbr')
-rw-r--r-- | mbr/gptmbr.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S index 9005183a..85b9fcdf 100644 --- a/mbr/gptmbr.S +++ b/mbr/gptmbr.S @@ -112,7 +112,7 @@ next: /* Load partition table header */ xorl %eax,%eax - xorl %edx,%edx + cltd incw %ax /* %edx:%eax = 1 */ movw $phdr, %bx pushw %bx /* -8(%bp) phdr == bootsect */ |