Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 25 of 73) sorted by relevance

123

/hardware/google/gfxstream/third-party/glm/include/glm/gtx/
Dinteger.hpp34 GLM_FUNC_DECL int sqrt(int x);
59 GLM_FUNC_DECL uint sqrt(uint x);
Dmatrix_interpolation.inl41 axis.x = sqrt(xx);
53 axis.y = sqrt(yy);
65 axis.z = sqrt(zz);
72 …T s = sqrt((mat[2][1] - mat[1][2]) * (mat[2][1] - mat[1][2]) + (mat[2][0] - mat[0][2]) * (mat[2][0…
Dinteger.inl17 // sqrt: From Christopher J. Musial, An integer square root, Graphics Gems, 1990, page 387
18 GLM_FUNC_QUALIFIER int sqrt(int x) function
120 GLM_FUNC_QUALIFIER uint sqrt(uint x) function
Dmatrix_decompose.inl156 s = static_cast<T>(0.5) / sqrt(t);
164 s = sqrt (static_cast<T>(1) + Row[0][0] - Row[1][1] - Row[2][2]) * static_cast<T>(2); // S=4*qx
172 s = sqrt (static_cast<T>(1) + Row[1][1] - Row[0][0] - Row[2][2]) * static_cast<T>(2); // S=4*qy
180 s = sqrt(static_cast<T>(1) + Row[2][2] - Row[0][0] - Row[1][1]) * static_cast<T>(2); // S=4*qz
Dpolar_coordinates.inl14 T const xz_dist(sqrt(tmp.x * tmp.x + tmp.z * tmp.z));
Dquaternion.inl89 T magnitude = sqrt(x.x * x.x + x.y * x.y + x.z * x.z + x.w *x.w);
123 return -sqrt(w);
155 T fSin = sqrt(T(1) - fCos * fCos);
202 T s = sqrt((T(1) + cosTheta) * static_cast<T>(2));
Dgradient_paint.inl21 …T Numerator = (D.x * F.x + D.y * F.y) + sqrt(Radius2 * (pow2(D.x) + pow2(D.y)) - pow2(D.x * F.y - …
Dintersect.inl120 typename genType::value_type t1 = sqrt( sphereRadiusSquered - dSquared );
161 typename genType::value_type t1 = sqrt( sphereRadius * sphereRadius - dSquared );
Dsimd_quat.inl235 T s = static_cast<T>(0.5) / sqrt(trace);
250 T s = sqrt(m0[0] - m1[1] - m2[2] + T(1.0)) * T(0.5);
264 T s = sqrt(m1[1] - m0[0] - m2[2] + T(1.0)) * T(0.5);
275 T s = sqrt(m2[2] - m0[0] - m1[1] + T(1.0)) * T(0.5);
391 return glm::sqrt(dot(q, q));
Ddual_quaternion.inl309 T const r = sqrt(T(1) + trace);
318 T const r = sqrt(T(1) + x[0].x - x[1].y - x[2].z);
327 T const r = sqrt(T(1) + x[1].y - x[0].x - x[2].z);
336 T const r = sqrt(T(1) + x[2].z - x[0].x - x[1].y);
/hardware/google/gfxstream/third-party/glm/include/glm/detail/
Dfunc_exponential.inl37 return detail::functor1<T, T, P, vecType>::call(std::sqrt, x);
46 return static_cast<T>(1) / sqrt(x);
119 // sqrt
120 using std::sqrt;
122 GLM_FUNC_QUALIFIER vecType<T, P> sqrt(vecType<T, P> const & x) function
124 GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'sqrt' only accept floating-point inputs");
132 return static_cast<genType>(1) / sqrt(x);
Dfunc_exponential.hpp88 GLM_FUNC_DECL vecType<T, P> sqrt(vecType<T, P> const & v);
Dfunc_geometric.inl18 return sqrt(dot(v, v));
125 return (eta * I - (eta * dotValue + std::sqrt(k)) * N) * static_cast<T>(k >= static_cast<T>(0));
234 …return (eta * I - (eta * dotValue + sqrt(k)) * N) * static_cast<genType>(k >= static_cast<genType>…
Dfunc_trigonometric.inl144 …? static_cast<genType>(1) : static_cast<genType>(0))) * log(std::abs(x) + sqrt(static_cast<genType…
165 return log(x + sqrt(x * x - static_cast<genType>(1)));
/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dastcenc_mathlib.h363 return 1.0f / std::sqrt(v); in rsqrt()
373 static inline float sqrt(float v) in sqrt() function
375 return std::sqrt(v); in sqrt()
Dastcenc_image.cpp412 data_z = (sqrt(data_z) * vfloat(0.5f)) + vfloat(0.5f); in store_image_block()
481 data[ASTCENC_SWZ_Z] = (astc::sqrt(zN) * 0.5f) + 0.5f; in store_image_block()
543 data[ASTCENC_SWZ_Z] = (astc::sqrt(zN) * 0.5f) + 0.5f; in store_image_block()
Dastcenc_vecmathlib_none_4.h887 ASTCENC_SIMD_INLINE vfloat4 sqrt(vfloat4 a) in sqrt() function
889 return vfloat4(std::sqrt(a.m[0]), in sqrt()
890 std::sqrt(a.m[1]), in sqrt()
891 std::sqrt(a.m[2]), in sqrt()
892 std::sqrt(a.m[3])); in sqrt()
/hardware/google/gfxstream/third-party/glm/include/glm/gtc/
Dfunctions.inl16 …st<T>(2) * StandardDeviation * StandardDeviation)) / (StandardDeviation * sqrt(static_cast<T>(6.28…
/hardware/invensense/65xx/libsensors_iio/software/core/driver/include/
Dmlmath.h50 #define sqrt(x) ml_sqrt(x) macro
/hardware/invensense/6515/libsensors_iio/software/core/driver/include/
Dmlmath.h50 #define sqrt(x) ml_sqrt(x) macro
/hardware/interfaces/sensors/common/vts/utils/include/sensors-vts-utils/
DSensorEventsChecker.h59 float norm = std::sqrt(v.x * v.x + v.y * v.y + v.z * v.z); in checkEvent()
/hardware/google/gfxstream/third-party/astc-encoder/Source/UnitTest/
Dtest_simd.cpp859 TEST(vfloat4, sqrt) in TEST() argument
862 vfloat4 r = sqrt(a); in TEST()
863 EXPECT_EQ(r.lane<0>(), std::sqrt(1.0f)); in TEST()
864 EXPECT_EQ(r.lane<1>(), std::sqrt(2.0f)); in TEST()
865 EXPECT_EQ(r.lane<2>(), std::sqrt(3.0f)); in TEST()
866 EXPECT_EQ(r.lane<3>(), std::sqrt(4.0f)); in TEST()
1033 EXPECT_NEAR(r.lane<0>(), 1.0f / astc::sqrt(30.0f), 0.0005f); in TEST()
1034 EXPECT_NEAR(r.lane<1>(), 2.0f / astc::sqrt(30.0f), 0.0005f); in TEST()
1035 EXPECT_NEAR(r.lane<2>(), 3.0f / astc::sqrt(30.0f), 0.0005f); in TEST()
1036 EXPECT_NEAR(r.lane<3>(), 4.0f / astc::sqrt(30.0f), 0.0005f); in TEST()
[all …]
/hardware/interfaces/gnss/common/utils/vts/
DUtils.cpp317 double c = 2 * atan2(sqrt(a), sqrt(1 - a)); in distanceMeters()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/katex/
DREADME.md55 katex.render("c = \\pm\\sqrt{a^2 + b^2}", element, {
64 var html = katex.renderToString("c = \\pm\\sqrt{a^2 + b^2}", {
/hardware/google/pixel/pixelstats/
DDropDetect.cpp151 float impact_magnitude = sqrt(p->impact_accel_x * p->impact_accel_x + in dropEventFromNanoappPayload()

123