/third_party/spirv-tools/test/ |
D | hex_float_test.cpp | 117 {float(ldexp(1.0f, -126)), "0x1p-126"}, 118 {float(ldexp(-1.0f, -126)), "-0x1p-126"}, 121 {float(ldexp(1.0f, -127)), "0x1p-127"}, 122 {float(ldexp(1.0f, -127) / 2.0f), "0x1p-128"}, 123 {float(ldexp(1.0f, -127) / 4.0f), "0x1p-129"}, 124 {float(ldexp(1.0f, -127) / 8.0f), "0x1p-130"}, 125 {float(ldexp(-1.0f, -127)), "-0x1p-127"}, 126 {float(ldexp(-1.0f, -127) / 2.0f), "-0x1p-128"}, 127 {float(ldexp(-1.0f, -127) / 4.0f), "-0x1p-129"}, 128 {float(ldexp(-1.0f, -127) / 8.0f), "-0x1p-130"}, [all …]
|
/third_party/glslang/gtests/ |
D | HexFloat.cpp | 113 {float(ldexp(1.0f, -126)), "0x1p-126"}, 114 {float(ldexp(-1.0f, -126)), "-0x1p-126"}, 117 {float(ldexp(1.0f, -127)), "0x1p-127"}, 118 {float(ldexp(1.0f, -127) / 2.0f), "0x1p-128"}, 119 {float(ldexp(1.0f, -127) / 4.0f), "0x1p-129"}, 120 {float(ldexp(1.0f, -127) / 8.0f), "0x1p-130"}, 121 {float(ldexp(-1.0f, -127)), "-0x1p-127"}, 122 {float(ldexp(-1.0f, -127) / 2.0f), "-0x1p-128"}, 123 {float(ldexp(-1.0f, -127) / 4.0f), "-0x1p-129"}, 124 {float(ldexp(-1.0f, -127) / 8.0f), "-0x1p-130"}, [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
D | hex_float_test.cpp | 117 {float(ldexp(1.0f, -126)), "0x1p-126"}, 118 {float(ldexp(-1.0f, -126)), "-0x1p-126"}, 121 {float(ldexp(1.0f, -127)), "0x1p-127"}, 122 {float(ldexp(1.0f, -127) / 2.0f), "0x1p-128"}, 123 {float(ldexp(1.0f, -127) / 4.0f), "0x1p-129"}, 124 {float(ldexp(1.0f, -127) / 8.0f), "0x1p-130"}, 125 {float(ldexp(-1.0f, -127)), "-0x1p-127"}, 126 {float(ldexp(-1.0f, -127) / 2.0f), "-0x1p-128"}, 127 {float(ldexp(-1.0f, -127) / 4.0f), "-0x1p-129"}, 128 {float(ldexp(-1.0f, -127) / 8.0f), "-0x1p-130"}, [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/ |
D | hex_float_test.cpp | 117 {float(ldexp(1.0f, -126)), "0x1p-126"}, 118 {float(ldexp(-1.0f, -126)), "-0x1p-126"}, 121 {float(ldexp(1.0f, -127)), "0x1p-127"}, 122 {float(ldexp(1.0f, -127) / 2.0f), "0x1p-128"}, 123 {float(ldexp(1.0f, -127) / 4.0f), "0x1p-129"}, 124 {float(ldexp(1.0f, -127) / 8.0f), "0x1p-130"}, 125 {float(ldexp(-1.0f, -127)), "-0x1p-127"}, 126 {float(ldexp(-1.0f, -127) / 2.0f), "-0x1p-128"}, 127 {float(ldexp(-1.0f, -127) / 4.0f), "-0x1p-129"}, 128 {float(ldexp(-1.0f, -127) / 8.0f), "-0x1p-130"}, [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
D | charconv_test.cc | 178 EXPECT_EQ(ToDouble("5.e125"), ldexp(6653062250012735, 365)); in TEST() 179 EXPECT_EQ(ToDouble("69.e267"), ldexp(4705683757438170, 841)); in TEST() 180 EXPECT_EQ(ToDouble("999.e-026"), ldexp(6798841691080350, -129)); in TEST() 181 EXPECT_EQ(ToDouble("7861.e-034"), ldexp(8975675289889240, -153)); in TEST() 182 EXPECT_EQ(ToDouble("75569.e-254"), ldexp(6091718967192243, -880)); in TEST() 183 EXPECT_EQ(ToDouble("928609.e-261"), ldexp(7849264900213743, -900)); in TEST() 184 EXPECT_EQ(ToDouble("9210917.e080"), ldexp(8341110837370930, 236)); in TEST() 185 EXPECT_EQ(ToDouble("84863171.e114"), ldexp(4625202867375927, 353)); in TEST() 186 EXPECT_EQ(ToDouble("653777767.e273"), ldexp(5068902999763073, 884)); in TEST() 187 EXPECT_EQ(ToDouble("5232604057.e-298"), ldexp(5741343011915040, -1010)); in TEST() [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_const_literal_test.cc | 193 {"0x1p-124", std::ldexp(1.f * 8.f, -127)}, 194 {"0x1p-125", std::ldexp(1.f * 4.f, -127)}, 195 {"-0x1p-124", -std::ldexp(1.f * 8.f, -127)}, 196 {"-0x1p-125", -std::ldexp(1.f * 4.f, -127)}, 199 {"0x1p-126", std::ldexp(1.f * 2.f, -127)}, 200 {"-0x1p-126", -std::ldexp(1.f * 2.f, -127)}, 203 {"0x1p-127", std::ldexp(1.f, -127)}, 204 {"0x1p-128", std::ldexp(1.f / 2.f, -127)}, 205 {"0x1p-129", std::ldexp(1.f / 4.f, -127)}, 206 {"0x1p-130", std::ldexp(1.f / 8.f, -127)}, [all …]
|
/third_party/skia/tests/sksl/workarounds/ |
D | NegatedLdexpStandaloneSettings.glsl | 8 sk_FragColor.x = ldexp(m, -x); 9 sk_FragColor.y = ldexp(m, -(x + 1)); 10 sk_FragColor.z = ldexp(m, -x - 1);
|
D | NegatedLdexp.glsl | 8 sk_FragColor.x = ldexp(m, x * -1); 9 sk_FragColor.y = ldexp(m, (x + 1) * -1); 10 sk_FragColor.z = ldexp(m, -x - 1);
|
/third_party/skia/resources/sksl/workarounds/ |
D | NegatedLdexp.sksl | 9 sk_FragColor.r = half(ldexp(m, -x)); 10 sk_FragColor.g = half(ldexp(m, -(x + 1))); 11 sk_FragColor.b = half(ldexp(m, -x - 1));
|
/third_party/skia/tests/ |
D | WangsFormulaTest.cpp | 89 m.setScaleX(std::ldexp(1 + rand->nextF(), i)); in for_random_matrices() 92 m.setScaleY(std::ldexp(1 + rand->nextF(), j)); in for_random_matrices() 95 m.setScaleX(std::ldexp(1 + rand->nextF(), i)); in for_random_matrices() 96 m.setSkewX(std::ldexp(1 + rand->nextF(), (j + i) / 2)); in for_random_matrices() 97 m.setSkewY(std::ldexp(1 + rand->nextF(), (j + i) / 2)); in for_random_matrices() 98 m.setScaleY(std::ldexp(1 + rand->nextF(), j)); in for_random_matrices() 111 pts[j].set(std::ldexp(1 + rand->nextF(), i), std::ldexp(1 + rand->nextF(), i)); in for_random_beziers() 197 float epsilon = std::ldexp(SK_ScalarNearlyZero, level * 2); in DEF_TEST() 205 float x = std::ldexp(1, level * 2) / k; in DEF_TEST() 224 float x = std::ldexp(1, level * 2) / k; in DEF_TEST() [all …]
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/ |
D | ldexp.glsl | 3 ; FUNC-LABEL: {{^}}@ldexp: 10 #shader fs ldexp 15 gl_FragColor.x = ldexp(f, i);
|
/third_party/musl/src/math/i386/ |
D | scalbn.s | 1 .global ldexp symbol 2 .type ldexp,@function 3 ldexp: label
|
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/ |
D | int128.cc | 103 v < std::ldexp(static_cast<T>(1), 128))); in MakeUint128FromFloat() 105 if (v >= std::ldexp(static_cast<T>(1), 64)) { in MakeUint128FromFloat() 106 uint64_t hi = static_cast<uint64_t>(std::ldexp(v, -64)); in MakeUint128FromFloat() 107 uint64_t lo = static_cast<uint64_t>(v - std::ldexp(static_cast<T>(hi), 64)); in MakeUint128FromFloat() 123 assert(std::isfinite(v) && v > -1 && v < std::ldexp(1.0L, 128)); in MakeUint128FromFloat() 125 v = std::ldexp(v, -100); in MakeUint128FromFloat() 127 v = std::ldexp(v - static_cast<double>(w0), 50); in MakeUint128FromFloat() 129 v = std::ldexp(v - static_cast<double>(w1), 50); in MakeUint128FromFloat() 244 (v >= -std::ldexp(static_cast<T>(1), 127) && in MakeInt128FromFloat() 245 v < std::ldexp(static_cast<T>(1), 127)))); in MakeInt128FromFloat()
|
/third_party/skia/third_party/externals/tint/test/intrinsics/gen/ldexp/ |
D | db8b49.wgsl.expected.glsl | 5 float res = ldexp(1.0f, 1); 35 float res = ldexp(1.0f, 1); 55 float res = ldexp(1.0f, 1);
|
D | cc9cde.wgsl.expected.glsl | 5 vec4 res = ldexp(vec4(0.0f, 0.0f, 0.0f, 0.0f), ivec4(0, 0, 0, 0)); 35 vec4 res = ldexp(vec4(0.0f, 0.0f, 0.0f, 0.0f), ivec4(0, 0, 0, 0)); 55 vec4 res = ldexp(vec4(0.0f, 0.0f, 0.0f, 0.0f), ivec4(0, 0, 0, 0));
|
D | a31cdc.wgsl.expected.glsl | 5 vec3 res = ldexp(vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0)); 35 vec3 res = ldexp(vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0)); 55 vec3 res = ldexp(vec3(0.0f, 0.0f, 0.0f), ivec3(0, 0, 0));
|
D | abd718.wgsl.expected.glsl | 5 vec2 res = ldexp(vec2(0.0f, 0.0f), ivec2(0, 0)); 35 vec2 res = ldexp(vec2(0.0f, 0.0f), ivec2(0, 0)); 55 vec2 res = ldexp(vec2(0.0f, 0.0f), ivec2(0, 0));
|
D | db8b49.wgsl | 26 // fn ldexp(f32, i32) -> f32 28 var res: f32 = ldexp(1.0, 1);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
D | pow10_helper_test.cc | 112 std::ldexp(test_case.significand, test_case.radix)) in TEST() 115 std::ldexp(test_case.significand, test_case.radix)); in TEST()
|
/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/ |
D | math_ldexp_test.cpp | 24 …bool testResult = DoubleUlpCmp(g_ldexpData[i].expected, ldexp(g_ldexpData[i].input1, g_ldexpData[i… 36 EXPECT_DOUBLE_EQ(24.0, ldexp(3.0, 3));
|
/third_party/skia/third_party/externals/tint/test/vk-gl-cts/graphicsfuzz/loop-nested-ifs/ |
D | 0-opt.wgsl | 23 x_GLF_color.x = ldexp(1.0, 2); 25 a = ldexp(1.0, 2);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/ |
D | vktSpvAsmUtils.cpp | 489 float64.push_back(ldexp((double)1.f, -1023)); in getFloat64s() 490 float64.push_back(-ldexp((double)1.f, -1023)); in getFloat64s() 493 float64.push_back(ldexp((double)1.f, -100)); in getFloat64s() 494 float64.push_back(-ldexp((double)1.f, -100)); in getFloat64s() 500 float64.push_back(ldexp((double)1.f, -14)); // 2e-14: minimum 16-bit positive normalized in getFloat64s() 501 float64.push_back(-ldexp((double)1.f, -14)); // 2e-14: maximum 16-bit negative normalized in getFloat64s() 512 float64.push_back(ldexp((double)1.f, 100)); in getFloat64s() 513 float64.push_back(-ldexp((double)1.f, 100)); in getFloat64s()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/ |
D | func_common.inl | 797 GLM_FUNC_QUALIFIER genType ldexp(genType const & x, int const & exp) function 799 …GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559 || GLM_UNRESTRICTED_GENTYPE, "'ldexp' on… 801 return std::ldexp(x, exp); 805 GLM_FUNC_QUALIFIER tvec1<T, P> ldexp(tvec1<T, P> const & x, tvec1<int, P> const & exp) function 807 …GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559 || GLM_UNRESTRICTED_GENTYPE, "'ldexp' only acc… 810 ldexp(x.x, exp.x)); 814 GLM_FUNC_QUALIFIER tvec2<T, P> ldexp(tvec2<T, P> const & x, tvec2<int, P> const & exp) function 816 …GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559 || GLM_UNRESTRICTED_GENTYPE, "'ldexp' only acc… 819 ldexp(x.x, exp.x), 820 ldexp(x.y, exp.y)); [all …]
|
/third_party/python/Lib/test/ |
D | test_math.py | 620 mant, exp = int(math.ldexp(mant, mant_dig)), exp - mant_dig 636 return math.ldexp(tmant, texp) 1080 self.assertRaises(TypeError, math.ldexp) 1081 self.ftest('ldexp(0,1)', math.ldexp(0,1), 0) 1082 self.ftest('ldexp(1,1)', math.ldexp(1,1), 2) 1083 self.ftest('ldexp(1,-1)', math.ldexp(1,-1), 0.5) 1084 self.ftest('ldexp(-1,1)', math.ldexp(-1,1), -2) 1085 self.assertRaises(OverflowError, math.ldexp, 1., 1000000) 1086 self.assertRaises(OverflowError, math.ldexp, -1., 1000000) 1087 self.assertEqual(math.ldexp(1., -1000000), 0.) [all …]
|
/third_party/skia/bench/ |
D | TessellateBench.cpp | 50 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_cubic_path() 62 const float x = std::ldexp(rand.nextF(), (i % 18)) / 1e3f; in make_conic_path() 63 const float w = std::ldexp(1 + rand.nextF(), j); in make_conic_path() 74 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_quad_path() 84 float x = std::ldexp(rand.nextF(), (i % maxPow2)) / 1e3f; in make_line_path()
|