Home
last modified time | relevance | path

Searched refs:halfValue (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java579 assertEquals(POSITIVE_INFINITY, new Half(POSITIVE_INFINITY).halfValue()); in constructors()
580 assertEquals(NEGATIVE_INFINITY, new Half(NEGATIVE_INFINITY).halfValue()); in constructors()
581 assertEquals(POSITIVE_ZERO, new Half(POSITIVE_ZERO).halfValue()); in constructors()
582 assertEquals(NEGATIVE_ZERO, new Half(NEGATIVE_ZERO).halfValue()); in constructors()
583 assertEquals(NaN, new Half(NaN).halfValue()); in constructors()
584 assertEquals(toHalf(12.57f), new Half(toHalf(12.57f)).halfValue()); in constructors()
585 assertEquals(toHalf(-12.57f), new Half(toHalf(-12.57f)).halfValue()); in constructors()
587 assertEquals(POSITIVE_INFINITY, new Half(Float.POSITIVE_INFINITY).halfValue()); in constructors()
588 assertEquals(NEGATIVE_INFINITY, new Half(Float.NEGATIVE_INFINITY).halfValue()); in constructors()
589 assertEquals(POSITIVE_ZERO, new Half(0.0f).halfValue()); in constructors()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFloat16Utils.java315 short halfValue = (short) (halfExponent | halfMantissa); in convertDoubleToFloat16() local
316 return (isNegative) ? (short) (0x8000 | halfValue) : halfValue; in convertDoubleToFloat16()