src/java.base/share/classes/java/lang/Double.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File 8076112 Cdiff src/java.base/share/classes/java/lang/Double.java

src/java.base/share/classes/java/lang/Double.java

Print this page

        

*** 25,34 **** --- 25,35 ---- package java.lang; import sun.misc.FloatingDecimal; import sun.misc.DoubleConsts; + import jdk.internal.HotSpotIntrinsicCandidate; /** * The {@code Double} class wraps a value of the primitive type * {@code double} in an object. An object of type * {@code Double} contains a single field whose type is
*** 512,521 **** --- 513,523 ---- * * @param d a double value. * @return a {@code Double} instance representing {@code d}. * @since 1.5 */ + @HotSpotIntrinsicCandidate public static Double valueOf(double d) { return new Double(d); } /**
*** 709,718 **** --- 711,721 ---- /** * Returns the {@code double} value of this {@code Double} object. * * @return the {@code double} value represented by this object */ + @HotSpotIntrinsicCandidate public double doubleValue() { return value; } /**
*** 829,838 **** --- 832,842 ---- * collapsed to a single "canonical" NaN value). * * @param value a {@code double} precision floating-point number. * @return the bits that represent the floating-point number. */ + @HotSpotIntrinsicCandidate public static long doubleToLongBits(double value) { if (!isNaN(value)) { return doubleToRawLongBits(value); } return 0x7ff8000000000000L;
*** 872,881 **** --- 876,886 ---- * * @param value a {@code double} precision floating-point number. * @return the bits that represent the floating-point number. * @since 1.3 */ + @HotSpotIntrinsicCandidate public static native long doubleToRawLongBits(double value); /** * Returns the {@code double} value corresponding to a given * bit representation.
*** 935,944 **** --- 940,950 ---- * * @param bits any {@code long} integer. * @return the {@code double} floating-point value with the same * bit pattern. */ + @HotSpotIntrinsicCandidate public static native double longBitsToDouble(long bits); /** * Compares two {@code Double} objects numerically. There * are two ways in which comparisons performed by this method
src/java.base/share/classes/java/lang/Double.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File