summaryrefslogtreecommitdiffstats
path: root/compiler/dex
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-04-28 10:29:17 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-04-28 10:29:19 +0000
commita94fb1f99ee3390bca9531b2512f8fc65f13ceee (patch)
treef1234e6d003873e4720d591a84cdedde6e7b399f /compiler/dex
parent64db01714f91bf255a79c0a88813641c240c9857 (diff)
parent0d22184ec9e5b1e958c031ac92c7f053de3a13a2 (diff)
downloadart-a94fb1f99ee3390bca9531b2512f8fc65f13ceee.zip
art-a94fb1f99ee3390bca9531b2512f8fc65f13ceee.tar.gz
art-a94fb1f99ee3390bca9531b2512f8fc65f13ceee.tar.bz2
Merge "Revert "Revert "[optimizing] Replace FP divide by power of 2"""
Diffstat (limited to 'compiler/dex')
-rw-r--r--compiler/dex/quick/mir_to_lir.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/compiler/dex/quick/mir_to_lir.h b/compiler/dex/quick/mir_to_lir.h
index a07274f..4fdc728 100644
--- a/compiler/dex/quick/mir_to_lir.h
+++ b/compiler/dex/quick/mir_to_lir.h
@@ -1467,26 +1467,6 @@ class Mir2Lir {
return InexpensiveConstantInt(value);
}
- /**
- * @brief Whether division by the given divisor can be converted to multiply by its reciprocal.
- * @param divisor A constant divisor bits of float type.
- * @return Returns true iff, x/divisor == x*(1.0f/divisor), for every float x.
- */
- bool CanDivideByReciprocalMultiplyFloat(int32_t divisor) {
- // True, if float value significand bits are 0.
- return ((divisor & 0x7fffff) == 0);
- }
-
- /**
- * @brief Whether division by the given divisor can be converted to multiply by its reciprocal.
- * @param divisor A constant divisor bits of double type.
- * @return Returns true iff, x/divisor == x*(1.0/divisor), for every double x.
- */
- bool CanDivideByReciprocalMultiplyDouble(int64_t divisor) {
- // True, if double value significand bits are 0.
- return ((divisor & ((UINT64_C(1) << 52) - 1)) == 0);
- }
-
// May be optimized by targets.
virtual void GenMonitorEnter(int opt_flags, RegLocation rl_src);
virtual void GenMonitorExit(int opt_flags, RegLocation rl_src);