/external/skia/src/effects/ |
SkEmbossMaskFilter.cpp | 54 SkScalar mag = SkScalarSquare(v[0]) + SkScalarSquare(v[1]) + SkScalarSquare(v[2]); local 55 mag = SkScalarSqrt(mag); 58 v[i] = SkScalarDiv(v[i], mag);
|
/external/tremolo/Tremolo/ |
mapping0.c | 87 int testM=info->coupling[i].mag=(unsigned char)(oggpack_read(opb,ilog(vi->channels))); 171 if(nonzero[info->coupling[i].mag] || 173 nonzero[info->coupling[i].mag]=1; 200 ogg_int32_t *pcmM=vd->work[info->coupling[i].mag]; 204 ogg_int32_t mag=pcmM[j]; local 207 if(mag>0) 209 pcmM[j]=mag; 210 pcmA[j]=mag-ang; 212 pcmA[j]=mag; 213 pcmM[j]=mag+ang [all...] |
codec_internal.h | 161 unsigned char mag; member in struct:coupling_step
|
/cts/apps/CtsVerifier/jni/audioquality/ |
CompareSpectra.cpp | 64 static void accumulateMagnitude(float* im, float* re, int size, double* mag) { 66 mag[i] += ((re[i] * re[i]) + (im[i] * im[i])); 84 double* mag = new double[numMag]; local 86 mag[i] = 0.0; 99 accumulateMagnitude(im, re, numMag, mag); 104 double e = mag[i]/numFrames; 107 mag[i] = sqrt(e); 112 return mag;
|
/external/stlport/src/ |
complex.cpp | 170 _Tp mag = ::hypot(re, im); local 173 if (mag == 0.f) { 176 result._M_re = ::sqrt(0.5f * (mag + re)); 179 result._M_im = ::sqrt(0.5f * (mag - re));
|
/frameworks/base/core/java/android/util/ |
MathUtils.java | 103 public static float mag(float a, float b) { method in class:MathUtils 107 public static float mag(float a, float b, float c) { method in class:MathUtils
|
/ndk/sources/cxx-stl/stlport/src/ |
complex.cpp | 170 _Tp mag = ::hypot(re, im); local 173 if (mag == 0.f) { 176 result._M_re = ::sqrt(0.5f * (mag + re)); 179 result._M_im = ::sqrt(0.5f * (mag - re));
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
AccelerometerTestRenderer.java | 198 double mag = Math.sqrt(vector[0] * vector[0] + vector[1] * vector[1] + vector[2] local 200 vector[0] /= mag; 201 vector[1] /= mag; 202 vector[2] /= mag;
|
/external/skia/src/core/ |
SkPoint.cpp | 83 float mag = SkPoint::Length(pt->fX, pt->fY); local 84 if (mag > kNearlyZero) { 85 float scale = 1 / mag; 88 return mag; 94 float mag = sk_float_sqrt(x * x + y * y); local 95 if (mag > kNearlyZero) { 96 length /= mag; 319 float mag = sqrtf(fx*fx + fy*fy); local 320 fx /= mag; 321 fy /= mag; [all...] |
/external/skia/src/utils/ |
SkCamera.cpp | 81 float mag = sk_float_sqrt(fX*fX + fY*fY + fZ*fZ); local 82 if (mag) 84 float scale = 1.0f / mag; 98 SkFixed mag = tmp1.getSqrt(); 99 if (mag) 101 // what if mag < SK_Fixed1 ??? we will underflow the fixdiv 102 SkFixed scale = SkFixedDiv(SK_Fract1, mag); 108 return mag;
|
/development/ndk/platforms/android-4/samples/san-angeles/jni/ |
demo.c | 620 GLfloat mag; local 628 mag = (float)sqrt(z[0] * z[0] + z[1] * z[1] + z[2] * z[2]); 629 if (mag) { /* mpichler, 19950515 */ 630 z[0] /= mag; 631 z[1] /= mag; 632 z[2] /= mag; 655 mag = (float)sqrt(x[0] * x[0] + x[1] * x[1] + x[2] * x[2]); 656 if (mag) { 657 x[0] /= mag; 658 x[1] /= mag; [all...] |
/frameworks/base/opengl/tests/angeles/ |
demo.c | 620 GLfloat mag; local 628 mag = (float)sqrt(z[0] * z[0] + z[1] * z[1] + z[2] * z[2]); 629 if (mag) { /* mpichler, 19950515 */ 630 z[0] /= mag; 631 z[1] /= mag; 632 z[2] /= mag; 655 mag = (float)sqrt(x[0] * x[0] + x[1] * x[1] + x[2] * x[2]); 656 if (mag) { 657 x[0] /= mag; 658 x[1] /= mag; [all...] |
/external/bluetooth/glib/glib/ |
gslice.c | 710 Magazine *mag = mags[j]; local 711 if (mag->count >= MIN_MAGAZINE_SIZE) 712 magazine_cache_push_magazine (ix, mag->chunks, mag->count); 717 while (mag->chunks) 719 ChunkLink *chunk = magazine_chain_pop_head (&mag->chunks); 733 Magazine *mag = &tmem->magazine1[ix]; local 734 mem_assert (mag->chunks == NULL); /* ensure that we may reset mag->count */ 735 mag->count = 0 743 Magazine *mag = &tmem->magazine2[ix]; local 776 Magazine *mag = &tmem->magazine1[ix]; local 788 Magazine *mag = &tmem->magazine2[ix]; local [all...] |
/external/dropbear/libtommath/mtest/ |
mpi.c | 1356 int mag; local 1376 if((mag = s_mp_cmp(a, m)) > 0) { 1385 } else if(mag < 0) { 1817 int mag; local [all...] |