Searched refs:convertDoubleToFloat16 (Results 1 – 3 of 3) sorted by relevance
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | FloatyUnitTest.java | 542 assertEquals(Float16Utils.convertDoubleToFloat16(0.), (short) 0x0); in testConvertDoubleToFloat16() 543 assertEquals(Float16Utils.convertDoubleToFloat16(Float16Utils.MIN_VALUE), (short) 0x0001); in testConvertDoubleToFloat16() 544 … assertEquals(Float16Utils.convertDoubleToFloat16(42 * Float16Utils.MIN_VALUE), (short) 0x002a); in testConvertDoubleToFloat16() 545 assertEquals(Float16Utils.convertDoubleToFloat16(Float16Utils.MIN_NORMAL), (short) 0x400); in testConvertDoubleToFloat16() 546 assertEquals(Float16Utils.convertDoubleToFloat16(42.), (short) 0x5140); in testConvertDoubleToFloat16() 547 assertEquals(Float16Utils.convertDoubleToFloat16(1024.), (short) 0x6400); in testConvertDoubleToFloat16() 548 assertEquals(Float16Utils.convertDoubleToFloat16(Double.POSITIVE_INFINITY), (short) 0x7c00); in testConvertDoubleToFloat16() 550 assertEquals(Float16Utils.convertDoubleToFloat16(-0.), (short) 0x8000); in testConvertDoubleToFloat16() 551 assertEquals(Float16Utils.convertDoubleToFloat16(-Float16Utils.MIN_VALUE), (short) 0x8001); in testConvertDoubleToFloat16() 552 … assertEquals(Float16Utils.convertDoubleToFloat16(-42 * Float16Utils.MIN_VALUE), (short) 0x802a); in testConvertDoubleToFloat16() [all …]
|
D | RSUtils.java | 191 short min = Float16Utils.convertDoubleToFloat16(minValueInHalf); in genRandomFloat16s() 192 short max = Float16Utils.convertDoubleToFloat16(maxValueInHalf); in genRandomFloat16s()
|
D | Float16Utils.java | 287 static short convertDoubleToFloat16(double value) { in convertDoubleToFloat16() method in Float16Utils
|