commit | 87cf7312247b341b54be26904e3600e98967d695 | [log] [tgz] |
---|---|---|
author | Andy McFadden <fadden@android.com> | Mon Jun 29 17:04:04 2009 -0700 |
committer | Andy McFadden <fadden@android.com> | Tue Jun 30 11:22:29 2009 -0700 |
tree | 6efc33ac43398472e7e7ed0c4b36f06b8deab1e7 | |
parent | 44d7864f79a22fe110b8e6187ac21e908f41fb1d [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.