RFR: 8355992: Add unsignedMultiplyExact and *powExact methods to Math and StrictMath
Raffaello Giulietti
rgiulietti at openjdk.org
Fri May 2 14:17:45 UTC 2025
On Fri, 2 May 2025 14:06:23 GMT, Per Minborg <pminborg at openjdk.org> wrote:
>> Add `powExact()` and `unsignedPowExact()` methods that operate on integer values arguments.
>> Further, add `unsignedMultiplyExact` methods as well.
>
> Maybe it is too late, but shouldn't there be a better way to structure all these methods and variants in Math and MathExact? x(), xExact() and all the different parameter types create a rather big Cartesian product.
@minborg I'm open to suggestions for the `pow` methods.
But for the `unsignedMultiplyExact` methods, as their signed counterparts are already in `[Strict]Math` since a long time, I think they should land there as well.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25003#issuecomment-2847316992
More information about the core-libs-dev
mailing list