/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
D | 15.8.2.7.js | 46 …tem++] = new TestCase( SECTION, "Math.cos.length", 1, Math.cos.length ); 48 …ray[item++] = new TestCase( SECTION, "Math.cos()", Number.NaN, Math.cos() ); 49 …em++] = new TestCase( SECTION, "Math.cos(void 0)", Number.NaN, Math.cos(void 0) ); 50 …tem++] = new TestCase( SECTION, "Math.cos(false)", 1, Math.cos(false) ); 51 …item++] = new TestCase( SECTION, "Math.cos(null)", 1, Math.cos(null) ); 53 …[item++] = new TestCase( SECTION, "Math.cos('0')", 1, Math.cos('0') ); 54 …] = new TestCase( SECTION, "Math.cos('Infinity')", Number.NaN, Math.cos("Infinity") ); 55 …w TestCase( SECTION, "Math.cos('3.14159265359')", -1, Math.cos('3.14159265359') ); 57 … TestCase( SECTION, "Math.cos(NaN)", Number.NaN, Math.cos(Number.NaN) … 58 … TestCase( SECTION, "Math.cos(0)", 1, Math.cos(0) … [all …]
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
D | CipherOutputStreamTest.java | 57 CipherOutputStream cos = new CipherOutputStream(tos); in testCipherOutputStream() local 58 cos.write(data); in testCipherOutputStream() 59 cos.flush(); in testCipherOutputStream() 73 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); in testWrite1() local 75 cos.write(data[i]); in testWrite1() 77 cos.flush(); in testWrite1() 91 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); in testWrite2() local 92 cos.write(data); in testWrite2() 93 cos.flush(); in testWrite2() 106 CipherOutputStream cos = new CipherOutputStream(tos, new NullCipher()); in testWrite3() local [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | cos-1.ll | 1 ; Test that the cos library call simplifier works correctly. 8 declare double @cos(double) 10 ; Check cos(-x) -> cos(x); 15 %cos = call double @cos(double %neg) 16 ; NO-FLOAT-SHRINK: call double @cos(double %d) 17 ret double %cos 24 %cos = call double @cos(double %neg) 25 %conv2 = fptrunc double %cos to float 34 %cos = call double @cos(double %neg) 35 ; NO-FLOAT-SHRINK: call double @cos(double %conv1) [all …]
|
D | cos-2.ll | 1 ; Test that the cos library call simplifier works correctly. 7 declare float @cos(double) 9 ; Check that cos functions with the wrong prototype aren't simplified. 14 %cos = call float @cos(double %neg) 15 ; CHECK: call float @cos(double %neg) 16 ret float %cos
|
/external/flac/libFLAC/ |
D | window.c | 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 …= (FLAC__real)(0.35875f - 0.48829f * cos(2.0f * M_PI * n / N) + 0.14128f * cos(4.0f * M_PI * n / N… in FLAC__window_blackman_harris_4term_92db_sidelobe() 115 …real)(1.0f - 1.93f * cos(2.0f * M_PI * n / N) + 1.29f * cos(4.0f * M_PI * n / N) - 0.388f * cos(6.… 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 …ow[n] = (FLAC__real)(0.402f - 0.498f * cos(2.0f * M_PI * n / N) + 0.098f * cos(4.0f * M_PI * n / N… in FLAC__window_kaiser_bessel() 163 …[n] = (FLAC__real)(0.3635819f - 0.4891775f*cos(2.0f*M_PI*n/N) + 0.1365995f*cos(4.0f*M_PI*n/N) - 0.… in FLAC__window_nuttall() 206 window[n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * n / Np)); in FLAC__window_tukey() 207 window[L-Np-1+n] = (FLAC__real)(0.5f - 0.5f * cos(M_PI * (n+Np) / Np)); in FLAC__window_tukey()
|
/external/llvm/test/CodeGen/AArch64/ |
D | sincos-expansion.ll | 5 %cos = call float @cosf(float %f) readnone 8 %val = fadd float %sin, %cos 14 %cos = call double @cos(double %f) readnone 15 %val = fadd double %sin, %cos 16 ; CHECK: bl cos 23 %cos = call fp128 @cosl(fp128 %f) readnone 24 %val = fadd fp128 %sin, %cos 34 declare double @cos(double) readonly
|
/external/stlport/src/ |
D | complex_trig.cpp | 70 ::cos(z._M_re) * ::sinh(z._M_im)); in sinT() 88 return complex<_Tp>(::cos(z._M_re) * ::cosh(z._M_im), in cosT() 92 _STLP_DECLSPEC complex<float> _STLP_CALL cos(const complex<float>& z) in cos() function 95 _STLP_DECLSPEC complex<double> _STLP_CALL cos(const complex<double>& z) in cos() function 99 _STLP_DECLSPEC complex<long double> _STLP_CALL cos(const complex<long double>& z) in cos() function 113 _Tp den = ::cos(re2) + ::cosh(im2); in tanT() 133 return complex<_Tp>(::sinh(z._M_re) * ::cos(z._M_im), in sinhT() 152 return complex<_Tp>(::cosh(z._M_re) * ::cos(z._M_im), in coshT() 176 _Tp den = ::cosh(re2) + ::cos(im2); in tanhT()
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
D | StemFunction.h | 30 static Scalar cos(Scalar x, int n) in cos() function 35 res = std::cos(x); in cos() 41 res = -std::cos(x); in cos() 59 res = std::cos(x); in sin() 65 res = -std::cos(x); in sin()
|
/external/ceres-solver/internal/ceres/ |
D | jet_test.cc | 110 J z = cos(J(2.0) * x); in TEST() 111 J w = cos(x)*cos(x) - sin(x)*sin(x); in TEST() 119 J w = J(2.0)*cos(x)*sin(x); in TEST() 126 J z = cos(x) * cos(x); in TEST() 139 J u = atan2(r * sin(t), r * cos(t)); in TEST() 251 ExpectJetsClose(cos(acos(a)), a); in TEST() 252 ExpectJetsClose(acos(cos(a)), a); in TEST() 255 ExpectJetsClose(cos(acos(b)), b); in TEST() 256 ExpectJetsClose(acos(cos(b)), b); in TEST()
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/transport/ |
D | TransportConnection.java | 36 CipherOutputStream cos; field in TransportConnection 75 this.cos = new CipherOutputStream(new NullCipher(), os); in TransportConnection() 99 cos.changeCipher(bc); in changeSendCipher() 180 cos.write(send_packet_header_buffer, 0, 5); in sendMessage() 181 cos.write(message, off, len); in sendMessage() 182 cos.write(send_padding_buffer, 0, padd_len); in sendMessage() 192 cos.writePlain(send_mac_buffer, 0, send_mac_buffer.length); in sendMessage() 195 cos.flush(); in sendMessage()
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
D | TextureGeneratorMagic.java | 55 xyz[1] = -(float) Math.cos(xyz[0] - xyz[1] + xyz[2]) * turbulence; 61 xyz[0] = (float) Math.cos(xyz[0] - xyz[1] - xyz[2]) * turbulence; 73 xyz[0] = -(float) Math.cos(-xyz[0] + xyz[1] - xyz[2]) * turbulence; 85 xyz[1] = -(float) Math.cos(-xyz[0] + xyz[1] + xyz[2]) * turbulence; 91 xyz[0] = (float) Math.cos(xyz[0] + xyz[1] + xyz[2]) * turbulence; 103 xyz[0] = -(float) Math.cos(-xyz[0] - xyz[1] + xyz[2]) * turbulence; 144 xyz[1] = (float) Math.cos((-texvec[0] + texvec[1] - texvec[2]) * 5.0f); in generate() 145 xyz[2] = -(float) Math.cos((-texvec[0] - texvec[1] + texvec[2]) * 5.0f); in generate()
|
/external/v8/test/mjsunit/ |
D | sin-cos.js | 36 assertEquals(1, Math.cos(0)); 37 assertEquals(-1, Math.cos(Math.PI)); 46 assertTrue(Math.sin(x) != Math.cos(x));
|
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeTiger/SDL OpenGL Application/atlantis/ |
D | swim.c | 60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot() 61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot() 155 fish->x += SHARKSPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in SharkPilot() 156 fish->y += SHARKSPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in SharkPilot()
|
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeSnowLeopard/SDL OpenGL Application/atlantis/ |
D | swim.c | 60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot() 61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot() 155 fish->x += SHARKSPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in SharkPilot() 156 fish->y += SHARKSPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in SharkPilot()
|
/external/qemu/distrib/sdl-1.2.15/Xcode/TemplatesForXcodeLeopard/SDL OpenGL Application/atlantis/ |
D | swim.c | 60 fish->x += WHALESPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot() 61 fish->y += WHALESPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in WhalePilot() 155 fish->x += SHARKSPEED * fish->v * cos(fish->psi / RAD) * cos(fish->theta / RAD); in SharkPilot() 156 fish->y += SHARKSPEED * fish->v * sin(fish->psi / RAD) * cos(fish->theta / RAD); in SharkPilot()
|
/external/stlport/stlport/stl/config/ |
D | _como.h | 87 # define cosl cos 115 # define cosf cos 116 # define cosl cos 161 # define cosl cos
|
/external/llvm/test/CodeGen/XCore/ |
D | float-intrinsics.ll | 2 declare double @llvm.cos.f64(double) 13 define double @cos(double %F) { 14 ; CHECK: cos: 15 ; CHECK: bl cos 16 %result = call double @llvm.cos.f64(double %F) 20 declare float @llvm.cos.f32(float) 25 %result = call float @llvm.cos.f32(float %F)
|
/external/llvm/test/CodeGen/ARM/ |
D | vfloatintrinsics.ll | 26 ; CHECK: test_v2f32.cos: 27 define %v2f32 @test_v2f32.cos(%v2f32 %a) { 28 ; CHECK: cos 29 %1 = call %v2f32 @llvm.cos.v2f32(%v2f32 %a) 114 declare %v2f32 @llvm.cos.v2f32(%v2f32) #0 150 ; CHECK: test_v4f32.cos: 151 define %v4f32 @test_v4f32.cos(%v4f32 %a) { 152 ; CHECK: cos 153 %1 = call %v4f32 @llvm.cos.v4f32(%v4f32 %a) 238 declare %v4f32 @llvm.cos.v4f32(%v4f32) #0 [all …]
|
/external/jmonkeyengine/engine/src/core/com/jme3/effect/ |
D | ParticleTriMesh.java | 215 float cos = FastMath.cos(p.angle) * p.size; in updateParticleData() local 218 left.x = camLeft.x * cos + camUp.x * sin; in updateParticleData() 219 left.y = camLeft.y * cos + camUp.y * sin; in updateParticleData() 220 left.z = camLeft.z * cos + camUp.z * sin; in updateParticleData() 222 up.x = camLeft.x * -sin + camUp.x * cos; in updateParticleData() 223 up.y = camLeft.y * -sin + camUp.y * cos; in updateParticleData() 224 up.z = camLeft.z * -sin + camUp.z * cos; in updateParticleData()
|
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
D | NavCalculator.java | 100 distance = (float) Math.abs(dLat / Math.cos(Math.toRadians(trueCourse))); in mercatorSailing() 131 redist = Math.abs(dLong * (float) Math.cos(p1.getLatitude() * 2 * Math.PI / 360)); in planeSailing() 274 double futureLat = currentLat + speed * time * Math.cos(course); in predictPosition() 320 double dlat = distance * Math.cos(angle); in computePosition() 331 double dlong = dep * (1.0 / Math.cos(Math.toRadians(meanLat))); in computePosition() 536 double y = Math.sin(dLon) * Math.cos(p2.getLatitude()); in computeBearing() 537 double x = Math.cos(p1.getLatitude()) * Math.sin(p2.getLatitude()) in computeBearing() 538 - Math.sin(p1.getLatitude()) * Math.cos(p2.getLatitude()) * Math.cos(dLon); in computeBearing()
|
/external/icu4c/i18n/ |
D | astro.cpp | 466 double cosE = cos(obliq); in eclipticToEquatorial() 469 double cosL = cos(eclipLong); in eclipticToEquatorial() 472 double cosB = cos(eclipLat); in eclipticToEquatorial() 506 double cosH = cos(H); in eclipticToHorizon() 508 double cosD = cos(equatorial.declination); in eclipticToHorizon() 510 double cosL = cos(fLatitude); in eclipticToHorizon() 602 E = E - delta / (1 - eccentricity * ::cos(E)); in trueAnomaly() 1133 double x = cos(moonLongitude - nodeLongitude); in getMoonPosition() 1135 moonEclipLong = ::atan2(y*cos(moonI), x) + nodeLongitude; in getMoonPosition() 1184 return 0.5 * (1 - cos(getMoonAge())); in getMoonPhase() [all …]
|
/external/libvorbis/doc/ |
D | 06-floor0.tex | 157 …p & = & (1 - \cos^2\omega)\prod_{j=0}^{\frac{\mathtt{floor0\_order}-3}{2}} 4 (\cos([\mathtt{coeffi… 158 …4} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-1}{2}} 4 (\cos([\mathtt{coefficients}]_{2j}) - \cos \… 166 …p & = & \frac{(1 - \cos^2\omega)}{2} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-2}{2}} 4 (\cos([\ma… 167 …q & = & \frac{(1 + \cos^2\omega)}{2} \prod_{j=0}^{\frac{\mathtt{floor0\_order}-2}{2}} 4 (\cos([\ma…
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/ |
D | Cylinder.java | 251 float[] cos = new float[radialSamples + 1]; in updateGeometry() local 255 cos[radialCount] = FastMath.cos(angle); in updateGeometry() 259 cos[radialSamples] = cos[0]; in updateGeometry() 271 vRadial.set(cos[radialCount], sin[radialCount], 0.0f); in updateGeometry() 316 tempNormal.set(cos[radialCount], sin[radialCount], 0.0f); in updateGeometry()
|
/external/skia/src/core/ |
D | SkCordic.cpp | 56 SkFixed cos = kFixedInvGain1; in SkCordicSinCos() local 57 SkCircularRotation(&cos, &sin, &scaledRadians); in SkCordicSinCos() 61 scaled.setMul(cos, 0x6488d); in SkCordicSinCos() 70 int32_t cos; in SkCordicTan() local 71 int32_t sin = SkCordicSinCos(a, &cos); in SkCordicTan() 72 return SkFixedDiv(sin, cos); in SkCordicTan()
|
/external/skia/legacy/src/core/ |
D | SkCordic.cpp | 58 SkFixed cos = kFixedInvGain1; in SkCordicSinCos() local 59 SkCircularRotation(&cos, &sin, &scaledRadians); in SkCordicSinCos() 63 scaled.setMul(cos, 0x6488d); in SkCordicSinCos() 72 int32_t cos; in SkCordicTan() local 73 int32_t sin = SkCordicSinCos(a, &cos); in SkCordicTan() 74 return SkFixedDiv(sin, cos); in SkCordicTan()
|