/external/chromium_org/third_party/skia/src/core/ |
SkPoint.cpp | 110 float mag2; local 111 if (isLengthNearlyZero(x, y, &mag2)) { 116 if (SkScalarIsFinite(mag2)) { 117 mag = sk_float_sqrt(mag2); 120 // our mag2 step overflowed to infinity, so use doubles instead. 138 float mag2 = dx * dx + dy * dy; local 139 if (SkScalarIsFinite(mag2)) { 140 return sk_float_sqrt(mag2); 150 * 1. underflow of mag2 (compared against nearlyzero^2) 151 * 2. overflow of mag2 (compared w/ isfinite 157 float mag2; local 183 float mag2; local [all...] |
SkPaint.cpp | 434 static SkScalar mag2(SkScalar x, SkScalar y) { function 439 return mag2(m[SkMatrix::kMScaleX], m[SkMatrix::kMSkewY]) > ma2max 441 mag2(m[SkMatrix::kMSkewX], m[SkMatrix::kMScaleY]) > ma2max; [all...] |
/external/skia/src/core/ |
SkPoint.cpp | 110 float mag2; local 111 if (isLengthNearlyZero(x, y, &mag2)) { 116 if (SkScalarIsFinite(mag2)) { 117 mag = sk_float_sqrt(mag2); 120 // our mag2 step overflowed to infinity, so use doubles instead. 138 float mag2 = dx * dx + dy * dy; local 139 if (SkScalarIsFinite(mag2)) { 140 return sk_float_sqrt(mag2); 150 * 1. underflow of mag2 (compared against nearlyzero^2) 151 * 2. overflow of mag2 (compared w/ isfinite 157 float mag2; local 183 float mag2; local [all...] |
SkPaint.cpp | 434 static SkScalar mag2(SkScalar x, SkScalar y) { function 439 return mag2(m[SkMatrix::kMScaleX], m[SkMatrix::kMSkewY]) > ma2max 441 mag2(m[SkMatrix::kMSkewX], m[SkMatrix::kMScaleY]) > ma2max; [all...] |
/external/eigen/unsupported/doc/examples/ |
FFT.cpp | 23 T mag2(T a) function 28 T mag2(std::complex<T> a) function 34 T mag2(const std::vector<T> & vec) function 38 out += mag2(vec[k]); 43 T mag2(const std::vector<std::complex<T> > & vec) function 47 out += mag2(vec[k]); 88 long double rmse = mag2(timebuf - timebuf2) / mag2(timebuf);
|
/frameworks/base/services/java/com/android/server/power/ |
WirelessChargerDetector.java | 316 final double mag2 = Math.sqrt((x2 * x2) + (y2 * y2) + (z2 * z2)); local 318 || mag2 < MIN_GRAVITY || mag2 > MAX_GRAVITY) { 320 Slog.d(TAG, "Weird gravity vector: mag1=" + mag1 + ", mag2=" + mag2); 324 final boolean moved = (dotProduct < mag1 * mag2 * MOVEMENT_ANGLE_COS_THRESHOLD); 329 + ", angle=" + (Math.acos(dotProduct / mag1 / mag2) * 180 / Math.PI) 331 + ", mag1=" + mag1 + ", mag2=" + mag2);
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
FFTFrame.cpp | 106 double mag2 = abs(c2); local 110 double mag2db = 20.0 * log10(mag2);
|