History log of /frameworks/base/core/java/android/util/FloatMath.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d6a213526251896b7f9928334a17ae0dd97669ba 12-Feb-2015 Neil Fuller <nfuller@google.com> Remove FloatMath methods from the API

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
/frameworks/base/core/java/android/util/FloatMath.java
a021e922184ee16fc019e29c066719daa793dd2b 24-Oct-2014 Neil Fuller <nfuller@google.com> resolved conflicts for merge of 12260ad7 to lmp-mr1-dev-plus-aosp

Change-Id: Ie2222794208475216941289cf062e05ca9c75e0f
bbf8871e1c7ef762b3f9505cca924568c48e8be5 23-Oct-2014 Neil Fuller <nfuller@google.com> Deprecating FloatMath and Time

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
/frameworks/base/core/java/android/util/FloatMath.java
7b3db39aa47108c87dad5e930b6fec2292219abe 18-Oct-2014 Nick Kralevich <nnk@google.com> Replacing FloatMath native implementation with calls to Math

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
/frameworks/base/core/java/android/util/FloatMath.java
f732a2f83f43769653f9dc5975faf1d6d0bd19f6 26-Feb-2013 Elliott Hughes <enh@google.com> Fix incorrect FloatMath documentation.

Change-Id: I30bbe500e634b73f3456ccc797106ad261fd0ce7
/frameworks/base/core/java/android/util/FloatMath.java
e2c279e8a1abc2cc7bc87b94a514a563b814cdc1 22-Aug-2012 Jeff Brown <jeffbrown@google.com> Add FloatMath.pow.

Change-Id: I5c584f4894caba47fccfa22ba95f8665990d516c
/frameworks/base/core/java/android/util/FloatMath.java
270e3381e7053c3b15aa8f508c9df9d98032cd62 16-Aug-2012 Jeff Brown <jeffbrown@google.com> Add FloatMath.hypot.

Change-Id: I6a5a7ea2254300614dbbf540f40e39dbec2d2900
/frameworks/base/core/java/android/util/FloatMath.java
5d728bb9ff8c6ad89d5a1b88b2804f954d45d763 08-Aug-2012 Jeff Brown <jeffbrown@google.com> Add FloatMath.exp.

Change-Id: I7f215e5fd4cb942ddee56eebaef04be565ac79f3
/frameworks/base/core/java/android/util/FloatMath.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/util/FloatMath.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/util/FloatMath.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/util/FloatMath.java