diff options
author | Guillaume Sanchez <guillaumesa@google.com> | 2015-04-09 21:12:15 +0100 |
---|---|---|
committer | Guillaume Sanchez <guillaumesa@google.com> | 2015-04-10 10:28:02 +0100 |
commit | b19930c5cba3cf662dce5ee057fcc9829b4cbb9c (patch) | |
tree | c226f8fffc4522b273072c516507083e2a77c505 /compiler/optimizing/code_generator_utils.h | |
parent | 0f88e87085b7cf6544dadff3f555773966a6853e (diff) |
Follow up of "div/rem on x86 and x86_64", to tidy up the code a little.
Change-Id: Ibf39cbc8ac1d773599d70be2cb1e941674b60f1d
Diffstat (limited to 'compiler/optimizing/code_generator_utils.h')
-rw-r--r-- | compiler/optimizing/code_generator_utils.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator_utils.h b/compiler/optimizing/code_generator_utils.h index 742d67565a..59b495c2c9 100644 --- a/compiler/optimizing/code_generator_utils.h +++ b/compiler/optimizing/code_generator_utils.h @@ -19,7 +19,12 @@ #include <cstdint> -// Computes the magic number and the shift needed in the div/rem by constant algorithm +namespace art { + +// Computes the magic number and the shift needed in the div/rem by constant algorithm, as out +// arguments `magic` and `shift` void CalculateMagicAndShiftForDivRem(int64_t divisor, bool is_long, int64_t* magic, int* shift); +} // namespace art + #endif // ART_COMPILER_OPTIMIZING_CODE_GENERATOR_UTILS_H_ |