aboutsummaryrefslogtreecommitdiff
path: root/dexopt
diff options
context:
space:
mode:
authorAndy McFadden <fadden@android.com>2009-06-29 17:04:04 -0700
committerAndy McFadden <fadden@android.com>2009-06-30 11:22:29 -0700
commit87cf7312247b341b54be26904e3600e98967d695 (patch)
tree6efc33ac43398472e7e7ed0c4b36f06b8deab1e7 /dexopt
parent44d7864f79a22fe110b8e6187ac21e908f41fb1d (diff)
Inline some java.lang.Math functions.
For a first pass, I inlined the various flavors of abs(), min()/max() on integers, sqrt(), cos(), and sin(). These were selected based on a static analysis of a few of our jar files. A test of repeated sin/cos/sqrt calls on a G1-class device showed an improvement of 28%. This would improve more on devices with VFP support if the VM is compiled with -mfpu=vfp. Also: clarified a warning and removed some "#if 0" stuff.
Diffstat (limited to 'dexopt')
-rw-r--r--dexopt/OptMain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dexopt/OptMain.c b/dexopt/OptMain.c
index ef339cdd1..953db0b00 100644
--- a/dexopt/OptMain.c
+++ b/dexopt/OptMain.c
@@ -337,7 +337,7 @@ static int fromDex(int argc, char* const argv[])
*/
GET_ARG(vmBuildVersion, strtol, "bad vm build");
if (vmBuildVersion != DALVIK_VM_BUILD) {
- LOGE("Inconsistent build rev: %d vs %d\n",
+ LOGE("DexOpt: build rev does not match VM: %d vs %d\n",
vmBuildVersion, DALVIK_VM_BUILD);
goto bail;
}