Home
last modified time | relevance | path

Searched refs:pow2 (Results 1 – 25 of 51) sorted by relevance

123

/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dgradient_paint.inl17 T Radius2 = pow2(Radius);
18 T Fx2 = pow2(F.x);
19 T Fy2 = pow2(F.y);
21 …T Numerator = (D.x * F.x + D.y * F.y) + sqrt(Radius2 * (pow2(D.x) + pow2(D.y)) - pow2(D.x * F.y - …
Dspline.inl17 typename genType::value_type s2 = pow2(s);
40 typename genType::value_type s2 = pow2(s);
Doptimum_pow.hpp32 GLM_FUNC_DECL genType pow2(genType const & x);
Doptimum_pow.inl7 GLM_FUNC_QUALIFIER genType pow2(genType const & x) function
/third_party/glib/glib/gnulib/
Dprintf-frexp.c90 DOUBLE pow2[64]; /* pow2[i] = 2^2^i */ in FUNC() local
116 pow2[i] = pow2_i; in FUNC()
143 pow2[i] = pow2_i; in FUNC()
159 x *= pow2[i]; in FUNC()
175 if (x >= pow2[i]) in FUNC()
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/mini_c_samples/
D1.mini3 int pow2(n)
17 return pow2(10);
/third_party/boost/libs/spirit/example/qi/compiler_tutorial/conjure_samples/
Dpow2.cnj3 int pow2(n)
17 return pow2(10);
/third_party/python/Lib/test/
Dtest_pow.py17 pow2 = 1
19 self.assertEqual(pow(2, i), pow2)
20 if i != 30 : pow2 = pow2*2
Dtest_time.py781 for pow2 in (0, 5, 10, 15, 22, 23, 24, 30, 33):
782 ns = (2 ** pow2) * SEC_TO_NS
791 for pow2 in (3, 7, 10, 15):
792 ns = 2.0 ** (-pow2)
/third_party/flutter/skia/src/core/
DSkGeometry.cpp1206 int pow2; in computeQuadPOW2() local
1207 for (pow2 = 0; pow2 < kMaxConicToQuadPOW2; ++pow2) { in computeQuadPOW2()
1225 if (altPow2 != pow2) { in computeQuadPOW2()
1226 SkDebugf("pow2 %d altPow2 %d fbits %g err %g tol %g\n", pow2, altPow2, fpow2, err, tol); in computeQuadPOW2()
1228 pow2 = altPow2; in computeQuadPOW2()
1230 return pow2; in computeQuadPOW2()
1280 int SkConic::chopIntoQuadsPOW2(SkPoint pts[], int pow2) const { in chopIntoQuadsPOW2()
1281 SkASSERT(pow2 >= 0); in chopIntoQuadsPOW2()
1284 if (pow2 == kMaxConicToQuadPOW2) { // If an extreme weight generates many quads ... in chopIntoQuadsPOW2()
1292 pow2 = 1; in chopIntoQuadsPOW2()
[all …]
DSkGeometry.h282 int SK_API SK_WARN_UNUSED_RESULT chopIntoQuadsPOW2(SkPoint pts[], int pow2) const;
428 int pow2 = conic.computeQuadPOW2(tol); in computeQuads() local
429 fQuadCount = 1 << pow2; in computeQuads()
431 fQuadCount = conic.chopIntoQuadsPOW2(pts, pow2); in computeQuads()
/third_party/skia/src/core/
DSkGeometry.h353 int SK_SPI SK_WARN_UNUSED_RESULT chopIntoQuadsPOW2(SkPoint pts[], int pow2) const;
500 int pow2 = conic.computeQuadPOW2(tol); in computeQuads() local
501 fQuadCount = 1 << pow2; in computeQuads()
503 fQuadCount = conic.chopIntoQuadsPOW2(pts, pow2); in computeQuads()
DSkGeometry.cpp1405 int pow2; in computeQuadPOW2() local
1406 for (pow2 = 0; pow2 < kMaxConicToQuadPOW2; ++pow2) { in computeQuadPOW2()
1424 if (altPow2 != pow2) { in computeQuadPOW2()
1425 SkDebugf("pow2 %d altPow2 %d fbits %g err %g tol %g\n", pow2, altPow2, fpow2, err, tol); in computeQuadPOW2()
1427 pow2 = altPow2; in computeQuadPOW2()
1429 return pow2; in computeQuadPOW2()
1479 int SkConic::chopIntoQuadsPOW2(SkPoint pts[], int pow2) const { in chopIntoQuadsPOW2()
1480 SkASSERT(pow2 >= 0); in chopIntoQuadsPOW2()
1483 if (pow2 == kMaxConicToQuadPOW2) { // If an extreme weight generates many quads ... in chopIntoQuadsPOW2()
1491 pow2 = 1; in chopIntoQuadsPOW2()
[all …]
/third_party/skia/src/gpu/tessellate/
DTessellation.h62 AI constexpr float pow2(float x) { return x*x; } in pow2() function
63 AI constexpr float pow4(float x) { return pow2(x*x); } in pow4()
DPathCurveTessellator.cpp40 float maxSegments_pow2 = pow2(maxTessellationSegments); in writePatches()
41 float maxSegments_pow4 = pow2(maxSegments_pow2); in writePatches()
DPathWedgeTessellator.cpp139 float maxSegments_pow2 = pow2(maxTessellationSegments); in writePatches()
140 float maxSegments_pow4 = pow2(maxSegments_pow2); in writePatches()
DTessellation.cpp61 if (n > pow2(kMaxTessellationSegmentsPerCurve)) { in conicTo()
/third_party/flutter/skia/src/gpu/geometry/
DGrPathUtils.cpp67 int pow2 = GrNextPow2(temp); in quadraticPointCount() local
71 if (pow2 < 1) { in quadraticPointCount()
72 pow2 = 1; in quadraticPointCount()
74 return SkTMin(pow2, kMaxPointsPerCurve); in quadraticPointCount()
123 int pow2 = GrNextPow2(temp); in cubicPointCount() local
127 if (pow2 < 1) { in cubicPointCount()
128 pow2 = 1; in cubicPointCount()
130 return SkTMin(pow2, kMaxPointsPerCurve); in cubicPointCount()
/third_party/flutter/engine/flutter/lib/web_ui/lib/src/engine/
Dconic.dart180 int pow2 = 0;
181 for (; pow2 < _maxSubdivisionCount; ++pow2) {
187 return pow2;
/third_party/boost/boost/random/detail/
Dseed_impl.hpp76 inline T pow2(int n) in pow2() function
93 RealType multiplier = pow2<RealType>( Bits); in generate_from_real()
339 const RealType divisor = RealType(1)/detail::pow2<RealType>(w); in seed_array_real_impl()
371 const RealType divisor = RealType(1)/detail::pow2<RealType>(w); in fill_array_real()
/third_party/boost/libs/math/doc/distributions/
Dinverse_chi_squared.qbk54 with known mean, model parameter [sigma][pow2] (variance).
156 [[variance][2 [nu][pow2] [xi][pow2] / (([nu] -2)[pow2] ([nu] -4)) for [nu] >4, else a __domain_erro…
/third_party/ffmpeg/libavcodec/
Dvorbisenc.c57 float *pow2; member
180 cb->pow2 = cb->dimensions = NULL; in ready_codebook()
184 cb->pow2 = av_mallocz_array(cb->nentries, sizeof(float)); in ready_codebook()
185 if (!cb->dimensions || !cb->pow2) in ready_codebook()
201 … cb->pow2[i] += cb->dimensions[i * cb->ndimensions + j] * cb->dimensions[i * cb->ndimensions + j]; in ready_codebook()
204 cb->pow2[i] /= 2.0; in ready_codebook()
889 float * vec = book->dimensions + i * book->ndimensions, d = book->pow2[i]; in put_vector()
1215 av_freep(&venc->codebooks[i].pow2); in vorbis_encode_close()
/third_party/skia/tests/
DMathTest.cpp323 float pow2 = std::ldexp(1, i); in test_nextlog2() local
325 REPORTER_ASSERT(r, sk_float_nextlog2(pow2) == i); in test_nextlog2()
326 REPORTER_ASSERT(r, sk_float_nextlog2(pow2 + epsilon) == i + 1); in test_nextlog2()
327 REPORTER_ASSERT(r, sk_float_nextlog2(pow2 - epsilon) == i); in test_nextlog2()
/third_party/python/Objects/
Dfloatobject.c985 double pow1, pow2, y, z; in double_round() local
991 pow2 = 1e22; in double_round()
995 pow2 = 1.0; in double_round()
997 y = (x*pow1)*pow2; in double_round()
1004 pow2 = 1.0; /* unused; silences a gcc compiler warning */ in double_round()
1014 z = (z / pow2) / pow1; in double_round()
/third_party/boost/boost/math/bindings/
De_float.hpp180 ::e_float shift = ::ef::pow2(30); in assign_large_real()
192 m_value *= ::ef::pow2(e); in assign_large_real()
329 return v.value() * ::ef::pow2(e); in ldexp()
338 return v.value() * ::ef::pow2(-i); in frexp()

123