openj9 icon indicating copy to clipboard operation
openj9 copied to clipboard

Support Java Behaviour w.r.t Math.max and Math.min for Floating Points

Open matthewhall2 opened this issue 1 year ago • 0 comments

  • Enables inlining of Math.max/Math.min functions for floats and doubles

  • Implements Java standard found while testing

    • +0 compares as strictly greater than -0
    • if the first arg is a NaN, returns the corresponding quiet NaN, same for if only the second arg is a NaN
  • Depends on OMR PR:https://github.com/eclipse/omr/pull/7464

    • Differs from this in that it returns the first NaN argument unchanged if present (the omr pr implements the IEEE-754 standard which returns the corresponding quiet NaN)

https://hyc-runtimes-jenkins.swg-devops.com/job/jvm.29.personal/34248/

matthewhall2 avatar Sep 18 '24 16:09 matthewhall2