Implement a micro-optimization which has been on our TODO list for ages:

remove "or ebp,-1" when not needed
This commit is contained in:
Markus F.X.J. Oberhumer
2006-12-08 09:20:14 +01:00
parent 217420cfa5
commit a77b598f82
22 changed files with 5925 additions and 5821 deletions
+2
View File
@@ -275,6 +275,7 @@ void PackVmlinuzI386::buildLoader(const Filter *ft)
// prepare loader
initLoader(stub_i386_linux_kernel_vmlinuz, sizeof(stub_i386_linux_kernel_vmlinuz));
addLoader("LINUZ000",
ph.first_offset_found == 1 ? "LINUZ001" : "",
ft->id ? "LZCALLT1" : "",
"LZIMAGE0",
getDecompressorSections(),
@@ -361,6 +362,7 @@ void PackBvmlinuzI386::buildLoader(const Filter *ft)
// prepare loader
initLoader(stub_i386_linux_kernel_vmlinuz, sizeof(stub_i386_linux_kernel_vmlinuz));
addLoader("LINUZ000",
ph.first_offset_found == 1 ? "LINUZ001" : "",
(0x40==(0xf0 & ft->id)) ? "LZCKLLT1" : (ft->id ? "LZCALLT1" : ""),
"LBZIMAGE,IDENTSTR",
"+40", // align the stuff to 4 byte boundary