/external/flac/libFLAC/ |
D | window.c | 71 …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() 80 …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() 90 …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() 112 … 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() 133 window[n] = (FLAC__real)(0.54f - 0.46f * cos(2.0f * M_PI * n / N)); in FLAC__window_hamming() 142 window[n] = (FLAC__real)(0.5f - 0.5f * cos(2.0f * M_PI * n / N)); in FLAC__window_hann() 151 …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() 160 …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() 203 window[n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * n / Np)); in FLAC__window_tukey() 204 window[L-Np-1+n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * (n+Np) / Np)); in FLAC__window_tukey() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/beamformer/ |
D | nonlinear_beamformer_unittest.cc | 60 Verify(&bf, static_cast<float>(M_PI) / 2.f); in TEST() 61 AimAndVerify(&bf, static_cast<float>(M_PI) / 3.f); in TEST() 62 AimAndVerify(&bf, 3.f * static_cast<float>(M_PI) / 4.f); in TEST() 63 AimAndVerify(&bf, static_cast<float>(M_PI) / 6.f); in TEST() 64 AimAndVerify(&bf, static_cast<float>(M_PI)); in TEST() 77 EXPECT_FLOAT_EQ(M_PI / 2.f - bf.away_radians_, in TEST() 79 EXPECT_FLOAT_EQ(M_PI / 2.f + bf.away_radians_, in TEST() 83 EXPECT_FLOAT_EQ(M_PI - bf.away_radians_ / 2.f, in TEST() 98 EXPECT_FLOAT_EQ(M_PI / 2.f - bf.away_radians_, in TEST() 100 EXPECT_FLOAT_EQ(M_PI / 2.f + bf.away_radians_, in TEST() [all …]
|
D | array_util_unittest.cc | 160 EXPECT_FLOAT_EQ(static_cast<float>(M_PI) / 6.f, DegreesToRadians(30.f)); in TEST() 161 EXPECT_FLOAT_EQ(-static_cast<float>(M_PI) / 4.f, DegreesToRadians(-45.f)); in TEST() 162 EXPECT_FLOAT_EQ(static_cast<float>(M_PI) / 3.f, DegreesToRadians(60.f)); in TEST() 163 EXPECT_FLOAT_EQ(-static_cast<float>(M_PI) / 2.f, DegreesToRadians(-90.f)); in TEST() 164 EXPECT_FLOAT_EQ(2.f * static_cast<float>(M_PI) / 3.f, in TEST() 166 EXPECT_FLOAT_EQ(-3.f * static_cast<float>(M_PI) / 4.f, in TEST() 168 EXPECT_FLOAT_EQ(5.f * static_cast<float>(M_PI) / 6.f, in TEST() 170 EXPECT_FLOAT_EQ(-static_cast<float>(M_PI), DegreesToRadians(-180.f)); in TEST() 175 EXPECT_FLOAT_EQ(30.f, RadiansToDegrees(M_PI / 6.f)); in TEST() 176 EXPECT_FLOAT_EQ(-45.f, RadiansToDegrees(-M_PI / 4.f)); in TEST() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_test_arit.c | 224 -5*M_PI/4, 225 -4*M_PI/4, 226 -4*M_PI/4, 227 -3*M_PI/4, 228 -2*M_PI/4, 229 -1*M_PI/4, 230 1*M_PI/4, 231 2*M_PI/4, 232 3*M_PI/4, 233 4*M_PI/4, [all …]
|
/external/mesa3d/src/gallium/drivers/i915/ |
D | i915_fpc_translate.c | 45 #ifndef M_PI 46 #define M_PI 3.14159265358979323846 macro 96 static const float sin_constants[4] = { 2.0 * M_PI, 97 -8.0f * M_PI * M_PI * M_PI / (3 * 2 * 1), 98 32.0f * M_PI * M_PI * M_PI * M_PI * M_PI / (5 * 4 * 3 * 2 * 1), 99 -128.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (7 * 6 * 5 * 4 * 3 * 2 * 1) 104 -4.0f * M_PI * M_PI / (2 * 1), 105 16.0f * M_PI * M_PI * M_PI * M_PI / (4 * 3 * 2 * 1), 106 -64.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (6 * 5 * 4 * 3 * 2 * 1) 540 src0, i915_emit_const1f(p, 1.0f / (float) (M_PI * 2.0)), 0); in i915_translate_instruction() [all …]
|
/external/eigen/doc/snippets/ |
D | Cwise_tan.cpp | 1 Array3d v(M_PI, M_PI/2, M_PI/3);
|
D | Cwise_sin.cpp | 1 Array3d v(M_PI, M_PI/2, M_PI/3);
|
D | Cwise_cos.cpp | 1 Array3d v(M_PI, M_PI/2, M_PI/3);
|
D | AngleAxis_mimic_euler.cpp | 2 m = AngleAxisf(0.25*M_PI, Vector3f::UnitX()) 3 * AngleAxisf(0.5*M_PI, Vector3f::UnitY()) 4 * AngleAxisf(0.33*M_PI, Vector3f::UnitZ());
|
D | compile_snippet.cpp.in | 7 #ifndef M_PI 8 #define M_PI 3.1415926535897932384626433832795 macro
|
/external/aac/libFDK/src/ |
D | FDK_trigFcts.cpp | 188 at = FL2FXCONST_DBL( +M_PI/2 / ATO_SCALE); in fixp_atan2() 195 at = FL2FXCONST_DBL( -M_PI/2 / ATO_SCALE); in fixp_atan2() 218 ret = at2 + FL2FXCONST_DBL( M_PI / AT2O_SCALE); in fixp_atan2() 220 ret = at2 - FL2FXCONST_DBL( M_PI / AT2O_SCALE); in fixp_atan2() 226 ret = FL2FXCONST_DBL( +M_PI/2 / AT2O_SCALE); in fixp_atan2() 229 ret = FL2FXCONST_DBL( -M_PI/2 / AT2O_SCALE); in fixp_atan2()
|
/external/pdfium/third_party/lcms2-2.6/src/ |
D | cmspcs.c | 306 return (deg * M_PI) / 180.; in RADIANS() 321 h *= (180. / M_PI); in atan2deg() 351 cmsFloat64Number h = (LCh -> h * M_PI) / 180.0; in cmsLCh2Lab() 516 t = 0.627+(0.055*cos((Aveh-254)/(180/M_PI))- in cmsBFDdeltaE() 517 0.040*cos((2*Aveh-136)/(180/M_PI))+ in cmsBFDdeltaE() 518 0.070*cos((3*Aveh-31)/(180/M_PI))+ in cmsBFDdeltaE() 519 0.049*cos((4*Aveh+114)/(180/M_PI))- in cmsBFDdeltaE() 520 0.015*cos((5*Aveh-103)/(180/M_PI))); in cmsBFDdeltaE() 523 rh = -0.260*cos((Aveh-308)/(180/M_PI))- in cmsBFDdeltaE() 524 0.379*cos((2*Aveh-160)/(180/M_PI))- in cmsBFDdeltaE() [all …]
|
/external/libopus/celt/ |
D | modes.c | 73 #ifndef M_PI 74 #define M_PI 3.141592653 macro 376 …window[i] = Q15ONE*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_PI*(i+.5)/mode->overl… in opus_custom_mode_create() 379 …window[i] = MIN32(32767,floor(.5+32768.*sin(.5*M_PI* sin(.5*M_PI*(i+.5)/mode->overlap) * sin(.5*M_… in opus_custom_mode_create()
|
/external/aac/libFDK/include/ |
D | FDK_trigFcts.h | 100 #ifndef M_PI 101 #define M_PI (3.14159265358979323846f) macro 152 residual = fMult(x, FL2FXCONST_DBL(1.0/M_PI)); in fixp_sin_cos_residual_inline() 156 residual = fMult(residual, FL2FXCONST_DBL(M_PI/4.0)) << 2; in fixp_sin_cos_residual_inline()
|
/external/webrtc/webrtc/base/ |
D | mathutils.h | 16 #ifndef M_PI 17 #define M_PI 3.14159265359f macro
|
/external/libopus/celt/tests/ |
D | test_unit_mdct.c | 65 #ifndef M_PI 66 #define M_PI 3.141592653 macro 80 double phase = 2*M_PI*(k+.5+.25*nfft)*(bin+.5)/nfft; in check() 110 double phase = 2*M_PI*(bin+.5+.25*nfft)*(k+.5)/nfft; in check_inv()
|
D | test_unit_dft.c | 65 #ifndef M_PI 66 #define M_PI 3.141592653 macro 83 double phase = -2*M_PI*bin*k/nfft; in check()
|
/external/eigen/demos/opengl/ |
D | quaternion_demo.cpp | 61 M_PI, 0.*M_PI, in FancySpheres() 62 M_PI, 0.5*M_PI, in FancySpheres() 63 M_PI, 1.*M_PI, in FancySpheres() 64 M_PI, 1.5*M_PI in FancySpheres() 430 Quaternionf q = AngleAxisf( dx*M_PI, Vector3f::UnitY()) in mouseMoveEvent() 431 * AngleAxisf(-dy*M_PI, Vector3f::UnitX()); in mouseMoveEvent()
|
D | trackball.cpp | 47 double sinx = sin(M_PI * x * 0.5); in mapToSphere() 48 double siny = sin(M_PI * y * 0.5); in mapToSphere()
|
/external/tremolo/Tremolo/ |
D | os.h | 55 #ifndef M_PI 56 # define M_PI (3.1415926536f) macro
|
/external/nanopb-c/examples/using_double_on_avr/ |
D | test_conversions.c | 7 M_PI, -M_PI, 123456.789, -123456.789,
|
/external/speex/libspeex/ |
D | math_approx.h | 45 #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()
|
/external/webrtc/webrtc/common_audio/ |
D | window_generator.cc | 44 window[i] = 0.5f * (1 - cosf(2 * static_cast<float>(M_PI) * i / in Hanning() 59 sum += I0(static_cast<float>(M_PI) * alpha * sqrt(1.0f - r * r)).real(); in KaiserBesselDerived()
|
/external/libopus/src/ |
D | analysis.c | 42 #ifndef M_PI 43 #define M_PI 3.141592653 macro 115 #define cE ((float)M_PI/2) 225 const float pi4 = (float)(M_PI*M_PI*M_PI*M_PI); in tonality_analysis() 300 angle = (float)(.5f/M_PI)*fast_atan2f(X1i, X1r); in tonality_analysis() 304 angle2 = (float)(.5f/M_PI)*fast_atan2f(X2i, X2r); in tonality_analysis()
|
/external/libvncserver/test/ |
D | copyrecttest.c | 42 if(phi>2*M_PI) in main() 43 phi-=2*M_PI; in main()
|