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

Use hex literals instead of decimal literals in math intrinsic constants

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 24, 25, 26
    • hotspot
    • b17
    • 24
    • x86_64

      The dcbrt and dtanh and implementations (see below) currently use decimal literals within constant definitions, but it makes more sense to use hex literals to represent floating point values. Also, the other math intrinsics use hex literals.

      1. src/hotspot/cpu/x86/stubGenerator_x86_64_cbrt.cpp
      2. src/hotspot/cpu/x86/stubGenerator_x86_64_tanh.cpp

            missa Mohamed Issa
            missa Mohamed Issa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: