OSDN Git Service

ART: X86: Improve multiply in div/rem by literal
authorMark Mendell <mark.p.mendell@intel.com>
Tue, 2 Sep 2014 16:44:24 +0000 (12:44 -0400)
committerMark Mendell <mark.p.mendell@intel.com>
Fri, 5 Sep 2014 13:31:51 +0000 (09:31 -0400)
commit3a91f442218339709bab1b5ae189de40fb546c93
tree6d722987d4c0a66b1b84e593de44e59699c0536c
parent91bb35cb7d5bb5dd28201d4334dace3546c376e6
ART: X86: Improve multiply in div/rem by literal

Rewrite the multiplication of the magic number by the dividend to save
one instruction by multiplying directly from the dividend, rather than
loading the dividend into EAX/RAX first.

Change-Id: I7934243d90c0739a7f11a8d70f6fb2c000144587
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
compiler/dex/quick/x86/int_x86.cc