diff options
author | Andy McFadden <fadden@android.com> | 2009-06-29 17:04:04 -0700 |
---|---|---|
committer | Andy McFadden <fadden@android.com> | 2009-06-30 11:22:29 -0700 |
commit | 87cf7312247b341b54be26904e3600e98967d695 (patch) | |
tree | 6efc33ac43398472e7e7ed0c4b36f06b8deab1e7 /docs/hello-world.html | |
parent | 44d7864f79a22fe110b8e6187ac21e908f41fb1d (diff) | |
download | android_dalvik-87cf7312247b341b54be26904e3600e98967d695.tar.gz android_dalvik-87cf7312247b341b54be26904e3600e98967d695.tar.bz2 android_dalvik-87cf7312247b341b54be26904e3600e98967d695.zip |
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 'docs/hello-world.html')
0 files changed, 0 insertions, 0 deletions