Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/lang/
DFloat.java665 return floatToIntBits(value); in hashCode()
710 && (floatToIntBits(((Float)obj).value) == floatToIntBits(value)); in equals()
744 public static int floatToIntBits(float value) { in floatToIntBits() method in Float
914 int thisBits = Float.floatToIntBits(f1); in compare()
915 int anotherBits = Float.floatToIntBits(f2); in compare()
/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/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/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.java1091 writeInt(Float.floatToIntBits(v)); in writeFloat()
/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/java/util/
DArrays.java2265 int midBits = Float.floatToIntBits(midVal); in binarySearch0()
2266 int keyBits = Float.floatToIntBits(key); in binarySearch0()
2724 if (Float.floatToIntBits(a[i])!=Float.floatToIntBits(a2[i])) in equals()
4013 result = 31 * result + Float.floatToIntBits(element); in hashCode()