Home
last modified time | relevance | path

Searched refs:Float32ToFloat16 (Results 1 – 16 of 16) sorted by relevance

/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp140 TEST(Math, Float32ToFloat16) { in TEST() argument
141 ASSERT_EQ(Float32ToFloat16(0.0f), 0x0000); in TEST()
142 ASSERT_EQ(Float32ToFloat16(-0.0f), 0x8000); in TEST()
144 ASSERT_EQ(Float32ToFloat16(INFINITY), 0x7C00); in TEST()
145 ASSERT_EQ(Float32ToFloat16(-INFINITY), 0xFC00); in TEST()
148 uint16_t nan16 = Float32ToFloat16(NAN); in TEST()
151 ASSERT_EQ(Float32ToFloat16(1.0f), 0x3C00); in TEST()
158 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(1.0f))); in TEST()
159 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(INFINITY))); in TEST()
160 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(-INFINITY))); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DMathTests.cpp224 TEST(Math, Float32ToFloat16) { in TEST() argument
225 ASSERT_EQ(Float32ToFloat16(0.0f), 0x0000); in TEST()
226 ASSERT_EQ(Float32ToFloat16(-0.0f), 0x8000); in TEST()
228 ASSERT_EQ(Float32ToFloat16(INFINITY), 0x7C00); in TEST()
229 ASSERT_EQ(Float32ToFloat16(-INFINITY), 0xFC00); in TEST()
232 uint16_t nan16 = Float32ToFloat16(NAN); in TEST()
235 ASSERT_EQ(Float32ToFloat16(1.0f), 0x3C00); in TEST()
242 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(1.0f))); in TEST()
243 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(INFINITY))); in TEST()
244 ASSERT_FALSE(IsFloat16NaN(Float32ToFloat16(-INFINITY))); in TEST()
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/end2end/
DShaderFloat16Tests.cpp44 uint16_t uniformData[] = {Float32ToFloat16(1.23), Float32ToFloat16(0.0)}; // 0.0 is a padding. in TEST_P()
48 uint16_t bufferInData[] = {Float32ToFloat16(2.34), Float32ToFloat16(0.0)}; // 0.0 is a padding. in TEST_P()
169 uint16_t expected[] = {Float32ToFloat16(3.57), Float32ToFloat16(0.0)}; // 0.0 is a padding. in TEST_P()
DVertexFormatTests.cpp30 std::vector<uint16_t> Float32ToFloat16(std::vector<float> data) { in Float32ToFloat16() function
33 expectedData.push_back(Float32ToFloat16(element)); in Float32ToFloat16()
696 Float32ToFloat16(std::vector<float>({14.8f, -0.0f, 22.5f, 1.3f, +0.0f, -24.8f})); in TEST_P()
705 std::vector<uint16_t> vertexData = Float32ToFloat16(std::vector<float>( in TEST_P()
DStorageTextureTests.cpp132 valuePtr[0] = Float32ToFloat16(static_cast<float_t>(pixelValue)); in FillExpectedData()
133 valuePtr[1] = Float32ToFloat16(-static_cast<float_t>(pixelValue)); in FillExpectedData()
134 valuePtr[2] = Float32ToFloat16(static_cast<float_t>(pixelValue * 2)); in FillExpectedData()
135 valuePtr[3] = Float32ToFloat16(-static_cast<float_t>(pixelValue * 2)); in FillExpectedData()
DVertexStateTests.cpp581 Data data{1.f, {2u, 3u}, {Float32ToFloat16(4.f), Float32ToFloat16(5.f)}}; in TEST_P()
DTextureFormatTests.cpp430 textureData.push_back(Float32ToFloat16(value)); in DoFloat16Test()
/third_party/flutter/skia/third_party/externals/dawn/src/common/
DMath.h53 uint16_t Float32ToFloat16(float fp32);
DMath.cpp84 uint16_t Float32ToFloat16(float fp32) { in Float32ToFloat16() function
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/
DVertexFormatTests.cpp30 std::vector<uint16_t> Float32ToFloat16(std::vector<float> data) { in Float32ToFloat16() function
33 expectedData.push_back(Float32ToFloat16(element)); in Float32ToFloat16()
689 Float32ToFloat16(std::vector<float>({14.8f, -0.0f, 22.5f, 1.3f, +0.0f, -24.8f})); in TEST_P()
695 std::vector<uint16_t> vertexData = Float32ToFloat16(std::vector<float>( in TEST_P()
DTextureFormatTests.cpp452 textureData.push_back(Float32ToFloat16(value)); in DoFloat16Test()
/third_party/skia/third_party/externals/dawn/src/common/
DMath.h88 uint16_t Float32ToFloat16(float fp32);
DMath.cpp101 uint16_t Float32ToFloat16(float fp32) { in Float32ToFloat16() function
/third_party/flutter/skia/third_party/externals/angle2/src/common/
Dmathutil_unittest.cpp352 TEST(MathUtilTest, Float32ToFloat16) in TEST() argument
/third_party/skia/third_party/externals/angle2/src/common/
Dmathutil_unittest.cpp368 TEST(MathUtilTest, Float32ToFloat16) in TEST() argument
/third_party/mindspore/patches/
D0017-support-build-training-lib.patch48 + "assembly/arm82_aarch32_fp16/Float32ToFloat16.S",