/external/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/AMDGPU/ |
D | sin.ll | 4 declare half @llvm.amdgcn.sin.f16(half) #0 5 declare float @llvm.amdgcn.sin.f32(float) #0 6 declare double @llvm.amdgcn.sin.f64(double) #0 22 ; CHECK-NEXT: [[P1000:%.*]] = call half @llvm.amdgcn.sin.f16(half 0xH63D0) 24 ; CHECK-NEXT: [[N1000:%.*]] = call half @llvm.amdgcn.sin.f16(half 0xHE3D0) 26 ; CHECK-NEXT: [[PINF:%.*]] = call half @llvm.amdgcn.sin.f16(half 0xH7C00) 28 ; CHECK-NEXT: [[NINF:%.*]] = call half @llvm.amdgcn.sin.f16(half 0xHFC00) 30 ; CHECK-NEXT: [[NAN:%.*]] = call half @llvm.amdgcn.sin.f16(half 0xH7E00) 34 %p0 = call half @llvm.amdgcn.sin.f16(half +0.0) 36 %n0 = call half @llvm.amdgcn.sin.f16(half -0.0) [all …]
|
/external/llvm-project/libc/test/src/math/ |
D | sincosf_test.cpp | 37 float sin, cos; in TEST() local 39 __llvm_libc::sincosf(valueFromBits(BitPatterns::aQuietNaN), &sin, &cos); in TEST() 41 EXPECT_TRUE(isQuietNaN(sin)); in TEST() 44 __llvm_libc::sincosf(valueFromBits(BitPatterns::aNegativeQuietNaN), &sin, in TEST() 47 EXPECT_TRUE(isNegativeQuietNaN(sin)); in TEST() 50 __llvm_libc::sincosf(valueFromBits(BitPatterns::aSignallingNaN), &sin, &cos); in TEST() 52 EXPECT_TRUE(isQuietNaN(sin)); in TEST() 55 __llvm_libc::sincosf(valueFromBits(BitPatterns::aNegativeSignallingNaN), &sin, in TEST() 58 EXPECT_TRUE(isNegativeQuietNaN(sin)); in TEST() 61 __llvm_libc::sincosf(valueFromBits(BitPatterns::zero), &sin, &cos); in TEST() [all …]
|
/external/llvm/test/CodeGen/AMDGPU/ |
D | llvm.sin.ll | 16 %sin = call float @llvm.sin.f32(float %x) 17 store float %sin, float addrspace(1)* %out 29 %sin = call float @llvm.sin.f32(float %y) 30 store float %sin, float addrspace(1)* %out 43 %sin = call float @llvm.sin.f32(float %y) 44 store float %sin, float addrspace(1)* %out 56 %sin = call float @llvm.sin.f32(float %y) 57 store float %sin, float addrspace(1)* %out 70 %sin = call float @llvm.sin.f32(float %y) 71 store float %sin, float addrspace(1)* %out [all …]
|
/external/llvm-project/llvm/test/CodeGen/AMDGPU/ |
D | llvm.sin.ll | 20 %sin = call float @llvm.sin.f32(float %x) 21 store float %sin, float addrspace(1)* %out 34 %sin = call float @llvm.sin.f32(float %y) 35 store float %sin, float addrspace(1)* %out 49 %sin = call float @llvm.sin.f32(float %y) 50 store float %sin, float addrspace(1)* %out 64 %sin = call reassoc float @llvm.sin.f32(float %y) 65 store float %sin, float addrspace(1)* %out 78 %sin = call float @llvm.sin.f32(float %y) 79 store float %sin, float addrspace(1)* %out [all …]
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | bugprone-integer-division.cpp | 26 float sin(float); 31 using ::sin; 36 sin(x); in intDivSin() 44 sin(n / 3); in m() 59 sin(1 + c / (2 + 2)); in integerDivision() 61 sin(c / (1 + .5)); in integerDivision() 62 sin((c + .5) / 3); in integerDivision() 64 sin(intFunc(3) / 5); in integerDivision() 71 sin(1 + 2 / 3); in integerDivision() 73 intFunc(sin(1 + 2 / 3)); in integerDivision() [all …]
|
/external/libevent/test/ |
D | regress_listener.c | 76 struct sockaddr_in sin; in regress_pick_a_port() local 91 memset(&sin, 0, sizeof(sin)); in regress_pick_a_port() 92 sin.sin_family = AF_INET; in regress_pick_a_port() 93 sin.sin_addr.s_addr = htonl(0x7f000001); /* 127.0.0.1 */ in regress_pick_a_port() 94 sin.sin_port = 0; /* "You pick!" */ in regress_pick_a_port() 97 flags, -1, (struct sockaddr *)&sin, sizeof(sin)); in regress_pick_a_port() 100 flags, -1, (struct sockaddr *)&sin, sizeof(sin)); in regress_pick_a_port() 207 struct sockaddr_in sin; in regress_listener_close_accepted_fd() local 214 memset(&sin, 0, sizeof(sin)); in regress_listener_close_accepted_fd() 215 sin.sin_family = AF_INET; in regress_listener_close_accepted_fd() [all …]
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | recv_msg_trunc.cc | 17 struct sockaddr_in sin; in main() local 18 socklen_t len = sizeof(sin); in main() 21 sin.sin_family = AF_INET; in main() 23 sin.sin_port = 0; in main() 24 sin.sin_addr.s_addr = INADDR_ANY; in main() 26 assert(bind(fd_1, (struct sockaddr *)&sin, sizeof(sin)) == 0); in main() 28 assert(getsockname(fd_1, (struct sockaddr *)&sin, &len) == 0); in main() 30 (struct sockaddr *)&sin, sizeof(sin)) != -1); in main()
|
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | recv_msg_trunc.cpp | 17 struct sockaddr_in sin; in main() local 18 socklen_t len = sizeof(sin); in main() 21 sin.sin_family = AF_INET; in main() 23 sin.sin_port = 0; in main() 24 sin.sin_addr.s_addr = INADDR_ANY; in main() 26 assert(bind(fd_1, (struct sockaddr *)&sin, sizeof(sin)) == 0); in main() 28 assert(getsockname(fd_1, (struct sockaddr *)&sin, &len) == 0); in main() 30 (struct sockaddr *)&sin, sizeof(sin)) != -1); in main()
|
/external/llvm-project/llvm/test/CodeGen/AArch64/ |
D | sincos-expansion.ll | 5 %sin = call float @sinf(float %f) readnone 8 %val = fadd float %sin, %cos 14 %sin = call float @sinf(float %f) 18 %val = fadd float %sin, %cos 24 %sin = call double @sin(double %f) readnone 26 %val = fadd double %sin, %cos 33 %sin = call double @sin(double %f) 35 %val = fadd double %sin, %cos 36 ; CHECK: bl sin 43 %sin = call fp128 @sinl(fp128 %f) readnone [all …]
|
D | sincospow-vector-expansion.ll | 23 ; CHECK: bl sin 24 ; CHECK: bl sin 26 ; GISEL: bl sin 27 ; GISEL: bl sin 28 %1 = call <2 x double> @llvm.sin.v2f64(<2 x double> %v1) 43 declare <2 x double> @llvm.sin.v2f64(<2 x double>) 61 ; CHECK: bl sin 62 ; CHECK: bl sin 64 ; GISEL: bl sin 65 ; GISEL: bl sin [all …]
|
/external/fastrpc/inc/ |
D | apps_std.h | 108 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_freopen)(apps_std_FILE sin, const char* name, const… 109 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fflush)(apps_std_FILE sin) __QAIC_HEADER_ATTRIBUTE; 110 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fclose)(apps_std_FILE sin) __QAIC_HEADER_ATTRIBUTE; 117 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fread)(apps_std_FILE sin, byte* buf, int bufLen, in… 118 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fwrite)(apps_std_FILE sin, const byte* buf, int buf… 124 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fgetpos)(apps_std_FILE sin, byte* pos, int posLen, … 130 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fsetpos)(apps_std_FILE sin, const byte* pos, int po… 134 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_ftell)(apps_std_FILE sin, int* pos) __QAIC_HEADER_A… 135 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_fseek)(apps_std_FILE sin, int offset, apps_std_SEEK… 136 __QAIC_HEADER_EXPORT int __QAIC_HEADER(apps_std_flen)(apps_std_FILE sin, uint64* len) __QAIC_HEADER… [all …]
|
/external/skia/resources/sksl/intrinsics/ |
D | Sin.sksl | 6 return (sin(input.x) == expected.x && 7 sin(input.xy) == expected.xy && 8 sin(input.xyz) == expected.xyz && 9 sin(input.xyzw) == expected.xyzw && 10 sin(constVal.x) == expected.x && 11 sin(constVal.xy) == expected.xy && 12 sin(constVal.xyz) == expected.xyz && 13 sin(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed;
|
/external/llvm-project/clang/test/OpenMP/ |
D | aarch64_vfabi_WidestDataSize.c | 35 #pragma omp declare simd linear(sin) notinbranch simdlen(2) 36 #pragma omp declare simd linear(sin) notinbranch simdlen(4) 37 #pragma omp declare simd linear(sin) notinbranch simdlen(64) 38 #pragma omp declare simd linear(sin) notinbranch simdlen(68) 39 void WDS_is_sizeof_float_pointee(float in, float *sin); 45 #pragma omp declare simd linear(sin) notinbranch simdlen(2) 46 #pragma omp declare simd linear(sin) notinbranch simdlen(4) 47 #pragma omp declare simd linear(sin) notinbranch simdlen(32) 48 #pragma omp declare simd linear(sin) notinbranch simdlen(34) 49 void WDS_is_sizeof_double_pointee(float in, double *sin);
|
/external/rust/crates/plotters/src/coord/ranged3d/ |
D | projection.rs | 100 a.cos() * b.sin() * c.sin() - a.sin() * c.cos(), in rotate() 101 a.cos() * b.sin() * c.cos() + a.sin() * c.sin(), in rotate() 105 a.sin() * b.cos(), in rotate() 106 a.sin() * b.sin() * c.sin() + a.cos() * c.cos(), in rotate() 107 a.sin() * b.sin() * c.cos() - a.cos() * c.sin(), in rotate() 110 [-b.sin(), b.cos() * c.sin(), b.cos() * c.cos(), 0.0], in rotate()
|
/external/usrsctp/programs/ |
D | ekr_server.c | 159 struct sockaddr_in sin; local 200 memset(&sin, 0, sizeof(struct sockaddr_in)); 201 sin.sin_family = AF_INET; 203 sin.sin_len = sizeof(struct sockaddr_in); 205 sin.sin_port = htons(atoi(argv[2])); 206 if (!inet_pton(AF_INET, argv[1], &sin.sin_addr.s_addr)){ 211 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 216 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { 221 memset(&sin, 0, sizeof(struct sockaddr_in)); 222 sin.sin_family = AF_INET; [all …]
|
D | ekr_client.c | 159 struct sockaddr_in sin; local 202 memset(&sin, 0, sizeof(struct sockaddr_in)); 203 sin.sin_family = AF_INET; 205 sin.sin_len = sizeof(struct sockaddr_in); 207 sin.sin_port = htons(atoi(argv[2])); 208 if (!inet_pton(AF_INET, argv[1], &sin.sin_addr.s_addr)){ 213 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 218 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { 223 memset(&sin, 0, sizeof(struct sockaddr_in)); 224 sin.sin_family = AF_INET; [all …]
|
D | ekr_peer.c | 149 struct sockaddr_in sin; local 197 memset(&sin, 0, sizeof(struct sockaddr_in)); 198 sin.sin_family = AF_INET; 200 sin.sin_len = sizeof(struct sockaddr_in); 202 sin.sin_port = htons(atoi(argv[2])); 203 if (!inet_pton(AF_INET, argv[1], &sin.sin_addr.s_addr)){ 208 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 213 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { 218 memset(&sin, 0, sizeof(struct sockaddr_in)); 219 sin.sin_family = AF_INET; [all …]
|
D | st_client.c | 256 struct sockaddr_in sin; local 294 memset(&sin, 0, sizeof(struct sockaddr_in)); 295 sin.sin_family = AF_INET; 297 sin.sin_len = sizeof(struct sockaddr_in); 299 sin.sin_port = htons(atoi(argv[2])); 300 if (!inet_pton(AF_INET, argv[1], &sin.sin_addr.s_addr)){ 305 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) == SOCKET_ERROR) { 310 if (bind(fd, (struct sockaddr *)&sin, sizeof(struct sockaddr_in)) < 0) { 315 memset(&sin, 0, sizeof(struct sockaddr_in)); 316 sin.sin_family = AF_INET; [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/llvm-project/llvm/test/CodeGen/VE/Scalar/ |
D | fsin.ll | 3 ;;; Test ‘llvm.sin.*’ intrinsic 6 ;;; This is an overloaded intrinsic. You can use llvm.sin on any 10 ;;; declare float @llvm.sin.f32(float %Val) 11 ;;; declare double @llvm.sin.f64(double %Val) 12 ;;; declare x86_fp80 @llvm.sin.f80(x86_fp80 %Val) 13 ;;; declare fp128 @llvm.sin.f128(fp128 %Val) 14 ;;; declare ppc_fp128 @llvm.sin.ppcf128(ppc_fp128 %Val) 17 ;;; The ‘llvm.sin.*’ intrinsics return the sine of the operand. 23 ;;; Return the same value as a corresponding libm ‘sin’ function but without 41 %2 = tail call fast float @llvm.sin.f32(float %0) [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/llvm-project/llvm/test/CodeGen/X86/ |
D | negative-sin.ll | 4 declare double @sin(double %f) 14 ; CHECK-NEXT: callq sin 20 %g = call double @sin(double %f) readonly 26 ; The 'sin' does not need any fast-math-flags for this transform. 31 ; CHECK-NEXT: jmp sin@PLT # TAILCALL 33 %g = call double @sin(double %f) readonly 43 ; CHECK-NEXT: jmp sin@PLT # TAILCALL 45 %g = call double @sin(double %f) readonly 58 ; CHECK-NEXT: callq sin 63 %g = call double @sin(double %f) readonly [all …]
|
/external/skia/gm/ |
D | strokedlines.cpp | 41 SkScalar cos, sin; in draw_fins() local 44 sin = SkScalarSin(angle + (SK_ScalarPI/4)); in draw_fins() 46 sin *= kRadius / 2.0f; in draw_fins() 51 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins() 55 sin = SkScalarSin(angle - (SK_ScalarPI/4)); in draw_fins() 57 sin *= kRadius / 2.0f; in draw_fins() 62 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins() 71 SkScalar sin, cos, angle = 0.0f; in draw_snowflake() local 73 sin = SkScalarSin(angle); in draw_snowflake() 75 sin *= kRadius; in draw_snowflake() [all …]
|
/external/skqp/gm/ |
D | strokedlines.cpp | 25 SkScalar cos, sin; in draw_fins() local 28 sin = SkScalarSinCos(angle + (SK_ScalarPI/4), &cos); in draw_fins() 29 sin *= kRadius / 2.0f; in draw_fins() 34 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins() 38 sin = SkScalarSinCos(angle - (SK_ScalarPI/4), &cos); in draw_fins() 39 sin *= kRadius / 2.0f; in draw_fins() 44 p.lineTo(offset.fX + cos, offset.fY + sin); in draw_fins() 53 SkScalar sin, cos, angle = 0.0f; in draw_snowflake() local 55 sin = SkScalarSinCos(angle, &cos); in draw_snowflake() 56 sin *= kRadius; in draw_snowflake() [all …]
|