/third_party/glslang/gtests/ |
D | HexFloat.cpp | 539 int32_t unbiased_exponent(double f) { in unbiased_exponent() function 551 EXPECT_EQ(0, unbiased_exponent(ldexp(1.0f, 0))); in TEST() 552 EXPECT_EQ(-32, unbiased_exponent(ldexp(1.0f, -32))); in TEST() 553 EXPECT_EQ(42, unbiased_exponent(ldexp(1.0f, 42))); in TEST() 554 EXPECT_EQ(125, unbiased_exponent(ldexp(1.0f, 125))); in TEST() 556 EXPECT_EQ(128, unbiased_exponent(ldexp(1.0f, 256))); in TEST() 558 EXPECT_EQ(-100, unbiased_exponent(ldexp(1.0f, -100))); in TEST() 559 EXPECT_EQ(-127, unbiased_exponent(ldexp(1.0f, -127))); // First denorm in TEST() 560 EXPECT_EQ(-128, unbiased_exponent(ldexp(1.0f, -128))); in TEST() 561 EXPECT_EQ(-129, unbiased_exponent(ldexp(1.0f, -129))); in TEST() [all …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/ |
D | hex_float_test.cpp | 541 int32_t unbiased_exponent(double f) { in unbiased_exponent() function 553 EXPECT_EQ(0, unbiased_exponent(ldexp(1.0f, 0))); in TEST() 554 EXPECT_EQ(-32, unbiased_exponent(ldexp(1.0f, -32))); in TEST() 555 EXPECT_EQ(42, unbiased_exponent(ldexp(1.0f, 42))); in TEST() 556 EXPECT_EQ(125, unbiased_exponent(ldexp(1.0f, 125))); in TEST() 558 EXPECT_EQ(128, unbiased_exponent(ldexp(1.0f, 256))); in TEST() 560 EXPECT_EQ(-100, unbiased_exponent(ldexp(1.0f, -100))); in TEST() 561 EXPECT_EQ(-127, unbiased_exponent(ldexp(1.0f, -127))); // First denorm in TEST() 562 EXPECT_EQ(-128, unbiased_exponent(ldexp(1.0f, -128))); in TEST() 563 EXPECT_EQ(-129, unbiased_exponent(ldexp(1.0f, -129))); in TEST() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 577 int32_t unbiased_exponent(double f) { in unbiased_exponent() function 588 EXPECT_EQ(0, unbiased_exponent(ldexp(1.0f, 0))); in TEST() 589 EXPECT_EQ(-32, unbiased_exponent(ldexp(1.0f, -32))); in TEST() 590 EXPECT_EQ(42, unbiased_exponent(ldexp(1.0f, 42))); in TEST() 591 EXPECT_EQ(125, unbiased_exponent(ldexp(1.0f, 125))); in TEST() 597 EXPECT_EQ(-100, unbiased_exponent(ldexp(1.0f, -100))); in TEST() 598 EXPECT_EQ(-127, unbiased_exponent(ldexp(1.0f, -127))); // First denorm in TEST() 599 EXPECT_EQ(-128, unbiased_exponent(ldexp(1.0f, -128))); in TEST() 600 EXPECT_EQ(-129, unbiased_exponent(ldexp(1.0f, -129))); in TEST() 601 EXPECT_EQ(-140, unbiased_exponent(ldexp(1.0f, -140))); in TEST() [all …]
|
/third_party/spirv-tools/test/ |
D | hex_float_test.cpp | 577 int32_t unbiased_exponent(double f) { in unbiased_exponent() function 588 EXPECT_EQ(0, unbiased_exponent(ldexp(1.0f, 0))); in TEST() 589 EXPECT_EQ(-32, unbiased_exponent(ldexp(1.0f, -32))); in TEST() 590 EXPECT_EQ(42, unbiased_exponent(ldexp(1.0f, 42))); in TEST() 591 EXPECT_EQ(125, unbiased_exponent(ldexp(1.0f, 125))); in TEST() 597 EXPECT_EQ(-100, unbiased_exponent(ldexp(1.0f, -100))); in TEST() 598 EXPECT_EQ(-127, unbiased_exponent(ldexp(1.0f, -127))); // First denorm in TEST() 599 EXPECT_EQ(-128, unbiased_exponent(ldexp(1.0f, -128))); in TEST() 600 EXPECT_EQ(-129, unbiased_exponent(ldexp(1.0f, -129))); in TEST() 601 EXPECT_EQ(-140, unbiased_exponent(ldexp(1.0f, -140))); in TEST() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/ |
D | hex_float_test.cpp | 577 int32_t unbiased_exponent(double f) { in unbiased_exponent() function 588 EXPECT_EQ(0, unbiased_exponent(ldexp(1.0f, 0))); in TEST() 589 EXPECT_EQ(-32, unbiased_exponent(ldexp(1.0f, -32))); in TEST() 590 EXPECT_EQ(42, unbiased_exponent(ldexp(1.0f, 42))); in TEST() 591 EXPECT_EQ(125, unbiased_exponent(ldexp(1.0f, 125))); in TEST() 597 EXPECT_EQ(-100, unbiased_exponent(ldexp(1.0f, -100))); in TEST() 598 EXPECT_EQ(-127, unbiased_exponent(ldexp(1.0f, -127))); // First denorm in TEST() 599 EXPECT_EQ(-128, unbiased_exponent(ldexp(1.0f, -128))); in TEST() 600 EXPECT_EQ(-129, unbiased_exponent(ldexp(1.0f, -129))); in TEST() 601 EXPECT_EQ(-140, unbiased_exponent(ldexp(1.0f, -140))); in TEST() [all …]
|
/third_party/glslang/SPIRV/ |
D | hex_float.h | 371 int_type unbiased_exponent = getUnbiasedNormalizedExponent(); 373 for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/ |
D | hex_float.h | 359 int_type unbiased_exponent = getUnbiasedNormalizedExponent(); 361 for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/ |
D | hex_float.h | 403 int_type unbiased_exponent = getUnbiasedNormalizedExponent(); 405 for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {
|
/third_party/skia/third_party/externals/spirv-tools/source/util/ |
D | hex_float.h | 403 int_type unbiased_exponent = getUnbiasedNormalizedExponent(); 405 for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {
|
/third_party/spirv-tools/source/util/ |
D | hex_float.h | 404 int_type unbiased_exponent = getUnbiasedNormalizedExponent(); 406 for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {
|