Reviewer needed: 6282196 There should be Math.mod(number, modulo) methods
Stephen Colebourne
scolebourne at joda.org
Wed Oct 10 14:30:12 UTC 2012
On 10 October 2012 15:22, Roger Riggs <Roger.Riggs at oracle.com> wrote:
> A reviewer is needed for:
>
> 6282196 There should be Math.mod(number, modulo) methods
>
> The webrev is: http://cr.openjdk.java.net/~rriggs/6282196.4/
Just to note that floorMod(long, int) is not present. This is often
useful as the mod side generally fits in 32 bits, which means the
result can fit in 32 bits. This often saves the need to call
toIntExact() on the result.
Stephen
More information about the core-libs-dev
mailing list