src/java.base/share/classes/java/lang/Float.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/java.base/share/classes/java/lang/Float.java	Mon Jun 29 11:11:53 2015
--- new/src/java.base/share/classes/java/lang/Float.java	Mon Jun 29 11:11:52 2015

*** 26,35 **** --- 26,36 ---- package java.lang; import sun.misc.FloatingDecimal; import sun.misc.FloatConsts; import sun.misc.DoubleConsts; + import jdk.internal.HotSpotIntrinsicCandidate; /** * The {@code Float} class wraps a value of primitive type * {@code float} in an object. An object of type * {@code Float} contains a single field whose type is
*** 427,436 **** --- 428,438 ---- * * @param f a float value. * @return a {@code Float} instance representing {@code f}. * @since 1.5 */ + @HotSpotIntrinsicCandidate public static Float valueOf(float f) { return new Float(f); } /**
*** 620,629 **** --- 622,632 ---- /** * Returns the {@code float} value of this {@code Float} object. * * @return the {@code float} value represented by this object */ + @HotSpotIntrinsicCandidate public float floatValue() { return value; } /**
*** 738,747 **** --- 741,751 ---- * "canonical" NaN value). * * @param value a floating-point number. * @return the bits that represent the floating-point number. */ + @HotSpotIntrinsicCandidate public static int floatToIntBits(float value) { if (!isNaN(value)) { return floatToRawIntBits(value); } return 0x7fc00000;
*** 780,789 **** --- 784,794 ---- * * @param value a floating-point number. * @return the bits that represent the floating-point number. * @since 1.3 */ + @HotSpotIntrinsicCandidate public static native int floatToRawIntBits(float value); /** * Returns the {@code float} value corresponding to a given * bit representation.
*** 841,850 **** --- 846,856 ---- * * @param bits an integer. * @return the {@code float} floating-point value with the same bit * pattern. */ + @HotSpotIntrinsicCandidate public static native float intBitsToFloat(int bits); /** * Compares two {@code Float} objects numerically. There are * two ways in which comparisons performed by this method differ

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