RFR: 8075806: divideExact is missing in java.lang.Math
Raffaello Giulietti
raffaello.giulietti at gmail.com
Wed Jul 14 19:57:23 UTC 2021
Mysteries of JIT compilation...
On 2021-07-14 21:53, Brian Burkhalter wrote:
> On Tue, 13 Jul 2021 17:21:52 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>
>> Please consider this proposal to add `divideExact()` methods for integral data types to `java.lang.Math` thereby rounding out "exact" support to all four basic arithmetic operations.
>
> @rgiulietti Actually your trick is the fastest: `yours > via negateExact() > original`. Thanks!
>
> -------------
>
> PR: https://git.openjdk.java.net/jdk/pull/4770
>
More information about the core-libs-dev
mailing list