Searched refs:M_PI (Results 1 - 25 of 68) sorted by relevance

123

/external/flac/libFLAC/
H A Dwindow.c43 #ifndef M_PI
45 #define M_PI 3.14159265358979323846 macro
74 window[n] = (FLAC__real)(0.62f - 0.48f * fabs((float)n/(float)N+0.5f) + 0.38f * cos(2.0f * M_PI * ((float)n/(float)N+0.5f)));
83 window[n] = (FLAC__real)(0.42f - 0.5f * cos(2.0f * M_PI * n / N) + 0.08f * cos(4.0f * M_PI * n / N));
93 window[n] = (FLAC__real)(0.35875f - 0.48829f * cos(2.0f * M_PI * n / N) + 0.14128f * cos(4.0f * M_PI * n / N) - 0.01168f * cos(6.0f * M_PI * n / N));
115 window[n] = (FLAC__real)(1.0f - 1.93f * cos(2.0f * M_PI * n / N) + 1.29f * cos(4.0f * M_PI *
[all...]
/external/libvorbis/test/
H A Dutil.c38 { data [k] = sin (2.0 * k * M_PI * 1.0 / 32.0 + 0.4) ;
41 data [k] *= maximum * (0.5 - 0.5 * cos (2.0 * M_PI * k / ((len) - 1))) ;
/external/tremolo/Tremolo/
H A Dos.h55 #ifndef M_PI
56 # define M_PI (3.1415926536f) macro
/external/aac/libFDK/include/
H A DFDK_trigFcts.h100 #ifndef M_PI
101 #define M_PI (3.14159265358979323846f) macro
152 residual = fMult(x, FL2FXCONST_DBL(1.0/M_PI));
156 residual = fMult(residual, FL2FXCONST_DBL(M_PI/4.0)) << 2;
/external/srec/srec/include/
H A Dall_defs.h105 #ifndef M_PI
106 #define M_PI 3.14159265358979323846 macro
107 #endif /* M_PI */
/external/webkit/Source/WebCore/platform/wx/wxcode/win/
H A Dnon-kerned-drawing.cpp43 const double RAD2DEG = 180.0 / M_PI;
52 static inline double DegToRad(double deg) { return (deg * M_PI) / 180.0; }
53 static inline double RadToDeg(double deg) { return (deg * 180.0) / M_PI; }
/external/libvorbis/lib/
H A Dos.h44 #ifndef M_PI
45 # define M_PI (3.1415926536f) macro
H A Dtone.c40 val+=amp[j]*sin(i/44100.f*f[j]*2*M_PI);
H A Dmdct.c66 T[i*2]=FLOAT_CONV(cos((M_PI/n)*(4*i)));
67 T[i*2+1]=FLOAT_CONV(-sin((M_PI/n)*(4*i)));
68 T[n2+i*2]=FLOAT_CONV(cos((M_PI/(2*n))*(2*i+1)));
69 T[n2+i*2+1]=FLOAT_CONV(sin((M_PI/(2*n))*(2*i+1)));
72 T[n+i*2]=FLOAT_CONV(cos((M_PI/n)*(4*i+2))*.5);
73 T[n+i*2+1]=FLOAT_CONV(-sin((M_PI/n)*(4*i+2))*.5);
H A Dlsp.c68 float wdel=M_PI/ln;
150 for(i=0;i<m;i++)ilsp[i]=vorbis_coslook_i(lsp[i]/M_PI*65536.f+.5f);
251 float wdel=M_PI/ln;
/external/aac/libFDK/src/
H A DFDK_trigFcts.cpp188 at = FL2FXCONST_DBL( +M_PI/2 / ATO_SCALE);
195 at = FL2FXCONST_DBL( -M_PI/2 / ATO_SCALE);
218 ret = at2 + FL2FXCONST_DBL( M_PI / AT2O_SCALE);
220 ret = at2 - FL2FXCONST_DBL( M_PI / AT2O_SCALE);
226 ret = FL2FXCONST_DBL( +M_PI/2 / AT2O_SCALE);
229 ret = FL2FXCONST_DBL( -M_PI/2 / AT2O_SCALE);
/external/quake/quake/src/QW/client/
H A Dmathlib.h30 #ifndef M_PI
31 #define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h macro
H A Dr_bsp.c90 angle = angle * M_PI*2 / 360;
107 angle = angle * M_PI*2 / 360;
125 angle = angle * M_PI*2 / 360;
/external/quake/quake/src/WinQuake/
H A Dmathlib.h30 #ifndef M_PI
31 #define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h macro
H A Dchase.cpp87 r_refdef.viewangles[PITCH] = -atan(stop[2] / dist) / M_PI * 180;
H A Dsnd_android.cpp480 static const float p = 2 * M_PI * 440.0f / SAMPLE_RATE;
486 const float A = 1.0f / (2.0f*M_PI);
515 if (left > 2*M_PI) {
516 left -= 2*M_PI;
522 if (right > 2*M_PI) {
523 right -= 2*M_PI;
H A Dr_bsp.cpp90 angle = angle * M_PI*2 / 360;
107 angle = angle * M_PI*2 / 360;
125 angle = angle * M_PI*2 / 360;
/external/speex/libspeex/
H A Dmath_approx.h45 #define spx_cos_norm(x) (cos((.5f*M_PI)*(x)))
305 #ifndef M_PI
306 #define M_PI 3.14159265358979323846 /* pi */ macro
323 x = M_PI-x;
H A Dscal.c105 st->vorbis_win[i] = sin(.5*M_PI* sin(M_PI*i/(2*frame_size))*sin(M_PI*i/(2*frame_size)) );
231 float coef = M_PI*0.075063 * 0.93763 * amount * .8 * 0.707;
/external/chromium/chrome/browser/ui/gtk/
H A Dtheme_install_bubble_view_gtk.cc172 M_PI, 3 * M_PI_2);
178 M_PI_2, M_PI);
/external/webkit/Source/JavaScriptCore/wtf/
H A DMathExtras.h51 #ifndef M_PI
55 const double piDouble = M_PI;
56 const float piFloat = static_cast<float>(M_PI);
/external/qemu/distrib/sdl-1.2.15/test/
H A Dtestpalette.c14 #ifndef M_PI
15 #define M_PI 3.14159265358979323846 macro
326 cmap[red].r = (int)(255 * sin(redphase * M_PI / 63));
/external/mesa3d/src/mesa/main/
H A Dcompiler.h353 #ifndef M_PI
354 #define M_PI (3.1415926536) macro
/external/webkit/Source/WebCore/platform/graphics/wx/
H A DFontPlatformDataWxMac.mm46 return (deg * M_PI) / 180.0;
/external/webkit/Source/WebCore/platform/graphics/cairo/
H A DGraphicsContextCairo.cpp67 #ifndef M_PI
68 #define M_PI 3.14159265358979323846 macro
383 cairo_arc(cr, 0., 0., 1., 0., 2 * M_PI);
422 cairo_arc_negative(cr, x + hRadius, (y + vRadius) * reverseScaleFactor, hRadius, -fa * M_PI/180, -falen * M_PI/180);
449 distance = static_cast<int>((M_PI * hRadius) / 2.0);
451 distance = static_cast<int>((M_PI * sqrtf((hRadius * hRadius + vRadius * vRadius) / 2.0)) / 2.0);

Completed in 477 milliseconds

123