8344259: Annotate Float16 with jdk.internal.ValueBased
Reviewed-by: liach, darcy
This commit is contained in:
parent
0b9b82af03
commit
1866c0c2ce
@ -146,6 +146,8 @@ module java.base {
|
|||||||
jdk.compiler;
|
jdk.compiler;
|
||||||
exports com.sun.security.ntlm to
|
exports com.sun.security.ntlm to
|
||||||
java.security.sasl;
|
java.security.sasl;
|
||||||
|
exports jdk.internal to
|
||||||
|
jdk.incubator.vector;
|
||||||
// Note: all modules in the exported list participate in preview features
|
// Note: all modules in the exported list participate in preview features
|
||||||
// and therefore if they use preview features they do not need to be
|
// and therefore if they use preview features they do not need to be
|
||||||
// compiled with "--enable-preview".
|
// compiled with "--enable-preview".
|
||||||
|
@ -95,8 +95,7 @@ import static java.lang.Math.multiplyHigh;
|
|||||||
// Currently Float16 is a value-based class and in future it is
|
// Currently Float16 is a value-based class and in future it is
|
||||||
// expected to be aligned with Value Classes and Object as described in
|
// expected to be aligned with Value Classes and Object as described in
|
||||||
// JEP-401 (https://openjdk.org/jeps/401).
|
// JEP-401 (https://openjdk.org/jeps/401).
|
||||||
// @jdk.internal.MigratedValueClass
|
@jdk.internal.ValueBased
|
||||||
// @jdk.internal.ValueBased
|
|
||||||
public final class Float16
|
public final class Float16
|
||||||
extends Number
|
extends Number
|
||||||
implements Comparable<Float16> {
|
implements Comparable<Float16> {
|
||||||
@ -323,7 +322,7 @@ public final class Float16
|
|||||||
* @param f a {@code float}
|
* @param f a {@code float}
|
||||||
*/
|
*/
|
||||||
public static Float16 valueOf(float f) {
|
public static Float16 valueOf(float f) {
|
||||||
return new Float16(Float.floatToFloat16(f));
|
return new Float16(floatToFloat16(f));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user