Recent revisions of the IEEE 754 floating-point standard have added guidance on how typical math library methods (sin, cos, tan, etc.) should behave in terms of their general quality of implementation as well as on special values.
Other than the pow methods, for the recommended operations listed by IEEE 754 that the Java math library already includes, the special cases that are specified by Java are the same as those specified by IEEE 754, except for the pow method. IEEE 754 calls out some special cases not explicitly listed in the Java specs. This changeset adds those special cases to the spec and adds tests of the the special cases if not already present. If method "Foo" already had a regression test, new cases were added it it. Otherwise, a new test was added to cover the special cases of several methods. There is no intention at the moment to change the behavior of pow to align with IEEE 754. ------------- Commit messages: - Initial changes for JDK-8240632. Changes: https://git.openjdk.java.net/jdk/pull/2395/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2395&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8240632 Stats: 223 lines in 5 files changed: 212 ins; 0 del; 11 mod Patch: https://git.openjdk.java.net/jdk/pull/2395.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/2395/head:pull/2395 PR: https://git.openjdk.java.net/jdk/pull/2395
