Searched refs:dist2 (Results 1 – 11 of 11) sorted by relevance
389 Word32 dist2; in Vq_subvec_s() local426 dist2 = ((Word32)temp2 * temp2); in Vq_subvec_s()434 dist2 += ((Word32)temp2 * temp2); in Vq_subvec_s()436 if ((dist1 >= dist_min) && (dist2 >= dist_min)) in Vq_subvec_s()448 dist2 += ((Word32)temp2 * temp2); in Vq_subvec_s()456 dist2 += ((Word32)temp2 * temp2); in Vq_subvec_s()467 if (dist2 < dist_min) in Vq_subvec_s()469 dist_min = dist2; in Vq_subvec_s()
68 float dist2 = dist(b); in getAngle() local70 if (dist1 == 0.0f || dist2 == 0.0f) { in getAngle()76 float cos = Math.min(1.0f, Math.max(-1.0f, dotProduct / dist1 / dist2)); in getAngle()
50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;51 const float inv_dist = rsqrt(dist2);52 const float radian = M_PI_2 - atan((alpha * sqrt(radius2 - dist2)) * inv_dist);
50 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;51 const float inv_dist = half_rsqrt(dist2);52 const float radian = M_PI_2 - atan((alpha * half_sqrt(radius2 - dist2)) * inv_dist);
52 const float dist2 = scaledCoord.x*scaledCoord.x + scaledCoord.y*scaledCoord.y;53 const float inv_dist = half_rsqrt(dist2);54 const float radian = M_PI_2 - atan((alpha * half_sqrt(radius2 - dist2)) * inv_dist);
1271 size_t dist2 = nextSyncSampleIndex - closestSampleIndex; in getSampleIndexAtTime() local1274 (dist1 < dist2) ? prevSyncSampleIndex : nextSyncSampleIndex; in getSampleIndexAtTime()
5731 float dist2 = dist[id2]; in preparePointerGestures() local5733 && dist2 >= mConfig.pointerGestureMultitouchMinDistance) { in preparePointerGestures()5745 float cosine = dot / (dist1 * dist2); // denominator always > 0 in preparePointerGestures()5753 dist2, mConfig.pointerGestureMultitouchMinDistance, in preparePointerGestures()5764 dist2, mConfig.pointerGestureMultitouchMinDistance, in preparePointerGestures()