/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/i915/ |
D | i915_fpc_translate.c | 45 #ifndef M_PI 46 #define M_PI 3.14159265358979323846 macro 81 static const float sin_constants[4] = { 2.0 * M_PI, 82 -8.0f * M_PI * M_PI * M_PI / (3 * 2 * 1), 83 32.0f * M_PI * M_PI * M_PI * M_PI * M_PI / (5 * 4 * 3 * 2 * 1), 84 -128.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (7 * 6 * 5 * 4 * 3 * 2 * 1) 89 -4.0f * M_PI * M_PI / (2 * 1), 90 16.0f * M_PI * M_PI * M_PI * M_PI / (4 * 3 * 2 * 1), 91 -64.0f * M_PI * M_PI * M_PI * M_PI * M_PI * M_PI / (6 * 5 * 4 * 3 * 2 * 1) 524 src0, i915_emit_const1f(p, 1.0f / (float) (M_PI * 2.0)), 0); in i915_translate_instruction() [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/eigen/doc/snippets/ |
D | Cwise_cos.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_tan.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/adhd/cras/src/dsp/ |
D | biquad.c | 32 #ifndef M_PI 33 #define M_PI 3.14159265358979323846 macro 66 double theta = M_PI * cutoff; in biquad_lowpass() 102 double theta = M_PI * cutoff; in biquad_highpass() 144 double w0 = M_PI * frequency; in biquad_bandpass() 176 double w0 = M_PI * frequency; in biquad_lowshelf() 213 double w0 = M_PI * frequency; in biquad_highshelf() 256 double w0 = M_PI * frequency; in biquad_peaking() 292 double w0 = M_PI * frequency; in biquad_notch() 329 double w0 = M_PI * frequency; in biquad_allpass()
|
/external/aac/libFDK/src/ |
D | FDK_trigFcts.cpp | 192 at = FL2FXCONST_DBL(+M_PI / 2 / ATO_SCALE); in fixp_atan2() 198 at = FL2FXCONST_DBL(-M_PI / 2 / ATO_SCALE); in fixp_atan2() 221 ret = at2 + FL2FXCONST_DBL(M_PI / AT2O_SCALE); in fixp_atan2() 223 ret = at2 - FL2FXCONST_DBL(M_PI / AT2O_SCALE); in fixp_atan2() 228 ret = FL2FXCONST_DBL(+M_PI / 2 / AT2O_SCALE); in fixp_atan2() 230 ret = FL2FXCONST_DBL(-M_PI / 2 / AT2O_SCALE); in fixp_atan2()
|
/external/tensorflow/tensorflow/compiler/xla/client/lib/ |
D | math_test.cc | 314 static_cast<float>(std::log(M_PI) / 2), in XLA_TEST_F() 315 static_cast<float>(std::log(M_PI) / 2 - std::log(2)), in XLA_TEST_F() 316 static_cast<float>(std::log(M_PI) / 2 - std::log(4) + std::log(3)), in XLA_TEST_F() 317 static_cast<float>(std::log(M_PI) / 2 - std::log(3) + std::log(4)), in XLA_TEST_F() 318 static_cast<float>(std::log(M_PI) / 2 - std::log(105) + std::log(16)), in XLA_TEST_F() 319 static_cast<float>(std::log(M_PI) / 2 - std::log(10395) + std::log(64))}; in XLA_TEST_F() 358 static_cast<float>(-M_PI / 2 / std::sqrt(3) - 3 * std::log(3) / 2 - in XLA_TEST_F() 360 static_cast<float>(-M_PI / 2 - 3 * std::log(2) - euler_mascheroni), in XLA_TEST_F() 361 static_cast<float>(-M_PI * std::sqrt(3) / 2 - 2 * std::log(2) - in XLA_TEST_F() 364 -M_PI / 2 - 4 * std::log(2) - in XLA_TEST_F() [all …]
|
/external/tensorflow/tensorflow/lite/experimental/microfrontend/lib/ |
D | window_util.c | 23 #ifndef M_PI 24 #define M_PI 3.14159265358979323846 macro 44 const float arg = M_PI * 2.0 / ((float)state->size); in WindowPopulateState()
|
/external/pdfium/third_party/lcms/src/ |
D | cmspcs.c | 315 return (deg * M_PI) / 180.; in RADIANS() 330 h *= (180. / M_PI); in atan2deg() 360 cmsFloat64Number h = (LCh -> h * M_PI) / 180.0; in cmsLCh2Lab() 525 t = 0.627+(0.055*cos((Aveh-254)/(180/M_PI))- in cmsBFDdeltaE() 526 0.040*cos((2*Aveh-136)/(180/M_PI))+ in cmsBFDdeltaE() 527 0.070*cos((3*Aveh-31)/(180/M_PI))+ in cmsBFDdeltaE() 528 0.049*cos((4*Aveh+114)/(180/M_PI))- in cmsBFDdeltaE() 529 0.015*cos((5*Aveh-103)/(180/M_PI))); in cmsBFDdeltaE() 532 rh = -0.260*cos((Aveh-308)/(180/M_PI))- in cmsBFDdeltaE() 533 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 | 113 #ifndef M_PI 114 #define M_PI (3.14159265358979323846f) macro 164 residual = fMult(x, FL2FXCONST_DBL(1.0 / M_PI)); in fixp_sin_cos_residual_inline() 168 residual = fMult(residual, FL2FXCONST_DBL(M_PI / 4.0)) << 2; in fixp_sin_cos_residual_inline()
|
/external/OpenCL-CTS/test_conformance/commonfns/ |
D | test_degrees.cpp | 25 #ifndef M_PI 26 #define M_PI 3.14159265358979323846264338327950288 macro 92 r = (180.0 / M_PI) * inptr[i]; in verify_degrees() 151 p[i] = get_random_float((float)(-100000.f * M_PI), (float)(100000.f * M_PI) ,d); in test_degrees() 379 p[i] = get_random_double((-100000. * M_PI), (100000. * M_PI) ,d); in test_degrees_double()
|
D | test_radians.cpp | 25 #ifndef M_PI 26 #define M_PI 3.14159265358979323846264338327950288 macro 92 r = (M_PI / 180.0) * inptr[i]; in verify_radians() 152 p[i] = get_random_float((float)(-100000.f * M_PI), (float)(100000.f * M_PI) ,d); in test_radians() 381 p[i] = get_random_double((float)(-100000.0 * M_PI), (float)(100000.0 * M_PI) ,d); in test_radians_double()
|
/external/webrtc/webrtc/base/ |
D | mathutils.h | 16 #ifndef M_PI 17 #define M_PI 3.14159265359f macro
|
/external/libcxx/test/libcxx/depr/depr.c.headers/ |
D | math_h.sh.cpp | 19 #ifndef M_PI 20 #error M_PI not defined
|
/external/speex/libspeexdsp/ |
D | scal.c | 55 #ifndef M_PI 56 #define M_PI 3.14159265358979323846 /* pi */ macro 109 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() 235 float coef = M_PI*0.075063 * 0.93763 * amount * .8 * 0.707; in speex_decorrelate()
|
/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()
|
/external/tremolo/Tremolo/ |
D | os.h | 55 #ifndef M_PI 56 # define M_PI (3.1415926536f) macro
|
/external/libopus/celt/tests/ |
D | test_unit_mdct.c | 40 #ifndef M_PI 41 #define M_PI 3.141592653 macro 55 double phase = 2*M_PI*(k+.5+.25*nfft)*(bin+.5)/nfft; in check() 85 double phase = 2*M_PI*(bin+.5+.25*nfft)*(k+.5)/nfft; in check_inv()
|