mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8301205: Port fdlibm log10 to Java
Reviewed-by: bpb
This commit is contained in:
parent
b84f4c40fd
commit
63bb2ce8de
4 changed files with 222 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1999, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -281,7 +281,9 @@ public final class StrictMath {
|
|||
* @return the base 10 logarithm of {@code a}.
|
||||
* @since 1.5
|
||||
*/
|
||||
public static native double log10(double a);
|
||||
public static double log10(double a) {
|
||||
return FdLibm.Log10.compute(a);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the correctly rounded positive square root of a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue