Searched refs:toHalf (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | FP16Test.java | 32 assertEquals(POSITIVE_ZERO, toHalf(0.0f)); in testSingleToHalf() 33 assertEquals(NEGATIVE_ZERO, toHalf(-0.0f)); in testSingleToHalf() 34 assertEquals(NaN, toHalf(Float.NaN)); in testSingleToHalf() 35 assertEquals(POSITIVE_INFINITY, toHalf(Float.POSITIVE_INFINITY)); in testSingleToHalf() 36 assertEquals(NEGATIVE_INFINITY, toHalf(Float.NEGATIVE_INFINITY)); in testSingleToHalf() 38 assertEquals((short) 0x3c01, toHalf(1.0009765625f)); in testSingleToHalf() 39 assertEquals((short) 0xc000, toHalf(-2.0f)); in testSingleToHalf() 40 assertEquals((short) 0x0400, toHalf(6.10352e-5f)); in testSingleToHalf() 41 assertEquals((short) 0x7bff, toHalf(65504.0f)); in testSingleToHalf() 42 assertEquals((short) 0x3555, toHalf(1.0f / 3.0f)); in testSingleToHalf() [all …]
|
/libcore/luni/src/main/java/libcore/util/ |
D | FP16.java | 633 public static short toHalf(float f) { in toHalf() method in FP16
|
/libcore/mmodules/core_platform_api/api/legacy_platform/ |
D | current-api.txt | 1054 method public static short toHalf(float);
|