RFR: 8271602: Add Math.ceilDiv() family parallel to Math.floorDiv() family [v2]
Raffaello Giulietti
github.com+70726043+rgiulietti at openjdk.java.net
Fri Sep 10 18:42:08 UTC 2021
On Thu, 9 Sep 2021 23:44:49 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8271602: Add Math.ceilDiv() family parallel to Math.floorDiv() family
>
> src/java.base/share/classes/java/lang/StrictMath.java line 1465:
>
>> 1463: * <p>
>> 1464: * The floor modulus is {@code r = x - (ceilDiv(x, y) * y)},
>> 1465: * has the same sign as the divisor {@code y} or is zero, and
>
> In line 1465 I think `same` should be `opposite`.
Just pushed the corrections.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5341
More information about the core-libs-dev
mailing list