RFR: 8295351: java/lang/Float/Binary16Conversion.java fails with "Unexpected result of converting"

ExE Boss duke at openjdk.org
Wed Nov 23 04:30:16 UTC 2022


On Tue, 22 Nov 2022 21:52:59 GMT, Smita Kamath <svkamath at openjdk.org> wrote:

> 8295351: java/lang/Float/Binary16Conversion.java fails with "Unexpected result of converting"

src/hotspot/share/runtime/sharedRuntime.cpp line 531:

> 529:      return bits.f;
> 530:    }
> 531:   }

Wrong indentation:
Suggestion:

  } else if (hf_exp == 16) {
    if (hf_significand_bits == 0) {
      bits.i = 0x7f800000;
      return sign * bits.f;
    } else {
      bits.i = (hf_sign_bit << 16) | 0x7f800000 |
               (hf_significand_bits << significand_shift);
      return bits.f;
    }
  }

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

PR: https://git.openjdk.org/jdk/pull/11301


More information about the hotspot-dev mailing list