Home
last modified time | relevance | path

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

12

/external/tesseract/ccstruct/
Dlinlsq.cpp27 #define M_PI 3.14159265359 macro
209 if (error > M_PI / 2) { in fit()
210 error -= M_PI; in fit()
211 angle += M_PI; in fit()
213 if (error < -M_PI / 2) { in fit()
214 error += M_PI; in fit()
215 angle -= M_PI; in fit()
217 if (error > M_PI * pdlsq_threshold_angleavg in fit()
218 || error < -M_PI * pdlsq_threshold_angleavg) in fit()
221 ang = (inT16) (angle * MODULUS / (2 * M_PI)); in fit()
/external/webkit/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/tremor/Tremor/
Dos.h35 #ifndef M_PI
36 # 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
Dresample.c81 #ifndef M_PI
82 #define M_PI 3.14159263 macro
281 return WORD2INT(32768.*cutoff*sin(M_PI*xx)/(M_PI*xx) * compute_func(fabs(2.*x/N), window_func)); in sinc()
294 return cutoff*sin(M_PI*xx)/(M_PI*xx) * compute_func(fabs(2.*x/N), window_func); in sinc()
Dmdf.c79 #ifndef M_PI
80 #define M_PI 3.14159265358979323846 macro
479 st->window[i] = .5-.5*cos(2*M_PI*i/N); in speex_echo_state_init_mc()
Dpreprocess.c71 #ifndef M_PI
72 #define M_PI 3.14159263 macro
Dsb_celp.c107 #ifndef M_PI
108 #define M_PI 3.14159265358979323846 /* pi */ macro
Dnb_celp.c57 #ifndef M_PI
58 #define M_PI 3.14159265358979323846 /* pi */ macro
/external/srec/srec/include/
Dall_defs.h105 #ifndef M_PI
106 #define M_PI 3.14159265358979323846 macro
/external/webkit/JavaScriptCore/wtf/
DMathExtras.h53 #ifndef M_PI
57 const double piDouble = M_PI;
58 const float piFloat = static_cast<float>(M_PI);
/external/webkit/WebCore/platform/graphics/cairo/
DGraphicsContextCairo.cpp59 #ifndef M_PI
60 #define M_PI 3.14159265358979323846 macro
282 cairo_arc(cr, 0., 0., 1., 0., 2 * M_PI); in drawEllipse()
322 …e(cr, x + hRadius, (y + vRadius) * reverseScaleFactor, hRadius, -fa * M_PI/180, -falen * M_PI/180); in strokeArc()
349 distance = static_cast<int>((M_PI * hRadius) / 2.0); in strokeArc()
351 … distance = static_cast<int>((M_PI * sqrtf((hRadius * hRadius + vRadius * vRadius) / 2.0)) / 2.0); in strokeArc()
/external/webkit/WebCore/platform/graphics/filters/
DFEColorMatrix.cpp95 double cosHue = cos(hue * M_PI / 180); in huerotate()
96 double sinHue = sin(hue * M_PI / 180); in huerotate()
/external/webkit/WebCore/platform/graphics/qt/
DPathQt.cpp47 #ifndef M_PI
48 # define M_PI 3.14159265358979323846 macro
239 #define DEGREES(t) ((t) * 180.0 / M_PI)
DGraphicsContextQt.cpp66 #ifndef M_PI
67 #define M_PI 3.14159265358979323846 macro
1036 m_data->p()->rotate(180/M_PI*radians); in rotate()
1040 m_data->currentPath = m_data->currentPath * matrix.rotate(-180/M_PI*radians); in rotate()
/external/tesseract/training/
Dmftraining.cpp60 #ifndef M_PI
61 #define M_PI 3.14159265358979323846 macro
138 double angle = OrientationOf(prototype->Mean) * 2 * M_PI; in DisplayProtoList()
/external/srec/srec/cfront/
Dfrontobj.c498 f = (2 * M_PI) / win_len; in hamming_window()
626 f = (float)(M_PI / num_fb); in setup_cep_object()
/external/tesseract/liblept/
Dfreetype.c314 angle = angle * (M_PI/180); in pixWriteTTFText()
/external/qemu/android/skin/
Dtrackball.c106 #define ANGLE_FACTOR (M_PI/200)
/external/bluetooth/glib/
DChangeLog.pre-2-05605 G_SQRT2. M_PI etc aren't necessarily in <math.h> in strict ISO C
/external/webkit/JavaScriptCore/
DChangeLog-2007-10-141720 Add custom piDouble and piFloat constants to use instead of M_PI.
/external/webkit/WebCore/
DChangeLog-2007-10-1419862 Use new piDouble and piFloat constants instead of M_PI.

12