Home
last modified time | relevance | path

Searched refs:M_PI (Results 1 – 25 of 64) sorted by relevance

123

/external/flac/libFLAC/
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 * … in FLAC__window_bartlett_hann()
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… in FLAC__window_blackman()
93 …l)(0.35875f - 0.48829f * cos(2.0f * M_PI * n / N) + 0.14128f * cos(4.0f * M_PI * n / N) - 0.01168f… in FLAC__window_blackman_harris_4term_92db_sidelobe()
115 … 1.93f * cos(2.0f * M_PI * n / N) + 1.29f * cos(4.0f * M_PI * n / N) - 0.388f * cos(6.0f * M_PI * … in FLAC__window_flattop()
136 window[n] = (FLAC__real)(0.54f - 0.46f * cos(2.0f * M_PI * n / N)); in FLAC__window_hamming()
145 window[n] = (FLAC__real)(0.5f - 0.5f * cos(2.0f * M_PI * n / N)); in FLAC__window_hann()
154 …C__real)(0.402f - 0.498f * cos(2.0f * M_PI * n / N) + 0.098f * cos(4.0f * M_PI * n / N) - 0.001f *… in FLAC__window_kaiser_bessel()
163 …C__real)(0.3635819f - 0.4891775f*cos(2.0f*M_PI*n/N) + 0.1365995f*cos(4.0f*M_PI*n/N) - 0.0106411f*c… in FLAC__window_nuttall()
[all …]
/external/webkit/Source/WebCore/platform/wx/wxcode/win/
Dnon-kerned-drawing.cpp43 const double RAD2DEG = 180.0 / M_PI;
52 static inline double DegToRad(double deg) { return (deg * M_PI) / 180.0; } in DegToRad()
53 static inline double RadToDeg(double deg) { return (deg * 180.0) / M_PI; } in RadToDeg()
/external/tremolo/Tremolo/
Dos.h55 #ifndef M_PI
56 # define M_PI (3.1415926536f) macro
/external/speex/libspeex/
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; in spx_cos()
Dscal.c105 st->vorbis_win[i] = sin(.5*M_PI* sin(M_PI*i/(2*frame_size))*sin(M_PI*i/(2*frame_size)) ); in speex_decorrelate_new()
231 float coef = M_PI*0.075063 * 0.93763 * amount * .8 * 0.707; in speex_decorrelate()
Dlsp.c91 #ifndef M_PI
92 #define M_PI 3.14159265358979323846 /* pi */ macro
633 if (lsp[len-1]>LSP_SCALING*(M_PI-margin)) in lsp_enforce_margin()
634 lsp[len-1]=LSP_SCALING*(M_PI-margin); in lsp_enforce_margin()
Dquant_lsp.c40 #ifndef M_PI
41 #define M_PI 3.14159265358979323846 macro
67 #define LSP_PI M_PI
/external/srec/srec/include/
Dall_defs.h105 #ifndef M_PI
106 #define M_PI 3.14159265358979323846 macro
/external/quake/quake/src/WinQuake/
Dsnd_android.cpp480 static const float p = 2 * M_PI * 440.0f / SAMPLE_RATE;
486 const float A = 1.0f / (2.0f*M_PI); in sinef()
515 if (left > 2*M_PI) { in AndroidQuakeSoundCallback()
516 left -= 2*M_PI; in AndroidQuakeSoundCallback()
522 if (right > 2*M_PI) { in AndroidQuakeSoundCallback()
523 right -= 2*M_PI; in AndroidQuakeSoundCallback()
Dmathlib.h30 #ifndef M_PI
31 #define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h macro
Dmathlib.cpp32 #define DEG2RAD( a ) ( a * M_PI ) / 180.0F
297 angle = angles[YAW] * (M_PI*2 / 360); in AngleVectors()
300 angle = angles[PITCH] * (M_PI*2 / 360); in AngleVectors()
303 angle = angles[ROLL] * (M_PI*2 / 360); in AngleVectors()
Dr_bsp.cpp90 angle = angle * M_PI*2 / 360; in R_RotateBmodel()
107 angle = angle * M_PI*2 / 360; in R_RotateBmodel()
125 angle = angle * M_PI*2 / 360; in R_RotateBmodel()
Dchase.cpp87 r_refdef.viewangles[PITCH] = -atan(stop[2] / dist) / M_PI * 180; in Chase_Update()
Dcl_tent.cpp362 yaw = (int) (atan2(dist[1], dist[0]) * 180 / M_PI); in CL_UpdateTEnts()
367 pitch = (int) (atan2(dist[2], forward) * 180 / M_PI); in CL_UpdateTEnts()
Dgl_rlight.cpp112 a = i/16.0 * M_PI*2; in R_RenderDlight()
132 a = i/16.0 * M_PI*2; in R_RenderDlight()
Dgl_rmain.cpp660 an = e->angles[1]/180*M_PI; in R_DrawAliasModel()
1013 ymax = zNear * tan( fovy * M_PI / 360.0f ); in MYgluPerspective()
1029 ymax = zNear * tan( fovy * M_PI / 360.0 ); in MYgluPerspective()
1099 a *= (float) (M_PI / 180.0f); in setRotateM()
1413 r_refdef.viewangles[0] = -asin (vpn[2])/M_PI*180; in R_Mirror()
1414 r_refdef.viewangles[1] = atan2 (vpn[1], vpn[0])/M_PI*180; in R_Mirror()
/external/quake/quake/src/QW/client/
Dmathlib.h30 #ifndef M_PI
31 #define M_PI 3.14159265358979323846 // matches value in gcc v2 math.h macro
Dmathlib.c32 #define DEG2RAD( a ) ( a * M_PI ) / 180.0F
295 angle = angles[YAW] * (M_PI*2 / 360); in AngleVectors()
298 angle = angles[PITCH] * (M_PI*2 / 360); in AngleVectors()
301 angle = angles[ROLL] * (M_PI*2 / 360); in AngleVectors()
Dgl_rmain.c568 an = e->angles[1]/180*M_PI; in R_DrawAliasModel()
914 ymax = zNear * tan( fovy * M_PI / 360.0f ); in MYgluPerspective()
930 ymax = zNear * tan( fovy * M_PI / 360.0 ); in MYgluPerspective()
1143 r_refdef.viewangles[0] = -asin (vpn[2])/M_PI*180;
1144 r_refdef.viewangles[1] = atan2 (vpn[1], vpn[0])/M_PI*180;
Dr_bsp.c90 angle = angle * M_PI*2 / 360; in R_RotateBmodel()
107 angle = angle * M_PI*2 / 360; in R_RotateBmodel()
125 angle = angle * M_PI*2 / 360; in R_RotateBmodel()
Dcl_tent.c386 yaw = (int) (atan2(dist[1], dist[0]) * 180 / M_PI); in CL_UpdateBeams()
391 pitch = (int) (atan2(dist[2], forward) * 180 / M_PI); in CL_UpdateBeams()
/external/webkit/Source/JavaScriptCore/wtf/
DMathExtras.h51 #ifndef M_PI
55 const double piDouble = M_PI;
56 const float piFloat = static_cast<float>(M_PI);
/external/chromium/chrome/browser/ui/gtk/
Dtheme_install_bubble_view_gtk.cc172 M_PI, 3 * M_PI_2); in OnExpose()
178 M_PI_2, M_PI); in OnExpose()
/external/webkit/Source/WebCore/platform/graphics/cairo/
DGraphicsContextCairo.cpp67 #ifndef M_PI
68 #define M_PI 3.14159265358979323846 macro
383 cairo_arc(cr, 0., 0., 1., 0., 2 * M_PI); in drawEllipse()
422 …e(cr, x + hRadius, (y + vRadius) * reverseScaleFactor, hRadius, -fa * M_PI/180, -falen * M_PI/180); in strokeArc()
449 distance = static_cast<int>((M_PI * hRadius) / 2.0); in strokeArc()
451 … distance = static_cast<int>((M_PI * sqrtf((hRadius * hRadius + vRadius * vRadius) / 2.0)) / 2.0); in strokeArc()
/external/mesa3d/src/mesa/main/
Dcompiler.h353 #ifndef M_PI
354 #define M_PI (3.1415926536) macro

123