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
+3 -1
View File
@@ -246,7 +246,9 @@ void PackVmlinuxI386::buildLoader(const Filter *ft)
}
addFilter32(ft->id);
}
addLoader("LINUX990,IDENTSTR,UPX1HEAD", NULL);
addLoader("LINUX990",
ph.first_offset_found == 1 ? "LINUX991" : "",
"LINUX992,IDENTSTR,UPX1HEAD", NULL);
}