/external/v8/test/mjsunit/ |
D | sin-cos.js | 33 assertEquals(1, Math.cos(-0)); 38 return Math.sin(x) + Math.cos(x) + Math.tan(x); 54 assertEquals(1, Math.cos(0)); 55 assertEquals(-1, Math.cos(Math.PI)); 64 assertTrue(Math.sin(x) != Math.cos(x)); 99 function cos(x) { function 137 var err_cos = abs_error(Math.cos, cos, x) 155 assertEquals(-1, Math.cos({ valueOf: function() { return Math.PI; } })); 157 assertEquals(1, Math.cos("0x00000")); 159 assertTrue(isNaN(Math.cos("-Infinity"))); [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
|
D | sincospi.ll | 23 %cos = call float @__cospif(float %val) #0 24 %res = fadd float %sin, %cos 42 %cos = call float @__cospif(float 1.0) #0 43 %res = fadd float %sin, %cos 60 %cos = call double @__cospi(double %val) #0 61 %res = fadd double %sin, %cos 79 %cos = call double @__cospi(double 1.0) #0 80 %res = fadd double %sin, %cos
|
/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 …= (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() 112 …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() 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 …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() 160 …[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() 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/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 17 ; CHECK: bl cos 23 %cos = call fp128 @cosl(fp128 %f) readnone 24 %val = fadd fp128 %sin, %cos 34 declare double @cos(double) readonly
|
D | sincospow-vector-expansion.ll | 6 ; CHECK: bl cos 7 ; CHECK: bl cos 8 %1 = call <2 x double> @llvm.cos.v2f64(<2 x double> %v1) 31 declare <2 x double> @llvm.cos.v2f64(<2 x double>) 37 ; CHECK: bl cos 38 ; CHECK: bl cos 39 %1 = call <2 x float> @llvm.cos.v2f32(<2 x float> %v1) 59 declare <2 x float> @llvm.cos.v2f32(<2 x float>) 65 ; CHECK: bl cos 66 ; CHECK: bl cos [all …]
|
D | arm64-sincos.ll | 4 ; Combine sin / cos into a single call. 31 ; CHECK-LINUX: bl cos 34 %call1 = tail call double @cos(double %x) nounwind readnone 42 declare double @cos(double) readonly
|
/external/llvm/test/CodeGen/R600/ |
D | llvm.cos.ll | 15 %cos = call float @llvm.cos.f32(float %x) 16 store float %cos, float addrspace(1)* %out 33 %cos = call <4 x float> @llvm.cos.v4f32(<4 x float> %vx) 34 store <4 x float> %cos, <4 x float> addrspace(1)* %out 38 declare float @llvm.cos.f32(float) readnone 39 declare <4 x float> @llvm.cos.v4f32(<4 x float>) readnone
|
/external/mesa3d/src/glsl/builtins/ir/ |
D | cos.ir | 1 ((function cos 5 ((return (expression float cos (var_ref angle))))) 10 ((return (expression vec2 cos (var_ref angle))))) 15 ((return (expression vec3 cos (var_ref angle))))) 20 ((return (expression vec4 cos (var_ref angle)))))
|
D | tan.ir | 5 …((return (expression float / (expression float sin (var_ref angle)) (expression float cos (var_ref… 10 …((return (expression vec2 / (expression vec2 sin (var_ref angle)) (expression vec2 cos (var_ref an… 15 …((return (expression vec3 / (expression vec3 sin (var_ref angle)) (expression vec3 cos (var_ref an… 20 …((return (expression vec4 / (expression vec4 sin (var_ref angle)) (expression vec4 cos (var_ref an…
|
/external/chromium-trace/trace-viewer/tracing/third_party/gl-matrix/spec/gl-matrix/ |
D | mat4-spec.js | 356 0, Math.cos(rad), Math.sin(rad), 0, 357 0, -Math.sin(rad), Math.cos(rad), 0, 378 0, Math.cos(rad), Math.sin(rad), 0, 379 0, -Math.sin(rad), Math.cos(rad), 0, 396 0, Math.cos(rad), Math.sin(rad), 0, 397 0, -Math.sin(rad), Math.cos(rad), 0, 418 0, Math.cos(rad), Math.sin(rad), 0, 419 0, -Math.sin(rad), Math.cos(rad), 0, 435 Math.cos(rad), 0, -Math.sin(rad), 0, 437 Math.sin(rad), 0, Math.cos(rad), 0, [all …]
|
/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() 147 J w = sin(x) / cos(x); in TEST() 283 ExpectJetsClose(cos(acos(a)), a); in TEST() 284 ExpectJetsClose(acos(cos(a)), a); in TEST() 287 ExpectJetsClose(cos(acos(b)), b); in TEST() 288 ExpectJetsClose(acos(cos(b)), b); in TEST()
|
/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/crcalc/tests/src/com/hp/creals/ |
D | CRTest.java | 123 check_eq(cosine.execute(one), one.cos(), "monotoneDerivative failed"); in testCR() 124 check_eq(cosine.execute(three), three.cos(), in testCR() 127 check_eq(acos.execute(one.cos()), one, "acos(cos(1) failed"); in testCR() 144 check_appr_eq(Math.cos(n), CR.valueOf(n).cos().doubleValue(), in testCR() 159 check_appr_eq(Math.cos(12345678.0), in testCR() 160 CR.valueOf(12345678).cos().doubleValue(), in testCR()
|
D | SlowCRTest.java | 71 checkApprEq(x.cos().doubleValue(), Math.cos(xAsDouble), in checkTrig() 87 checkApprEq(COSINE.execute(x).doubleValue(), Math.cos(xAsDouble), in checkTrig() 89 checkEq(COSINE.execute(x), x.cos(), in checkTrig() 98 x.sin().multiply(v.cos()).add(x.cos().multiply(v.sin())), in checkTrig() 101 checkEq(x.cos().multiply(x.cos()).add(x.sin().multiply(x.sin())), in checkTrig() 107 CR xcos = x.cos(); in checkTrig()
|
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/ |
D | cmspcs.c | 354 Lab -> a = LCh -> C * cos(h); 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() 525 0.636*cos((3*Aveh+254)/(180/M_PI))+ in cmsBFDdeltaE() 526 0.226*cos((4*Aveh+140)/(180/M_PI))- in cmsBFDdeltaE() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/ |
D | Complex.java | 546 public Complex cos() { in cos() method in Complex 551 return createComplex(FastMath.cos(real) * MathUtils.cosh(imaginary), in cos() 585 return createComplex(MathUtils.cosh(real) * FastMath.cos(imaginary), in cosh() 621 return createComplex(expReal * FastMath.cos(imaginary), expReal * FastMath.sin(imaginary)); in exp() 718 FastMath.cos(real) * MathUtils.sinh(imaginary)); in sin() 751 return createComplex(MathUtils.sinh(real) * FastMath.cos(imaginary), in sinh() 861 double d = FastMath.cos(real2) + MathUtils.cosh(imaginary2); in tan() 899 double d = MathUtils.cosh(real2) + FastMath.cos(imaginary2); in tanh() 971 final double realPart = nthRootOfAbs * FastMath.cos(innerPart); in nthRoot()
|
/external/skia/samplecode/ |
D | SampleVertices.cpp | 176 SkScalar cos; in make_fan() local 177 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos); in make_fan() 178 v[i+1].set(cos, sin); in make_fan() 204 SkScalar cos; in make_strip() local 205 SkScalar sin = SkScalarSinCos(SK_ScalarPI * 2 * i / n, &cos); in make_strip() 206 v[i*2 + 0].set(cos/2, sin/2); in make_strip() 207 v[i*2 + 1].set(cos, sin); in make_strip()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CalendarAstronomer.java | 445 double cosE = Math.cos(obliq); in eclipticToEquatorial() 448 double cosL = Math.cos(eclipLong); in eclipticToEquatorial() 451 double cosB = Math.cos(eclipLat); in eclipticToEquatorial() 481 double cosH = Math.cos(H); in eclipticToHorizon() 483 double cosD = Math.cos(equatorial.declination); in eclipticToHorizon() 485 double cosL = Math.cos(fLatitude); in eclipticToHorizon() 1071 double x = Math.cos(moonLongitude - nodeLongitude); 1073 moonEclipLong = Math.atan2(y*Math.cos(moonI), x) + nodeLongitude; 1119 return 0.5 * (1 - Math.cos(getMoonAge())); 1312 double cosD = Math.cos(pos.declination); [all …]
|
/external/skia/gm/ |
D | anisotropic.cpp | 43 SkScalar angle = 0.0f, sin, cos; in onOnceBeforeDraw() local 47 sin = SkScalarSinCos(angle, &cos); in onOnceBeforeDraw() 48 canvas.drawLine(cos * kInnerOffset, sin * kInnerOffset, in onOnceBeforeDraw() 49 cos * kImageSize/2, sin * kImageSize/2, p); in onOnceBeforeDraw()
|
/external/skia/experimental/SkV8Example/js/ |
D | gears.js | 16 pathLike.moveTo(Math.sin(-2*dTq)*outer, Math.cos(-2*dTq)*outer); 18 pathLike.lineTo(Math.sin(dT*i-dTq)*outer, Math.cos(dT*i-dTq)*outer); 19 pathLike.lineTo(Math.sin(dT*i+dTq)*inner, Math.cos(dT*i+dTq)*inner); 20 pathLike.lineTo(Math.sin(dT*(i+1)-dTq)*inner, Math.cos(dT*(i+1)-dTq)*inner); 21 pathLike.lineTo(Math.sin(dT*(i+1)+dTq)*outer, Math.cos(dT*(i+1)+dTq)*outer);
|
/external/llvm/test/CodeGen/XCore/ |
D | float-intrinsics.ll | 2 declare double @llvm.cos.f64(double) 13 define double @cos(double %F) { 14 ; CHECK-LABEL: 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)
|