Home
last modified time | relevance | path

Searched refs:magSq (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/core/
DSkPoint3.cpp27 float magSq = get_length_squared(x, y, z); in Length() local
28 if (SkScalarIsFinite(magSq)) { in Length()
29 return sk_float_sqrt(magSq); in Length()
47 float magSq; in normalize() local
48 if (is_length_nearly_zero(fX, fY, fZ, &magSq)) { in normalize()
54 if (SkScalarIsFinite(magSq)) { in normalize()
55 scale = 1.0f / sk_float_sqrt(magSq); in normalize()
/external/skia/src/effects/
DSkLightingImageFilter.cpp70 SkScalar magSq = vector->dot(*vector) + SK_ScalarNearlyZero; in fast_normalize() local
71 SkScalar scale = sk_float_rsqrt(magSq); in fast_normalize()