RFR: 8255368: Math.exp() gives wrong result for large values on x86 32-bit platforms [v2]

Xubo Zhang github.com+58006833+xbzhang99 at openjdk.java.net
Sat Nov 7 07:33:06 UTC 2020


> Math.exp(10000) produces 0 instead of positive infinity on x86 32-bit platform. The reason was for some jmp instructions, it used jge instead of jae. Also changed movdqu to movsd as it was supposed to load a 64-bit number

Xubo Zhang has updated the pull request incrementally with one additional commit since the last revision:

  Added test cases for exp at the value of 1024 and 10000

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/894/files
  - new: https://git.openjdk.java.net/jdk/pull/894/files/72630558..305d915b

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=894&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=894&range=00-01

  Stats: 3 lines in 1 file changed: 2 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/894.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/894/head:pull/894

PR: https://git.openjdk.java.net/jdk/pull/894


More information about the hotspot-dev mailing list