OSDN Git Service

Speedup div/rem by constants on x86 and x86_64
authorGuillaume Sanchez <guillaumesa@google.com>
Mon, 30 Mar 2015 16:55:45 +0000 (17:55 +0100)
committerGuillaume Sanchez <guillaumesa@google.com>
Thu, 9 Apr 2015 11:24:10 +0000 (12:24 +0100)
commit0f88e87085b7cf6544dadff3f555773966a6853e
treeea0ae17c712b995e258f1f749a1b8cd98b1fa34b
parentc4bd0e6a7f4839ea99222f06979cc2369cb9bf10
Speedup div/rem by constants on x86 and x86_64

This is done using the algorithms in Hacker's Delight chapter 10.

Change-Id: I7bacefe10067569769ed31a1f7834f796fb41119
compiler/Android.mk
compiler/optimizing/code_generator_utils.cc [new file with mode: 0644]
compiler/optimizing/code_generator_utils.h [new file with mode: 0644]
compiler/optimizing/code_generator_x86.cc
compiler/optimizing/code_generator_x86.h
compiler/optimizing/code_generator_x86_64.cc
compiler/optimizing/code_generator_x86_64.h
compiler/utils/x86_64/assembler_x86_64.cc
compiler/utils/x86_64/assembler_x86_64.h
compiler/utils/x86_64/assembler_x86_64_test.cc