Home
last modified time | relevance | path

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

/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java37 private static void assertShortEquals(short a, short b) { in assertShortEquals() method in HalfTest
41 private static void assertShortEquals(int a, short b) { in assertShortEquals() method in HalfTest
48 assertShortEquals(POSITIVE_ZERO, toHalf(0.0f)); in singleToHalf()
49 assertShortEquals(NEGATIVE_ZERO, toHalf(-0.0f)); in singleToHalf()
50 assertShortEquals(NaN, toHalf(Float.NaN)); in singleToHalf()
51 assertShortEquals(POSITIVE_INFINITY, toHalf(Float.POSITIVE_INFINITY)); in singleToHalf()
52 assertShortEquals(NEGATIVE_INFINITY, toHalf(Float.NEGATIVE_INFINITY)); in singleToHalf()
54 assertShortEquals(0x3c01, toHalf(1.0009765625f)); in singleToHalf()
55 assertShortEquals(0xc000, toHalf(-2.0f)); in singleToHalf()
56 assertShortEquals(0x0400, toHalf(6.10352e-5f)); in singleToHalf()
[all …]