RFR: 8374540: Add comment describing implementaiton choices of Math.fma [v2]

Alan Bateman alanb at openjdk.org
Tue Jan 6 07:32:36 UTC 2026


On Mon, 5 Jan 2026 21:56:18 GMT, Joe Darcy <darcy at openjdk.org> wrote:

>> Add comment describing why Math.fma uses BigDecimal.
>
> Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Respond to review feedback and add conclusion.

src/java.base/share/classes/java/lang/Math.java line 2389:

> 2387:         // support for fma and this method is an intrinsic candidate,
> 2388:         // the software implementation below would only be used on
> 2389:         // processors without native fma support. Therefore, the

It will be used when in the interpreter too, which it think confuses people sometimes as they modify the Java code and see that the modified code executes.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29044#discussion_r2663934822


More information about the core-libs-dev mailing list