Searched refs:float32ToFloat16 (Results 1 – 10 of 10) sorted by relevance
/external/angle/src/common/ |
D | mathutil_unittest.cpp | 370 ASSERT_EQ(float32ToFloat16(0.0f), 0x0000); in TEST() 371 ASSERT_EQ(float32ToFloat16(-0.0f), 0x8000); in TEST() 375 ASSERT_EQ(float32ToFloat16(inf), 0x7C00); in TEST() 376 ASSERT_EQ(float32ToFloat16(-inf), 0xFC00); in TEST() 380 uint16_t nan16 = float32ToFloat16(nan); in TEST() 383 ASSERT_EQ(float32ToFloat16(1.0f), 0x3C00); in TEST()
|
D | mathutil.h | 194 inline unsigned short float32ToFloat16(float fp32) in float32ToFloat16() function 658 return float32ToFloat16((float16ToFloat32(a) + float16ToFloat32(b)) * 0.5f); in averageHalfFloat() 927 uint16_t leastSignificantBits = static_cast<uint16_t>(float32ToFloat16(f1)); in packHalf2x16() 928 uint16_t mostSignificantBits = static_cast<uint16_t>(float32ToFloat16(f2)); in packHalf2x16()
|
/external/angle/src/libANGLE/renderer/ |
D | copyvertex.inc.h | 222 offsetOutput[j] = gl::float32ToFloat16(result); in CopyToFloatVertexData() 252 const unsigned short kZero = gl::float32ToFloat16(0.0f); in Copy32FTo16FVertexData() 253 const unsigned short kOne = gl::float32ToFloat16(1.0f); in Copy32FTo16FVertexData() 263 offsetOutput[j] = gl::float32ToFloat16(offsetInput[j]); in Copy32FTo16FVertexData() 348 *reinterpret_cast<GLhalf *>(output) = gl::float32ToFloat16(finalValue); in CopyPackedRGB() 443 *reinterpret_cast<GLhalf *>(output) = gl::float32ToFloat16(finalValue); in CopyPackedAlpha()
|
/external/angle/src/tests/egl_tests/ |
D | EGLIOSurfaceClientBufferTest.cpp | 616 gl::float32ToFloat16(1.0f / 255.0f), gl::float32ToFloat16(2.0f / 255.0f), in TEST_P() 617 gl::float32ToFloat16(3.0f / 255.0f), gl::float32ToFloat16(4.0f / 255.0f)}; in TEST_P() 632 gl::float32ToFloat16(1.0f / 255.0f), gl::float32ToFloat16(2.0f / 255.0f), in TEST_P() 633 gl::float32ToFloat16(3.0f / 255.0f), gl::float32ToFloat16(4.0f / 255.0f)}; in TEST_P()
|
/external/angle/src/image_util/ |
D | imageformats.cpp | 1308 dst->R = gl::float32ToFloat16(src->red); in writeColor() 1309 dst->G = gl::float32ToFloat16(src->green); in writeColor() 1310 dst->B = gl::float32ToFloat16(src->blue); in writeColor() 1311 dst->A = gl::float32ToFloat16(src->alpha); in writeColor() 1334 dst->R = gl::float32ToFloat16(src->red); in writeColor() 1335 dst->G = gl::float32ToFloat16(src->green); in writeColor() 1336 dst->B = gl::float32ToFloat16(src->blue); in writeColor() 1337 dst->A = gl::float32ToFloat16(src->alpha); in writeColor() 1360 dst->R = gl::float32ToFloat16(src->red); in writeColor() 1378 dst->A = gl::float32ToFloat16(src->alpha); in writeColor() [all …]
|
D | loadimage.cpp | 1631 dest[x * 4 + 0] = gl::float32ToFloat16(source[x * 3 + 0]); in LoadRGB32FToRGBA16F() 1632 dest[x * 4 + 1] = gl::float32ToFloat16(source[x * 3 + 1]); in LoadRGB32FToRGBA16F() 1633 dest[x * 4 + 2] = gl::float32ToFloat16(source[x * 3 + 2]); in LoadRGB32FToRGBA16F() 1660 dest[x * 3 + 0] = gl::float32ToFloat16(source[x * 3 + 0]); in LoadRGB32FToRGB16F() 1661 dest[x * 3 + 1] = gl::float32ToFloat16(source[x * 3 + 1]); in LoadRGB32FToRGB16F() 1662 dest[x * 3 + 2] = gl::float32ToFloat16(source[x * 3 + 2]); in LoadRGB32FToRGB16F()
|
D | loadimage.inc | 107 dest[x] = gl::float32ToFloat16(source[x]);
|
D | loadimage_etc.cpp | 108 isFloat ? gl::float32ToFloat16(float(gl::normalize(tempPixel))) : tempPixel; in decodeAsSingleEACChannel() 115 isFloat ? gl::float32ToFloat16(float(gl::normalize(tempPixel))) : tempPixel; in decodeAsSingleEACChannel()
|
/external/angle/src/tests/gl_tests/ |
D | WebGLCompatibilityTest.cpp | 3584 gl::float32ToFloat16(readPixelsData[0]), gl::float32ToFloat16(readPixelsData[1]), in TEST_P() 3585 gl::float32ToFloat16(readPixelsData[2]), gl::float32ToFloat16(readPixelsData[3])}; in TEST_P() 3644 gl::float32ToFloat16(readPixelsData[0]), gl::float32ToFloat16(readPixelsData[1]), in TEST_P() 3645 gl::float32ToFloat16(readPixelsData[2]), gl::float32ToFloat16(readPixelsData[3])}; in TEST_P() 3706 gl::float32ToFloat16(readPixelsData[0]), gl::float32ToFloat16(readPixelsData[1]), in TEST_P() 3707 gl::float32ToFloat16(readPixelsData[2]), gl::float32ToFloat16(readPixelsData[3])}; in TEST_P() 3768 gl::float32ToFloat16(readPixelsData[0]), gl::float32ToFloat16(readPixelsData[1]), in TEST_P() 3769 gl::float32ToFloat16(readPixelsData[2]), gl::float32ToFloat16(readPixelsData[3])}; in TEST_P()
|
D | VertexAttributeTest.cpp | 548 inputData[i] = gl::float32ToFloat16(expectedData[i]); in TEST_P() 576 inputData[i] = gl::float32ToFloat16(expectedData[i]); in TEST_P()
|