/third_party/python/Lib/test/ |
D | math_testcases.txt | 522 -- log2: log to base 2 -- 526 log20000 log2 0.0 -> -inf divide-by-zero 527 log20001 log2 -0.0 -> -inf divide-by-zero 528 log20002 log2 inf -> inf 529 log20003 log2 -inf -> nan invalid 530 log20004 log2 nan -> nan 533 log20010 log2 1.0 -> 0.0 536 log20020 log2 -5e-324 -> nan invalid 537 log20021 log2 -1.0 -> nan invalid 538 log20022 log2 -1.7e-308 -> nan invalid [all …]
|
/third_party/optimized-routines/math/test/testcases/directed/ |
D | log2.tst | 1 ; Directed test cases for log2 6 func=log2 op1=7ff80000.00000001 result=7ff80000.00000001 errno=0 7 func=log2 op1=fff80000.00000001 result=7ff80000.00000001 errno=0 8 func=log2 op1=7ff00000.00000001 result=7ff80000.00000001 errno=0 status=i 9 func=log2 op1=fff00000.00000001 result=7ff80000.00000001 errno=0 status=i 10 func=log2 op1=7ff00000.00000000 result=7ff00000.00000000 errno=0 11 func=log2 op1=fff00000.00000000 result=7ff80000.00000001 errno=EDOM status=i 12 func=log2 op1=7fefffff.ffffffff result=408fffff.ffffffff.ffa errno=0 13 func=log2 op1=ffefffff.ffffffff result=7ff80000.00000001 errno=EDOM status=i 14 func=log2 op1=3ff00000.00000000 result=00000000.00000000 errno=0 [all …]
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | math-log2.js | 18 assert(isNaN(Math.log2(NaN))); 19 assert(isNaN(Math.log2(-42))); 20 assert(isNaN(Math.log2(-3.0))); 21 assert(Math.log2(n_zero) === Number.NEGATIVE_INFINITY); 22 assert(Math.log2(p_zero) === Number.NEGATIVE_INFINITY); 23 assert(Math.log2(1) === p_zero); 24 assert(Math.log2(Number.POSITIVE_INFINITY) === Number.POSITIVE_INFINITY); 25 assert(Math.log2(2.0) === 1); 26 assert(Math.log2(4.0) === 2) 27 assert(Math.log2(1024.0) === 10)
|
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/math/ |
D | FontMathTest.java | 8 assertEquals(-1, FontMath.log2(0)); in testLog2() 9 assertEquals(0, FontMath.log2(1)); in testLog2() 10 assertEquals(1, FontMath.log2(2)); in testLog2() 11 assertEquals(1, FontMath.log2(3)); in testLog2() 12 assertEquals(2, FontMath.log2(4)); in testLog2() 13 assertEquals(4, FontMath.log2(31)); in testLog2() 14 assertEquals(5, FontMath.log2(32)); in testLog2() 15 assertEquals(31, FontMath.log2(-1)); in testLog2()
|
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/math/ |
D | FontMathTest.java | 8 assertEquals(-1, FontMath.log2(0)); in testLog2() 9 assertEquals(0, FontMath.log2(1)); in testLog2() 10 assertEquals(1, FontMath.log2(2)); in testLog2() 11 assertEquals(1, FontMath.log2(3)); in testLog2() 12 assertEquals(2, FontMath.log2(4)); in testLog2() 13 assertEquals(4, FontMath.log2(31)); in testLog2() 14 assertEquals(5, FontMath.log2(32)); in testLog2() 15 assertEquals(31, FontMath.log2(-1)); in testLog2()
|
/third_party/skia/resources/sksl/intrinsics/ |
D | Log2.sksl | 6 return (log2(inputVal.x) == expected.x && 7 log2(inputVal.xy) == expected.xy && 8 log2(inputVal.xyz) == expected.xyz && 9 log2(inputVal.xyzw) == expected.xyzw && 10 log2(constVal.x) == expected.x && 11 log2(constVal.xy) == expected.xy && 12 log2(constVal.xyz) == expected.xyz && 13 log2(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
/third_party/ninja/src/ |
D | build_log_test.cc | 58 BuildLog log2; in TEST_F() local 59 EXPECT_TRUE(log2.Load(kTestFilename, &err)); in TEST_F() 63 ASSERT_EQ(2u, log2.entries().size()); in TEST_F() 66 BuildLog::LogEntry* e2 = log2.LookupByOutput("out"); in TEST_F() 142 BuildLog log2; in TEST_F() local 144 EXPECT_TRUE(log2.OpenForWrite(kTestFilename, *this, &err)); in TEST_F() 146 log2.RecordCommand(state_.edges_[0], 15, 18); in TEST_F() 147 log2.RecordCommand(state_.edges_[1], 20, 25); in TEST_F() 148 log2.Close(); in TEST_F() 337 BuildLog log2; in TEST_F() local [all …]
|
/third_party/boost/boost/heap/detail/ |
D | ilog2.hpp | 19 struct log2 struct 32 struct log2<unsigned int> struct 41 struct log2<unsigned long> struct 55 IntType log2(IntType value) in log2() function 57 detail::log2<IntType> fn; in log2()
|
/third_party/boost/libs/sort/ |
D | tune.pl | 27 $log2 = "> .tunelog 2>&1"; 158 system("del spread_sort_out.txt $log2"); 159 system("del standard_sort_out.txt $log2"); 160 system("del input.txt $log2"); 161 system("del *.rsp $log2"); 162 system("del *.manifest $log2"); 163 system("del time.txt $log2"); 165 system("rm -f time.txt $log2"); 166 system("rm -f spread_sort_out.txt $log2"); 167 system("rm -f standard_sort_out.txt $log2"); [all …]
|
/third_party/boost/libs/math/example/daubechies_wavelets/ |
D | regress_daubechies_accuracy.cpp | 66 matched_holder.push_back(std::log2(v[1])); in main() 67 linear.push_back(std::log2(v[2])); in main() 68 quadratic_b_spline.push_back(std::log2(v[3])); in main() 69 cubic_b_spline.push_back(std::log2(v[4])); in main() 70 quintic_b_spline.push_back(std::log2(v[5])); in main() 71 cubic_hermite.push_back(std::log2(v[6])); in main() 72 pchip.push_back(std::log2(v[7])); in main() 73 makima.push_back(std::log2(v[8])); in main() 74 fotaylor.push_back(std::log2(v[9])); in main() 76 quintic_hermite.push_back(std::log2(v[10])); in main() [all …]
|
/third_party/skia/tests/sksl/intrinsics/ |
D | Log2.glsl | 8 …return ((((((log2(inputVal.x) == expected.x && log2(inputVal.xy) == expected.xy) && log2(inputVal.…
|
D | Log2.metal | 18 …log2(_uniforms.inputVal.x) == _uniforms.expected.x && all(log2(_uniforms.inputVal.xy) == _uniforms…
|
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders/tesc/ |
D | water_tess.tesc | 51 …float _729 = clamp(log2((length(_41.uCamPos - vec3(_710.x, 0.0, _710.y)) + 9.999999747378751635551… 54 …float _787 = clamp(log2((length(_41.uCamPos - vec3(_768.x, 0.0, _768.y)) + 9.999999747378751635551… 56 …float _816 = clamp(log2((length(_41.uCamPos - vec3(_797.x, 0.0, _797.y)) + 9.999999747378751635551… 58 …float _845 = clamp(log2((length(_41.uCamPos - vec3(_826.x, 0.0, _826.y)) + 9.999999747378751635551… 61 …float _903 = clamp(log2((length(_41.uCamPos - vec3(_884.x, 0.0, _884.y)) + 9.999999747378751635551… 63 …float _614 = dot(vec4(_787, _816, clamp(log2((length(_41.uCamPos - vec3(_855.x, 0.0, _855.y)) + 9.… 64 …float _620 = dot(vec4(clamp(log2((length(_41.uCamPos - vec3(_681.x, 0.0, _681.y)) + 9.999999747378… 65 …float _626 = dot(vec4(_729, clamp(log2((length(_41.uCamPos - vec3(_739.x, 0.0, _739.y)) + 9.999999… 66 …float _632 = dot(vec4(_816, _845, _903, clamp(log2((length(_41.uCamPos - vec3(_913.x, 0.0, _913.y)…
|
/third_party/musl/src/math/i386/ |
D | log2.s | 1 .global log2 symbol 2 .type log2,@function 3 log2: label
|
/third_party/skia/third_party/externals/spirv-cross/reference/opt/shaders-msl/tesc/ |
D | water_tess.multi-patch.tesc | 63 …float _729 = fast::clamp(log2((length(_41.uCamPos - float3(_710.x, 0.0, _710.y)) + 9.9999997473787… 66 …float _787 = fast::clamp(log2((length(_41.uCamPos - float3(_768.x, 0.0, _768.y)) + 9.9999997473787… 68 …float _816 = fast::clamp(log2((length(_41.uCamPos - float3(_797.x, 0.0, _797.y)) + 9.9999997473787… 70 …float _845 = fast::clamp(log2((length(_41.uCamPos - float3(_826.x, 0.0, _826.y)) + 9.9999997473787… 73 …float _903 = fast::clamp(log2((length(_41.uCamPos - float3(_884.x, 0.0, _884.y)) + 9.9999997473787… 75 …float _614 = dot(float4(_787, _816, fast::clamp(log2((length(_41.uCamPos - float3(_855.x, 0.0, _85… 76 …float _620 = dot(float4(fast::clamp(log2((length(_41.uCamPos - float3(_681.x, 0.0, _681.y)) + 9.99… 77 …float _626 = dot(float4(_729, fast::clamp(log2((length(_41.uCamPos - float3(_739.x, 0.0, _739.y)) … 78 …float _632 = dot(float4(_816, _845, _903, fast::clamp(log2((length(_41.uCamPos - float3(_913.x, 0.…
|
D | water_tess.tesc | 65 …float _729 = fast::clamp(log2((length(_41.uCamPos - float3(_710.x, 0.0, _710.y)) + 9.9999997473787… 68 …float _787 = fast::clamp(log2((length(_41.uCamPos - float3(_768.x, 0.0, _768.y)) + 9.9999997473787… 70 …float _816 = fast::clamp(log2((length(_41.uCamPos - float3(_797.x, 0.0, _797.y)) + 9.9999997473787… 72 …float _845 = fast::clamp(log2((length(_41.uCamPos - float3(_826.x, 0.0, _826.y)) + 9.9999997473787… 75 …float _903 = fast::clamp(log2((length(_41.uCamPos - float3(_884.x, 0.0, _884.y)) + 9.9999997473787… 77 …float _614 = dot(float4(_787, _816, fast::clamp(log2((length(_41.uCamPos - float3(_855.x, 0.0, _85… 78 …float _620 = dot(float4(fast::clamp(log2((length(_41.uCamPos - float3(_681.x, 0.0, _681.y)) + 9.99… 79 …float _626 = dot(float4(_729, fast::clamp(log2((length(_41.uCamPos - float3(_739.x, 0.0, _739.y)) … 80 …float _632 = dot(float4(_816, _845, _903, fast::clamp(log2((length(_41.uCamPos - float3(_913.x, 0.…
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/ |
D | log2.glsl | 3 ; FUNC-LABEL: {{^}}@log2: 9 #shader fs log2 13 gl_FragColor.x = log2(f);
|
/third_party/ffmpeg/libavcodec/ |
D | snow.h | 564 static inline void put_symbol2(RangeCoder *c, uint8_t *state, int v, int log2){ in put_symbol2() argument 566 int r= log2>=0 ? 1<<log2 : 1; in put_symbol2() 569 av_assert2(log2>=-4); in put_symbol2() 572 put_rac(c, state+4+log2, 1); in put_symbol2() 574 log2++; in put_symbol2() 575 if(log2>0) r+=r; in put_symbol2() 577 put_rac(c, state+4+log2, 0); in put_symbol2() 579 for(i=log2-1; i>=0; i--){ in put_symbol2() 584 static inline int get_symbol2(RangeCoder *c, uint8_t *state, int log2){ in get_symbol2() argument 586 int r= log2>=0 ? 1<<log2 : 1; in get_symbol2() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/random/internal/ |
D | fastmath_test.cc | 41 EXPECT_LT(IntLog2Floor(~kZero), static_cast<int>(std::log2(~kZero))); in TEST() 46 EXPECT_EQ(i, static_cast<int>(std::log2(i_pow_2))); in TEST() 67 EXPECT_LE(IntLog2Ceil(~kZero), static_cast<int>(std::log2(~kZero))); in TEST() 73 EXPECT_EQ(i, static_cast<int>(std::ceil(std::log2(i_pow_2)))); in TEST()
|
/third_party/abseil-cpp/absl/random/internal/ |
D | fastmath_test.cc | 54 EXPECT_LT(IntLog2Floor(~kZero), static_cast<int>(std::log2(~kZero))); in TEST() 59 EXPECT_EQ(i, static_cast<int>(std::log2(i_pow_2))); in TEST() 80 EXPECT_LE(IntLog2Ceil(~kZero), static_cast<int>(std::log2(~kZero))); in TEST() 86 EXPECT_EQ(i, static_cast<int>(std::ceil(std::log2(i_pow_2)))); in TEST()
|
/third_party/boost/boost/intrusive/detail/ |
D | math.hpp | 78 unsigned long log2; in floor_log2() local 79 BOOST_INTRUSIVE_BSR_INTRINSIC( &log2, (unsigned long)x ); in floor_log2() 80 return log2; in floor_log2() 138 std::size_t log2 = 0; 145 log2 += shift, n = tmp; 150 return log2;
|
/third_party/optimized-routines/math/tools/ |
D | log2.sollya | 1 // polynomial for approximating log2(1+x) 7 // |log2(1+x)| > 0x1p-4 outside the interval 15 // find log2(1+x)/x polynomial with minimal relative error 16 // (minimal relative error polynomial for log2(1+x) is the same * x)
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/ |
D | func_exponential.inl | 14 using std::log2; 17 genType log2(genType Value) 28 return detail::functor1<T, T, P, vecType>::call(log2, vec); 106 // log2, ln2 = 0.69314718055994530941723212145818f 108 GLM_FUNC_QUALIFIER genType log2(genType x) function 110 return log2(tvec1<genType>(x)).x; 114 GLM_FUNC_QUALIFIER vecType<T, P> log2(vecType<T, P> const & x) function
|
/third_party/boost/boost/interprocess/detail/ |
D | math_functions.hpp | 103 std::size_t log2 = 0; in floor_log2() local 108 log2 += shift, n = tmp; in floor_log2() 111 return log2; in floor_log2()
|
/third_party/skia/third_party/externals/tint/test/intrinsics/gen/log2/ |
D | 4036ed.wgsl.expected.glsl | 5 float res = log2(1.0f); 35 float res = log2(1.0f); 55 float res = log2(1.0f);
|