/third_party/flutter/skia/third_party/externals/dawn/src/tests/unittests/ |
D | MathTests.cpp | 140 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/ |
D | MathTests.cpp | 224 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/ |
D | ShaderFloat16Tests.cpp | 44 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()
|
D | VertexFormatTests.cpp | 30 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()
|
D | StorageTextureTests.cpp | 132 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()
|
D | VertexStateTests.cpp | 581 Data data{1.f, {2u, 3u}, {Float32ToFloat16(4.f), Float32ToFloat16(5.f)}}; in TEST_P()
|
D | TextureFormatTests.cpp | 430 textureData.push_back(Float32ToFloat16(value)); in DoFloat16Test()
|
/third_party/flutter/skia/third_party/externals/dawn/src/common/ |
D | Math.h | 53 uint16_t Float32ToFloat16(float fp32);
|
D | Math.cpp | 84 uint16_t Float32ToFloat16(float fp32) { in Float32ToFloat16() function
|
/third_party/flutter/skia/third_party/externals/dawn/src/tests/end2end/ |
D | VertexFormatTests.cpp | 30 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()
|
D | TextureFormatTests.cpp | 452 textureData.push_back(Float32ToFloat16(value)); in DoFloat16Test()
|
/third_party/skia/third_party/externals/dawn/src/common/ |
D | Math.h | 88 uint16_t Float32ToFloat16(float fp32);
|
D | Math.cpp | 101 uint16_t Float32ToFloat16(float fp32) { in Float32ToFloat16() function
|
/third_party/flutter/skia/third_party/externals/angle2/src/common/ |
D | mathutil_unittest.cpp | 352 TEST(MathUtilTest, Float32ToFloat16) in TEST() argument
|
/third_party/skia/third_party/externals/angle2/src/common/ |
D | mathutil_unittest.cpp | 368 TEST(MathUtilTest, Float32ToFloat16) in TEST() argument
|
/third_party/mindspore/patches/ |
D | 0017-support-build-training-lib.patch | 48 + "assembly/arm82_aarch32_fp16/Float32ToFloat16.S",
|