Home
last modified time | relevance | path

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

/third_party/glslang/gtests/
DHexFloat.cpp539 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/
Dhex_float_test.cpp541 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/
Dhex_float_test.cpp577 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/
Dhex_float_test.cpp577 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/
Dhex_float_test.cpp577 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/
Dhex_float.h371 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/
Dhex_float.h359 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/
Dhex_float.h403 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/
Dhex_float.h403 int_type unbiased_exponent = getUnbiasedNormalizedExponent();
405 for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {
/third_party/spirv-tools/source/util/
Dhex_float.h404 int_type unbiased_exponent = getUnbiasedNormalizedExponent();
406 for (int_type i = unbiased_exponent; i <= min_exponent; ++i) {