Integrated: JDK-8301392: Port fdlibm log1p to Java
Joe Darcy
darcy at openjdk.org
Thu Feb 2 20:39:29 UTC 2023
On Tue, 31 Jan 2023 02:52:45 GMT, Joe Darcy <darcy at openjdk.org> wrote:
> Another day, another PR to port FDLBIM to Java, this time for the log1p method.
>
> Other than using the two-argument form of the __HI method in Java transliteration version rather than C macro, there are no appreciable differences between the original C source in
>
> src/java.base/share/native/libfdlibm/s_log1p.c
>
> and the transliteration for testing purposes in
>
> test/jdk/java/lang/StrictMath/FdlibmTranslit.java
>
> The more idiomatic port in
>
> src/java.base/share/classes/java/lang/FdLibm.java
>
> has had a series of transformation applied layering on the transliteration. The intermediate commits show the progress.
>
> The regression tests include probing around input values the implementation uses to decided which branch to take.
This pull request has now been integrated.
Changeset: ee0f5b5e
Author: Joe Darcy <darcy at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ee0f5b5ed0f8f081c5e61e2083c31863cbf14fd2
Stats: 410 lines in 4 files changed: 395 ins; 1 del; 14 mod
8301392: Port fdlibm log1p to Java
Reviewed-by: bpb
-------------
PR: https://git.openjdk.org/jdk/pull/12301
More information about the core-libs-dev
mailing list