Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289551

Conversions between bit representations of half precision values and floats

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • None
    • core-libs
    • None
    • b08

      Add static methods to `Float` that convert between the bit representation of a half precision floating point (float16) value and float.

      The bit representation of a float16 value is a short value.

      These methods will enable superior interoperation with machine learning models and native machine learning libraries.

      The implementations will conform to the IEEE 754-2008 standard.

      Additional work beyond the scope of this issue can improve the performance of these implementations:
      - they can be made intrinsic leveraging hardware instructions on appropriate platforms; and
      - if the hardware platform supports vector instructions it may be possible to enhance C2's auto-vectorizer

            darcy Joe Darcy
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: