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

Regression in Math.pow for powers of 2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 9
    • hotspot
    • None
    • 9
    • x86

      For Java 9 JDK-8145688 optimized Math.pow. This caused a regression compared to Java 8, which special cased for powers of 2. That special case is missing from Java 9.

      See also:

      https://www.reddit.com/r/javahelp/comments/7b5erh/i_think_i_found_piece_of_code_which_is_8_times/

            Unassigned Unassigned
            psandoz Paul Sandoz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: