/external/v8/test/mjsunit/ |
D | sin-cos.js | 32 assertEquals("-Infinity", String(1/Math.sin(-0))); 38 return Math.sin(x) + Math.cos(x) + Math.tan(x); 49 assertEquals(0, Math.sin(0)); 50 assertEquals(1, Math.sin(Math.PI / 2)); 64 assertTrue(Math.sin(x) != Math.cos(x)); 68 assertTrue(Math.sin(x) != Math.log(x)); 87 function sin(x) { function 136 var err_sin = abs_error(Math.sin, sin, x); 156 assertEquals(0, Math.sin("0x00000")); 158 assertTrue(isNaN(Math.sin(Infinity))); [all …]
|
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
D | Affine2.java | 156 float sin = MathUtils.sinDeg(degrees); in setToRotation() local 159 m01 = -sin; in setToRotation() 161 m10 = sin; in setToRotation() 172 float sin = MathUtils.sin(radians); in setToRotationRad() local 175 m01 = -sin; in setToRotationRad() 177 m10 = sin; in setToRotationRad() 187 public Affine2 setToRotation (float cos, float sin) { in setToRotation() argument 189 m01 = -sin; in setToRotation() 191 m10 = sin; in setToRotation() 236 float sin = MathUtils.sinDeg(degrees); in setToTrnRotScl() local [all …]
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | llvm.sin.ll | 19 %sin = call float @llvm.sin.f32(float %x) 20 store float %sin, float addrspace(1)* %out 35 %sin = call float @llvm.sin.f32(float %y) 36 store float %sin, float addrspace(1)* %out 51 %sin = call float @llvm.sin.f32(float %y) 52 store float %sin, float addrspace(1)* %out 66 %sin = call float @llvm.sin.f32(float %y) 67 store float %sin, float addrspace(1)* %out 84 %sin = call <4 x float> @llvm.sin.v4f32( <4 x float> %vx) 85 store <4 x float> %sin, <4 x float> addrspace(1)* %out [all …]
|
/external/llvm/test/CodeGen/AArch64/ |
D | sincos-expansion.ll | 4 %sin = call float @sinf(float %f) readnone 8 %val = fadd float %sin, %cos 13 %sin = call double @sin(double %f) readnone 15 %val = fadd double %sin, %cos 16 ; CHECK: bl sin 22 %sin = call fp128 @sinl(fp128 %f) readnone 24 %val = fadd fp128 %sin, %cos 31 declare double @sin(double) readonly
|
D | sincospow-vector-expansion.ll | 15 ; CHECK: bl sin 16 ; CHECK: bl sin 17 %1 = call <2 x double> @llvm.sin.v2f64(<2 x double> %v1) 32 declare <2 x double> @llvm.sin.v2f64(<2 x double>) 45 ; CHECK: bl sin 46 ; CHECK: bl sin 47 %1 = call <2 x float> @llvm.sin.v2f32(<2 x float> %v1) 60 declare <2 x float> @llvm.sin.v2f32(<2 x float>) 75 ; CHECK: bl sin 76 ; CHECK: bl sin [all …]
|
/external/iputils/ |
D | rdisc.c | 87 static int join(int sock, struct sockaddr_in *sin); 103 static int sendmcastif(int s, char *packet, int packetlen, struct sockaddr_in *sin, struct interfac… 222 static __inline__ int isbroadcast(struct sockaddr_in *sin) in isbroadcast() argument 224 return (sin->sin_addr.s_addr == INADDR_BROADCAST); in isbroadcast() 227 static __inline__ int ismulticast(struct sockaddr_in *sin) in ismulticast() argument 229 return IN_CLASSD(ntohl(sin->sin_addr.s_addr)); in ismulticast() 540 solicitor(struct sockaddr_in *sin) in solicitor() argument 548 pr_name(sin->sin_addr)); in solicitor() 559 if (isbroadcast(sin)) in solicitor() 561 else if (ismulticast(sin)) in solicitor() [all …]
|
/external/libevent/ |
D | evutil.c | 556 struct sockaddr_in sin, sin_out; in evutil_check_interfaces() local 570 memset(&sin, 0, sizeof(sin)); in evutil_check_interfaces() 571 sin.sin_family = AF_INET; in evutil_check_interfaces() 572 sin.sin_port = htons(53); in evutil_check_interfaces() 573 r = evutil_inet_pton(AF_INET, "18.244.0.188", &sin.sin_addr); in evutil_check_interfaces() 587 connect(fd, (struct sockaddr*)&sin, sizeof(sin)) == 0 && in evutil_check_interfaces() 858 struct sockaddr_in sin; in evutil_getaddrinfo_common() local 859 memset(&sin, 0, sizeof(sin)); in evutil_getaddrinfo_common() 860 sin.sin_family = AF_INET; in evutil_getaddrinfo_common() 861 sin.sin_port = htons(port); in evutil_getaddrinfo_common() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | CalendarAstronomer.java | 444 double sinE = Math.sin(obliq); in eclipticToEquatorial() 447 double sinL = Math.sin(eclipLong); in eclipticToEquatorial() 450 double sinB = Math.sin(eclipLat); in eclipticToEquatorial() 480 double sinH = Math.sin(H); in eclipticToHorizon() 482 double sinD = Math.sin(equatorial.declination); in eclipticToHorizon() 484 double sinL = Math.sin(fLatitude); in eclipticToHorizon() 488 double azimuth = Math.atan2(-cosD*cosL*sinH, sinD - sinL * Math.sin(altitude)); in eclipticToHorizon() 1030 double evection = 1.2739*PI/180 * Math.sin(2 * (meanLongitude - sunLong) 1032 double annual = 0.1858*PI/180 * Math.sin(meanAnomalySun); 1033 double a3 = 0.3700*PI/180 * Math.sin(meanAnomalySun); [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | CalendarAstronomer.java | 446 double sinE = Math.sin(obliq); in eclipticToEquatorial() 449 double sinL = Math.sin(eclipLong); in eclipticToEquatorial() 452 double sinB = Math.sin(eclipLat); in eclipticToEquatorial() 482 double sinH = Math.sin(H); in eclipticToHorizon() 484 double sinD = Math.sin(equatorial.declination); in eclipticToHorizon() 486 double sinL = Math.sin(fLatitude); in eclipticToHorizon() 490 double azimuth = Math.atan2(-cosD*cosL*sinH, sinD - sinL * Math.sin(altitude)); in eclipticToHorizon() 1032 double evection = 1.2739*PI/180 * Math.sin(2 * (meanLongitude - sunLong) 1034 double annual = 0.1858*PI/180 * Math.sin(meanAnomalySun); 1035 double a3 = 0.3700*PI/180 * Math.sin(meanAnomalySun); [all …]
|
/external/mesa3d/src/glsl/builtins/ir/ |
D | sin.ir | 1 ((function sin 5 ((return (expression float sin (var_ref angle))))) 10 ((return (expression vec2 sin (var_ref angle))))) 15 ((return (expression vec3 sin (var_ref angle))))) 20 ((return (expression vec4 sin (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/llvm/test/Transforms/InstCombine/ |
D | fold-calls.ll | 3 ; This shouldn't fold, because sin(inf) is invalid. 5 ; CHECK: %t = call double @sin(double 0x7FF0000000000000) 7 %t = call double @sin(double 0x7FF0000000000000) 15 %t = call double @sin(double 0.0) 19 declare double @sin(double)
|
D | sincospi.ll | 22 %sin = call float @__sinpif(float %val) #0 24 %res = fadd float %sin, %cos 41 %sin = call float @__sinpif(float 1.0) #0 43 %res = fadd float %sin, %cos 59 %sin = call double @__sinpi(double %val) #0 61 %res = fadd double %sin, %cos 78 %sin = call double @__sinpi(double 1.0) #0 80 %res = fadd double %sin, %cos 95 %sin = call double @__sinpi(double %p1) #0 97 %res = fadd double %sin, %cos
|
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/ |
D | PolygonRegionTest.java | 127 final float sin = MathUtils.sinDeg(rotation); in draw() local 159 px1 = cos * fx1 - sin * fy1; in draw() 160 py1 = sin * fx1 + cos * fy1; in draw() 161 px2 = cos * fx2 - sin * fy2; in draw() 162 py2 = sin * fx2 + cos * fy2; in draw() 163 px3 = cos * fx3 - sin * fy3; in draw() 164 py3 = sin * fx3 + cos * fy3; in draw() 223 x1 = cos * p1x - sin * p1y; in draw() 224 y1 = sin * p1x + cos * p1y; in draw() 226 x2 = cos * p2x - sin * p2y; in draw() [all …]
|
/external/vulkan-validation-layers/libs/glm/gtx/ |
D | euler_angles.inl | 19 T sinX = glm::sin(angleX); 35 T sinY = glm::sin(angleY); 51 T sinZ = glm::sin(angleZ); 68 T sinX = glm::sin(angleX); 70 T sinY = glm::sin(angleY); 87 T sinX = glm::sin(angleX); 89 T sinY = glm::sin(angleY); 147 T tmp_sh = glm::sin(yaw); 149 T tmp_sp = glm::sin(pitch); 151 T tmp_sb = glm::sin(roll); [all …]
|
D | rotate_vector.inl | 22 T const Sin(sin(angle)); 26 T const Sin = sin(radians(angle)); 51 const T Sin = sin(radians(angle)); 77 T const Sin(sin(angle)); 81 T const Sin = sin(radians(angle)); 100 T const Sin(sin(angle)); 104 T const Sin(sin(radians(angle))); 123 T const Sin(sin(angle)); 127 T const Sin(sin(radians(angle))); 146 T const Sin(sin(angle)); [all …]
|
/external/chromium-trace/catapult/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/icu/icu4c/source/i18n/ |
D | astro.cpp | 465 double sinE = ::sin(obliq); in eclipticToEquatorial() 468 double sinL = ::sin(eclipLong); in eclipticToEquatorial() 471 double sinB = ::sin(eclipLat); in eclipticToEquatorial() 505 double sinH = ::sin(H); in eclipticToHorizon() 507 double sinD = ::sin(equatorial.declination); in eclipticToHorizon() 509 double sinL = ::sin(fLatitude); in eclipticToHorizon() 513 double azimuth = atan2(-cosD*cosL*sinH, sinD - sinL * ::sin(altitude)); in eclipticToHorizon() 601 delta = E - eccentricity * ::sin(E) - meanAnomaly; in trueAnomaly() 1092 double evection = 1.2739*PI/180 * ::sin(2 * (meanLongitude - sunLongitude) in getMoonPosition() 1094 double annual = 0.1858*PI/180 * ::sin(meanAnomalySun); in getMoonPosition() [all …]
|
/external/ppp/pppd/plugins/radius/ |
D | sendserver.c | 197 struct sockaddr_in *sin; in rc_send_server() local 244 sin = (struct sockaddr_in *) & salocal; in rc_send_server() 245 memset ((char *) sin, '\0', (size_t) length); in rc_send_server() 246 sin->sin_family = AF_INET; in rc_send_server() 247 sin->sin_addr.s_addr = htonl(rc_own_bind_ipaddress()); in rc_send_server() 248 sin->sin_port = htons ((unsigned short) 0); in rc_send_server() 249 if (bind (sockfd, (struct sockaddr *) sin, length) < 0 || in rc_send_server() 250 getsockname (sockfd, (struct sockaddr *) sin, &length) < 0) in rc_send_server() 288 sin = (struct sockaddr_in *) & saremote; in rc_send_server() 289 memset ((char *) sin, '\0', sizeof (saremote)); in rc_send_server() [all …]
|
/external/boringssl/src/crypto/bio/ |
D | bio_test.cc | 81 struct sockaddr_in sin; in TestSocketConnect() local 82 memset(&sin, 0, sizeof(sin)); in TestSocketConnect() 83 sin.sin_family = AF_INET; in TestSocketConnect() 84 if (!inet_pton(AF_INET, "127.0.0.1", &sin.sin_addr)) { in TestSocketConnect() 88 if (bind(listening_sock, (struct sockaddr *)&sin, sizeof(sin)) != 0) { in TestSocketConnect() 96 socklen_t sockaddr_len = sizeof(sin); in TestSocketConnect() 97 if (getsockname(listening_sock, (struct sockaddr *)&sin, &sockaddr_len) || in TestSocketConnect() 98 sockaddr_len != sizeof(sin)) { in TestSocketConnect() 105 ntohs(sin.sin_port)); in TestSocketConnect() 119 int sock = accept(listening_sock, (struct sockaddr *) &sin, &sockaddr_len); in TestSocketConnect()
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
D | StemFunction.h | 38 res = -std::sin(x); in cos() 44 res = std::sin(x); in cos() 51 static Scalar sin(Scalar x, int n) in sin() function 56 res = std::sin(x); in sin() 62 res = -std::sin(x); in sin()
|
/external/ceres-solver/internal/ceres/ |
D | jet_test.cc | 111 J w = cos(x)*cos(x) - sin(x)*sin(x); in TEST() 118 J z = sin(J(2.0) * x); in TEST() 119 J w = J(2.0)*cos(x)*sin(x); in TEST() 127 J w = sin(x) * sin(x); in TEST() 139 J u = atan2(r * sin(t), r * cos(t)); in TEST() 147 J w = sin(x) / cos(x); in TEST() 293 ExpectJetsClose(sin(asin(a)), a); in TEST() 294 ExpectJetsClose(asin(sin(a)), a); in TEST() 297 ExpectJetsClose(sin(asin(b)), b); in TEST() 298 ExpectJetsClose(asin(sin(b)), b); in TEST()
|
/external/llvm/test/CodeGen/ARM/ |
D | v7k-sincos.ll | 3 declare double @sin(double) nounwind readnone 12 %sin = call double @sin(double %in) 14 %sum = fadd double %sin, %cos
|
/external/eigen/bench/ |
D | quat_slerp.cpp | 34 Scalar sinTheta = internal::sin(theta); in slerp_legacy() 36 Scalar scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_legacy() 37 Scalar scale1 = internal::sin( ( t * theta) ) / sinTheta; in slerp_legacy() 64 Scalar sinTheta = internal::sin(theta); in slerp_legacy_nlerp() 66 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_legacy_nlerp() 67 scale1 = internal::sin( ( t * theta) ) / sinTheta; in slerp_legacy_nlerp() 81 return std::sin(x)/x; in sin_over_x() 134 Scalar sinTheta = std::sin(theta); in slerp_gael() 135 scale0 = internal::sin( ( Scalar(1) - t ) * theta) / sinTheta; in slerp_gael() 136 scale1 = internal::sin( ( t * theta) ) / sinTheta; in slerp_gael()
|
/external/valgrind/memcheck/tests/ |
D | vcpu_fbench.c | 347 #define sin I_sin macro 401 static double sin(x) in sin() function 446 return sin(x + piover2); 454 return sin(x) / cos(x); 651 sin(axis_slope_angle); in transit_surface() 659 sagitta = sin((old_axis_slope_angle + iang) / 2.0); in transit_surface() 661 object_distance = ((radius_of_curvature * sin( in transit_surface() 668 sin(axis_slope_angle)); in transit_surface() 797 (sin(od_sa[0][1]) * od_sa[0][0]); 799 max_lspher = sin(od_sa[0][1]);
|