Home
last modified time | relevance | path

Searched refs:floatToIntBits (Results 1 – 25 of 25) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DStrictMathTest.java251 final int absMagnitudeBits = Float.floatToIntBits(StrictMath in test_copySign_FF()
253 final int negMagnitudeBits = Float.floatToIntBits(-StrictMath in test_copySign_FF()
258 absMagnitudeBits, Float.floatToIntBits(StrictMath.copySign( in test_copySign_FF()
265 final int resultBits = Float.floatToIntBits(StrictMath in test_copySign_FF()
762 .floatToIntBits(NEXTAFTER_FD_START_CASES[i][1]); in test_nextAfter_FD()
764 .floatToIntBits(NEXTAFTER_FD_START_CASES[i][2]); in test_nextAfter_FD()
768 final int resultBits = Float.floatToIntBits(StrictMath in test_nextAfter_FD()
777 final int equivalentBits = Float.floatToIntBits(new Float( in test_nextAfter_FD()
863 .floatToIntBits(NEXTAFTER_FD_START_CASES[i][1]); in test_nextUp_F()
864 final int resultBits = Float.floatToIntBits(StrictMath in test_nextUp_F()
[all …]
DFloatTest.java91 rawBits = Float.floatToIntBits(result); in doTestCompareRawBits()
175 int bits = Float.floatToIntBits(f); in test_floatToIntBitsF()
208 .floatToIntBits(1908.8786f)); in test_hashCode()
212 .floatToIntBits(-1.112f)); in test_hashCode()
215 assertTrue("Returned invalid hash code for 0", f.hashCode() == Float.floatToIntBits(0f)); in test_hashCode()
224 int bits = Float.floatToIntBits(f); in test_intBitsToFloatI()
492 String expectedString = Integer.toHexString(Float.floatToIntBits(expected)); in test_parseFloat_LString_NormalPositiveExponent()
493 String actualString = Integer.toHexString(Float.floatToIntBits(actual)); in test_parseFloat_LString_NormalPositiveExponent()
541 String expectedString = Integer.toHexString(Float.floatToIntBits(expected)); in test_parseFloat_LString_NormalNegativeExponent()
542 String actualString = Integer.toHexString(Float.floatToIntBits(actual)); in test_parseFloat_LString_NormalNegativeExponent()
[all …]
DMathTest.java242 final int absMagnitudeBits = Float.floatToIntBits(Math in test_copySign_FF()
244 final int negMagnitudeBits = Float.floatToIntBits(-Math in test_copySign_FF()
249 absMagnitudeBits, Float.floatToIntBits(Math.copySign( in test_copySign_FF()
256 final int resultBits = Float.floatToIntBits(Math.copySign( in test_copySign_FF()
940 .floatToIntBits(NEXTAFTER_FD_START_CASES[i][1]); in test_nextAfter_FD()
942 .floatToIntBits(NEXTAFTER_FD_START_CASES[i][2]); in test_nextAfter_FD()
946 final int resultBits = Float.floatToIntBits(Math.nextAfter( in test_nextAfter_FD()
955 final int equivalentBits = Float.floatToIntBits(new Float( in test_nextAfter_FD()
1040 .floatToIntBits(NEXTAFTER_FD_START_CASES[i][1]); in test_nextUp_F()
1041 final int resultBits = Float.floatToIntBits(Math.nextUp(start)); in test_nextUp_F()
[all …]
/libcore/ojluni/src/main/java/java/lang/
DFloat.java722 return floatToIntBits(value); in hashCode()
754 && (floatToIntBits(((Float)obj).value) == floatToIntBits(value)); in equals()
789 public static int floatToIntBits(float value) { in floatToIntBits() method in Float
965 int thisBits = Float.floatToIntBits(f1); in compare()
966 int anotherBits = Float.floatToIntBits(f2); in compare()
/libcore/ojluni/src/test/java/lang/Float/
DBitwiseConversionTest.java55 int converted = floatToIntBits(value); in testNanCase()
70 Assert.assertEquals (floatToIntBits(Float.POSITIVE_INFINITY), 0x7F800000, in testFloatToIntBits()
73 Assert.assertEquals(floatToIntBits(Float.NEGATIVE_INFINITY), 0xFF800000, in testFloatToIntBits()
DParseFloatTest.java112 if ((Float.floatToIntBits(n) & 1) != 0) { in check()
/libcore/luni/src/test/java/libcore/java/lang/
DOldFloatTest.java52 assertEquals(0x7f800000, Float.floatToIntBits(Float.POSITIVE_INFINITY)); in test_floatToIntBitsF()
53 assertEquals(0xff800000, Float.floatToIntBits(Float.NEGATIVE_INFINITY)); in test_floatToIntBitsF()
54 assertEquals(0x7fc00000, Float.floatToIntBits(Float.NaN)); in test_floatToIntBitsF()
DOldAndroidStrictMathTest.java482 assertEquals(Float.floatToIntBits(0.0f), Float in testSignumF()
483 .floatToIntBits(StrictMath.signum(0.0f))); in testSignumF()
484 assertEquals(Float.floatToIntBits(+0.0f), Float in testSignumF()
485 .floatToIntBits(StrictMath.signum(+0.0f))); in testSignumF()
486 assertEquals(Float.floatToIntBits(-0.0f), Float in testSignumF()
487 .floatToIntBits(StrictMath.signum(-0.0f))); in testSignumF()
DOldAndroidMathTest.java505 assertEquals(Float.floatToIntBits(0.0f), Float in testSignumF()
506 .floatToIntBits(Math.signum(0.0f))); in testSignumF()
507 assertEquals(Float.floatToIntBits(+0.0f), Float in testSignumF()
508 .floatToIntBits(Math.signum(+0.0f))); in testSignumF()
509 assertEquals(Float.floatToIntBits(-0.0f), Float in testSignumF()
510 .floatToIntBits(Math.signum(-0.0f))); in testSignumF()
DIntrinsicTest.java118 Float.floatToIntBits(0.0f); in testFloat_floatToIntBits()
/libcore/ojluni/src/test/java/lang/Math/
DAbsPositiveZero.java36 return Float.floatToIntBits(f) == Float.floatToIntBits(0.0f); in isPositiveZero()
DIeeeRecommendedTests.java172 (Float.floatToIntBits(po2) & in testFloatGetExponent()
215 Float.floatToIntBits(top) | in testFloatGetExponent()
1349 (Float.floatToIntBits(po2) & in testFloatUlp()
1394 Float.floatToIntBits(top) | in testFloatUlp()
/libcore/benchmarks/src/benchmarks/regression/
DFloatBenchmark.java26 result = Float.floatToIntBits(f); in timeFloatToIntBits()
/libcore/ojluni/src/main/java/java/io/
DBits.java106 putInt(b, off, Float.floatToIntBits(val)); in putFloat()
DDataOutputStream.java242 writeInt(Float.floatToIntBits(v)); in writeFloat()
DRandomAccessFile.java1174 writeInt(Float.floatToIntBits(v)); in writeFloat()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DFloat.java127 public static int floatToIntBits(float value) { in floatToIntBits() method in Float
/libcore/ojluni/annotations/flagged_api/java/lang/
DFloat.annotated.java81 public static int floatToIntBits(float value) { throw new RuntimeException("Stub!"); } in floatToIntBits() method in Float
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DFloat.annotated.java79 public static int floatToIntBits(float value) { throw new RuntimeException("Stub!"); } in floatToIntBits() method in Float
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/
DBigDecimalConvertTest.java143 assertTrue("incorrect value", Float.floatToIntBits(result) == minusZero); in testFloatValueMinusZero()
154 assertTrue("incorrect value", Float.floatToIntBits(result) == zero); in testFloatValuePlusZero()
/libcore/ojluni/src/main/java/jdk/internal/util/
DArraysSupport.java598 if (Float.floatToIntBits(a[aFromIndex + i]) != Float.floatToIntBits(b[bFromIndex + i])) in mismatch()
/libcore/ojluni/src/main/java/jdk/internal/util/random/
DRandomSupport.java720 r = Float.intBitsToFloat(Float.floatToIntBits(bound) - 1); in boundedNextFloat()
752 r = Float.intBitsToFloat(Float.floatToIntBits(bound) - 1); in boundedNextFloat()
/libcore/ojluni/src/test/java/util/Arrays/
DSorting.java716 final int NEGATIVE_ZERO = Float.floatToIntBits(-0.0f); in compare()
719 if (NEGATIVE_ZERO != Float.floatToIntBits(a[i])) { in compare()
/libcore/ojluni/src/main/java/java/util/
DArrays.java2180 int midBits = Float.floatToIntBits(midVal); in binarySearch0()
2181 int keyBits = Float.floatToIntBits(key); in binarySearch0()
4518 result = 31 * result + Float.floatToIntBits(element); in hashCode()
/libcore/api/
Dcurrent.txt3326 method public static int floatToIntBits(float);