RFR: 8368985: Small Float16 refactorings

Andrey Turbanov aturbanov at openjdk.org
Wed Oct 1 10:50:48 UTC 2025


On Wed, 1 Oct 2025 04:29:56 GMT, Joe Darcy <darcy at openjdk.org> wrote:

> A few more small cleanups to Float16 and its tests.

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Float16.java line 1563:

> 1561:         int exp = getExponent(f16);
> 1562: 
> 1563:         return switch(exp) {

Suggestion:

        return switch (exp) {

test/jdk/jdk/incubator/vector/BasicFloat16ArithTests.java line 408:

> 406:         };
> 407: 
> 408:         for(var testCase : testCases) {

Suggestion:

        for (var testCase : testCases) {

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27587#discussion_r2394152274
PR Review Comment: https://git.openjdk.org/jdk/pull/27587#discussion_r2394151777


More information about the core-libs-dev mailing list