summaryrefslogtreecommitdiff
path: root/core/java/android/util/FloatMath.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove FloatMath methods from the APINeil Fuller2015-05-071-0/+10
| | | | | | | | Also removing FloatMathTest. The tests are being moved into a legacy CTS suite. Bug: https://code.google.com/p/android/issues/detail?id=36199 Change-Id: I397fd6bcc4d988db6301245f9d47460bd6c28821
* resolved conflicts for merge of 12260ad7 to lmp-mr1-dev-plus-aospNeil Fuller2014-10-241-0/+3
|\ | | | | | | Change-Id: Ie2222794208475216941289cf062e05ca9c75e0f
| * Deprecating FloatMath and TimeNeil Fuller2014-10-231-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Bug: https://code.google.com/p/android/issues/detail?id=36199 Bug: https://code.google.com/p/android/issues/detail?id=37653 Bug: https://code.google.com/p/android/issues/detail?id=42750 Bug: https://code.google.com/p/android/issues/detail?id=61137 Bug: https://code.google.com/p/android/issues/detail?id=74754 Bug: https://code.google.com/p/android/issues/detail?id=76386 Bug: https://code.google.com/p/android/issues/detail?id=76439 Bug: https://code.google.com/p/android/issues/detail?id=77836 Change-Id: Ic9b57d8a575f93b2258a5481df0ed6b3a952f636
* | Replacing FloatMath native implementation with calls to MathNick Kralevich2014-10-201-12/+31
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On modern versions of Android running in AOT mode FloatMath is slower than Math. Calls to Math.sqrt(), etc. are replaced by intrinsics which can be as small as a single CPU opcode. When running in interpreted mode the new implementation is unfortunately slower, but I'm judging this acceptable and likely to be improved over time. This change saves a small amount of native code. Example timings: Mako AOSP AOT: Method: Original / New / Direct call to Math ceil: 596ns / 146.ns / 111ns sqrt: 694ns / 56ns / 25ns Mako AOSP interpreted: Method: Original / New / Direct call to Math ceil: 1900ns / 2307ns / 1485ns sqrt: 1998ns / 2603ns / 1788ns Other calls Mako AOT: Method: Original / New cos: 635ns / 270ns exp: 566ns / 324ns floor: 604ns / 150ns hypot: 631ns / 232ns pow: 936ns / 643ns sin: 641ns / 299ns The advice to use Math directly, in preference to FloatMath, is still good. FloatMath will be deprecated separately. Bug: https://code.google.com/p/android/issues/detail?id=36199 Change-Id: If07fcbd78543d13bc6d75f9743f999860e8d58d7
* Fix incorrect FloatMath documentation.Elliott Hughes2013-02-261-6/+4
| | | | Change-Id: I30bbe500e634b73f3456ccc797106ad261fd0ce7
* Add FloatMath.pow.Jeff Brown2012-08-211-0/+10
| | | | Change-Id: I5c584f4894caba47fccfa22ba95f8665990d516c
* Add FloatMath.hypot.Jeff Brown2012-08-161-0/+10
| | | | Change-Id: I6a5a7ea2254300614dbbf540f40e39dbec2d2900
* Add FloatMath.exp.Jeff Brown2012-08-081-0/+9
| | | | Change-Id: I7f215e5fd4cb942ddee56eebaef04be565ac79f3
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+74
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-74/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+74