RFR: 8271602: Add Math.ceilDiv() family parallel to Math.floorDiv() family

Raffaello Giulietti github.com+70726043+rgiulietti at openjdk.java.net
Fri Aug 27 19:01:38 UTC 2021


Please review this PR to add officially endorsed `ceilDiv()` and `ceilMod()` methods do `j.l.[Strict]Math`.

Beside adding fresh tests to `test/jdk/java/lang/Math/DivModTests.java`, this PR also corrects small typos in it and exercises tests that were already present but which were never invoked.
Let me know if this is acceptable for a test or if there's a need of a separate issue in the JBS.

-------------

Commit messages:
 - 8271602: Add Math.ceilDiv() family parallel to Math.floorDiv() family

Changes: https://git.openjdk.java.net/jdk/pull/5285/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5285&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8271602
  Stats: 871 lines in 3 files changed: 850 ins; 0 del; 21 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5285.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5285/head:pull/5285

PR: https://git.openjdk.java.net/jdk/pull/5285


More information about the core-libs-dev mailing list