RFR of 8023217: Additional floorDiv/floorMod/multiplyExact methods for java.lang.Math
Joseph D. Darcy
joe.darcy at oracle.com
Tue Sep 29 02:17:46 UTC 2015
Do you think any tests are needed here, at least for a quick sanity check?
On 9/28/2015 6:06 PM, Brian Burkhalter wrote:
> Please review at your convenience.
> Issue: https://bugs.openjdk.java.net/browse/JDK-8023217
> Patch: http://cr.openjdk.java.net/~bpb/8023217/webrev.00/
> Add some additional methods of the same name as existing methods but with the commonly used parameter signature “long,int”:
> long multiplyExact(long,int)
> long floorDiv(long,int)
> int floorDiv(long,int)
> These methods also provide hooks for potential intrinsics. There might be room for improvement in their Java implementations.
> The modifications to the java.time classes are to fix warnings about “redundant cast to int.”
More information about the core-libs-dev