Searched refs:trunc (Results 1 – 3 of 3) sorted by relevance
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | FP16Test.java | 251 assertEquals(POSITIVE_INFINITY, FP16.trunc(POSITIVE_INFINITY)); in testTrunc() 252 assertEquals(NEGATIVE_INFINITY, FP16.trunc(NEGATIVE_INFINITY)); in testTrunc() 253 assertEquals(POSITIVE_ZERO, FP16.trunc(POSITIVE_ZERO)); in testTrunc() 254 assertEquals(NEGATIVE_ZERO, FP16.trunc(NEGATIVE_ZERO)); in testTrunc() 255 assertEquals(NaN, FP16.trunc(NaN)); in testTrunc() 256 assertEquals(LOWEST_VALUE, FP16.trunc(LOWEST_VALUE)); in testTrunc() 257 assertEquals(POSITIVE_ZERO, FP16.trunc(toHalf(0.2f))); in testTrunc() 258 assertEquals(NEGATIVE_ZERO, FP16.trunc(toHalf(-0.2f))); in testTrunc() 259 assertEquals(0.0f, toFloat(FP16.trunc(toHalf(0.7f))), 0.0f); in testTrunc() 260 assertEquals(-0.0f, toFloat(FP16.trunc(toHalf(-0.7f))), 0.0f); in testTrunc() [all …]
|
/libcore/luni/src/main/java/libcore/util/ |
D | FP16.java | 442 public static short trunc(short h) { in trunc() method in FP16
|
/libcore/api/ |
D | module-lib-current.txt | 728 method public static short trunc(short);
|