Searched refs:halfValue (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/util/src/android/util/cts/ |
D | HalfTest.java | 618 assertEquals(POSITIVE_INFINITY, new Half(POSITIVE_INFINITY).halfValue()); in constructors() 619 assertEquals(NEGATIVE_INFINITY, new Half(NEGATIVE_INFINITY).halfValue()); in constructors() 620 assertEquals(POSITIVE_ZERO, new Half(POSITIVE_ZERO).halfValue()); in constructors() 621 assertEquals(NEGATIVE_ZERO, new Half(NEGATIVE_ZERO).halfValue()); in constructors() 622 assertEquals(NaN, new Half(NaN).halfValue()); in constructors() 623 assertEquals(toHalf(12.57f), new Half(toHalf(12.57f)).halfValue()); in constructors() 624 assertEquals(toHalf(-12.57f), new Half(toHalf(-12.57f)).halfValue()); in constructors() 626 assertEquals(POSITIVE_INFINITY, new Half(Float.POSITIVE_INFINITY).halfValue()); in constructors() 627 assertEquals(NEGATIVE_INFINITY, new Half(Float.NEGATIVE_INFINITY).halfValue()); in constructors() 628 assertEquals(POSITIVE_ZERO, new Half(0.0f).halfValue()); in constructors() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | Float16Utils.java | 315 short halfValue = (short) (halfExponent | halfMantissa); in convertDoubleToFloat16() local 316 return (isNegative) ? (short) (0x8000 | halfValue) : halfValue; in convertDoubleToFloat16()
|