Home
last modified time | relevance | path

Searched refs:cos (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
DCipherOutputStreamTest.java57 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/chromium_org/v8/test/mjsunit/
Dsin-cos.js33 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/llvm/test/Transforms/InstCombine/
Dcos-1.ll1 ; 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 …]
Dcos-2.ll1 ; 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/
Dwindow.c74 …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/
Dsincos-expansion.ll5 %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
/external/chromium-trace/trace-viewer/third_party/gl-matrix/spec/gl-matrix/
Dmat4-spec.js355 0, Math.cos(rad), Math.sin(rad), 0,
356 0, -Math.sin(rad), Math.cos(rad), 0,
377 0, Math.cos(rad), Math.sin(rad), 0,
378 0, -Math.sin(rad), Math.cos(rad), 0,
395 0, Math.cos(rad), Math.sin(rad), 0,
396 0, -Math.sin(rad), Math.cos(rad), 0,
417 0, Math.cos(rad), Math.sin(rad), 0,
418 0, -Math.sin(rad), Math.cos(rad), 0,
434 Math.cos(rad), 0, -Math.sin(rad), 0,
436 Math.sin(rad), 0, Math.cos(rad), 0,
[all …]
/external/mesa3d/src/glsl/builtins/ir/
Dcos.ir1 ((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)))))
Dtan.ir5 …((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_org/third_party/mesa/src/src/glsl/builtins/ir/
Dcos.ir1 ((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)))))
Dtan.ir5 …((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/eigen/unsupported/Eigen/src/MatrixFunctions/
DStemFunction.h30 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/stlport/src/
Dcomplex_trig.cpp70 ::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/ceres-solver/internal/ceres/
Djet_test.cc110 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/
DTextureGeneratorMagic.java55 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/ganymed-ssh2/src/main/java/ch/ethz/ssh2/transport/
DTransportConnection.java36 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/v8/test/mjsunit/
Dsin-cos.js36 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/TemplatesForXcodeLeopard/SDL OpenGL Application/atlantis/
Dswim.c60 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/TemplatesForXcodeTiger/SDL OpenGL Application/atlantis/
Dswim.c60 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/
Dswim.c60 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.h87 # define cosl cos
115 # define cosf cos
116 # define cosl cos
161 # define cosl cos
/external/llvm/test/CodeGen/XCore/
Dfloat-intrinsics.ll2 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)
/external/jmonkeyengine/engine/src/core/com/jme3/effect/
DParticleTriMesh.java215 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/llvm/test/CodeGen/ARM/
Dvfloatintrinsics.ll26 ; 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/desktop/jme3tools/navigation/
DNavCalculator.java100 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()

12345678910>>...19