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

Jean-Noël Rouvignac duke at openjdk.org
Mon Jan 5 19:58:29 UTC 2026


On Mon, 5 Jan 2026 17:33:34 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> Add comment describing why Math.fma uses BigDecimal.

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

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

Suggestion:

        // be used on processors without native fma support.

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

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


More information about the core-libs-dev mailing list