Home
last modified time | relevance | path

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

/external/angle/src/common/
Dmathutil_unittest.cpp370 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()
Dmathutil.h194 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/
Dcopyvertex.inc.h222 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/
DEGLIOSurfaceClientBufferTest.cpp616 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/
Dimageformats.cpp1308 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 …]
Dloadimage.cpp1631 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()
Dloadimage.inc107 dest[x] = gl::float32ToFloat16(source[x]);
Dloadimage_etc.cpp108 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/
DWebGLCompatibilityTest.cpp3584 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()
DVertexAttributeTest.cpp548 inputData[i] = gl::float32ToFloat16(expectedData[i]); in TEST_P()
576 inputData[i] = gl::float32ToFloat16(expectedData[i]); in TEST_P()