aboutsummaryrefslogtreecommitdiff
path: root/src/java.base/share/classes/java/lang/StrictMath.java
diff options
context:
space:
mode:
authorPhilippe Marschall <philippe.marschall@gmail.com>2020-09-30 20:05:07 +0000
committerVladimir Kozlov <kvn@openjdk.org>2020-09-30 20:05:07 +0000
commit2a406f3ce5e200af9909ce051fdeed0cc059fea0 (patch)
treed47f71c31914dbcfd2f2e863432c7a32e34527f1 /src/java.base/share/classes/java/lang/StrictMath.java
parent4b16f8ab942b08b249abfe6f95c4ded3ef139ef0 (diff)
downloadopenjdk-2a406f3ce5e200af9909ce051fdeed0cc059fea0.tar.gz
openjdk-2a406f3ce5e200af9909ce051fdeed0cc059fea0.zip
8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
Diffstat (limited to 'src/java.base/share/classes/java/lang/StrictMath.java')
-rw-r--r--src/java.base/share/classes/java/lang/StrictMath.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/java.base/share/classes/java/lang/StrictMath.java b/src/java.base/share/classes/java/lang/StrictMath.java
index 4578146849b..d511847d9f6 100644
--- a/src/java.base/share/classes/java/lang/StrictMath.java
+++ b/src/java.base/share/classes/java/lang/StrictMath.java
@@ -27,7 +27,7 @@ package java.lang;
import java.util.Random;
import jdk.internal.math.DoubleConsts;
-import jdk.internal.HotSpotIntrinsicCandidate;
+import jdk.internal.vm.annotation.IntrinsicCandidate;
/**
* The class {@code StrictMath} contains methods for performing basic
@@ -283,7 +283,7 @@ public final class StrictMath {
* @param a a value.
* @return the positive square root of {@code a}.
*/
- @HotSpotIntrinsicCandidate
+ @IntrinsicCandidate
public static native double sqrt(double a);
/**
@@ -1261,7 +1261,7 @@ public final class StrictMath {
* @param b another argument.
* @return the larger of {@code a} and {@code b}.
*/
- @HotSpotIntrinsicCandidate
+ @IntrinsicCandidate
public static int max(int a, int b) {
return Math.max(a, b);
}
@@ -1294,7 +1294,7 @@ public final class StrictMath {
* @param b another argument.
* @return the larger of {@code a} and {@code b}.
*/
- @HotSpotIntrinsicCandidate
+ @IntrinsicCandidate
public static float max(float a, float b) {
return Math.max(a, b);
}
@@ -1313,7 +1313,7 @@ public final class StrictMath {
* @param b another argument.
* @return the larger of {@code a} and {@code b}.
*/
- @HotSpotIntrinsicCandidate
+ @IntrinsicCandidate
public static double max(double a, double b) {
return Math.max(a, b);
}
@@ -1328,7 +1328,7 @@ public final class StrictMath {
* @param b another argument.
* @return the smaller of {@code a} and {@code b}.
*/
- @HotSpotIntrinsicCandidate
+ @IntrinsicCandidate
public static int min(int a, int b) {
return Math.min(a, b);
}
@@ -1361,7 +1361,7 @@ public final class StrictMath {
* @param b another argument.
* @return the smaller of {@code a} and {@code b.}
*/
- @HotSpotIntrinsicCandidate
+ @IntrinsicCandidate
public static float min(float a, float b) {
return Math.min(a, b);
}
@@ -1380,7 +1380,7 @@ public final class StrictMath {
* @param b another argument.
* @return the smaller of {@code a} and {@code b}.
*/
- @HotSpotIntrinsicCandidate
+ @IntrinsicCandidate
public static double min(double a, double b) {
return Math.min(a, b);
}