src/java.base/share/classes/java/lang/StrictMath.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
8076112 Cdiff src/java.base/share/classes/java/lang/StrictMath.java
src/java.base/share/classes/java/lang/StrictMath.java
Print this page
*** 22,33 ****
--- 22,35 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package java.lang;
+
import java.util.Random;
import sun.misc.DoubleConsts;
+ import jdk.internal.HotSpotIntrinsicCandidate;
/**
* The class {@code StrictMath} contains methods for performing basic
* numeric operations such as the elementary exponential, logarithm,
* square root, and trigonometric functions.
*** 241,251 ****
* @return the value ln {@code a}, the natural logarithm of
* {@code a}.
*/
public static native double log(double a);
-
/**
* Returns the base 10 logarithm of a {@code double} value.
* Special cases:
*
* <ul><li>If the argument is NaN or less than zero, then the result
--- 243,252 ----
*** 278,287 ****
--- 279,289 ----
* the true mathematical square root of the argument value.
*
* @param a a value.
* @return the positive square root of {@code a}.
*/
+ @HotSpotIntrinsicCandidate
public static native double sqrt(double a);
/**
* Returns the cube root of a {@code double} value. For
* positive finite {@code x}, {@code cbrt(-x) ==
*** 519,529 ****
* in polar coordinates that corresponds to the point
* (<i>x</i>, <i>y</i>) in Cartesian coordinates.
*/
public static native double atan2(double y, double x);
-
/**
* Returns the value of the first argument raised to the power of the
* second argument. Special cases:
*
* <ul><li>If the second argument is positive or negative zero, then the
--- 521,530 ----
*** 1007,1016 ****
--- 1008,1018 ----
*
* @param a an argument.
* @param b another argument.
* @return the larger of {@code a} and {@code b}.
*/
+ @HotSpotIntrinsicCandidate
public static int max(int a, int b) {
return Math.max(a, b);
}
/**
*** 1071,1080 ****
--- 1073,1083 ----
*
* @param a an argument.
* @param b another argument.
* @return the smaller of {@code a} and {@code b}.
*/
+ @HotSpotIntrinsicCandidate
public static int min(int a, int b) {
return Math.min(a, b);
}
/**
src/java.base/share/classes/java/lang/StrictMath.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File