/haiku/src/system/libroot/posix/musl/math/ |
H A D | sincosf.c | 27 void sincosf(float x, float *sin, float *cos) in sincosf() argument 44 *sin = x; in sincosf() 48 *sin = __sindf(x); in sincosf() 57 *sin = -__cosdf(x + s1pio2); in sincosf() 60 *sin = __cosdf(s1pio2 - x); in sincosf() 66 *sin = -__sindf(sign ? x + s2pio2 : x - s2pio2); in sincosf() 75 *sin = __cosdf(x + s3pio2); in sincosf() 78 *sin = -__cosdf(x - s3pio2); in sincosf() 83 *sin = __sindf(sign ? x + s4pio2 : x - s4pio2); in sincosf() 90 *sin = *cos = x - x; in sincosf() [all …]
|
H A D | sincosl.c | 5 void sincosl(long double x, long double *sin, long double *cos) in sincosl() argument 9 *sin = sind; in sincosl() 13 void sincosl(long double x, long double *sin, long double *cos) in sincosl() argument 21 *sin = *cos = x - x; in sincosl() 28 *sin = x; in sincosl() 33 *sin = __sinl(x, 0, 0); in sincosl() 42 *sin = s; in sincosl() 46 *sin = c; in sincosl() 50 *sin = -s; in sincosl() 55 *sin = -c; in sincosl()
|
H A D | sincos.c | 16 void sincos(double x, double *sin, double *cos) in sincos() argument 31 *sin = x; in sincos() 35 *sin = __sin(x, 0.0, 0); in sincos() 42 *sin = *cos = x - x; in sincos() 52 *sin = s; in sincos() 56 *sin = c; in sincos() 60 *sin = -s; in sincos() 65 *sin = -c; in sincos()
|
H A D | jn.c | 90 case 0: temp = -cos(x)+sin(x); break; in jn() 91 case 1: temp = -cos(x)-sin(x); break; in jn() 92 case 2: temp = cos(x)-sin(x); break; in jn() 94 case 3: temp = cos(x)+sin(x); break; in jn() 259 case 0: temp = -sin(x)-cos(x); break; in yn() 260 case 1: temp = -sin(x)+cos(x); break; in yn() 261 case 2: temp = sin(x)+cos(x); break; in yn() 263 case 3: temp = sin(x)-cos(x); break; in yn()
|
/haiku/src/tests/system/network/ |
H A D | at_client.c | 21 struct sockaddr_in sin; in main() local 22 int salen = sizeof(sin); in main() 30 memset(&sin, 0, sizeof(sin)); in main() 31 sin.sin_family = AF_INET; in main() 32 sin.sin_port = 0; in main() 33 sin.sin_len = salen; in main() 34 sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in main() 35 rv = bind(sock, (const struct sockaddr*)&sin, salen); in main() 40 sin.sin_port = htons(PORT); in main() 43 rv = connect(sock, (const struct sockaddr*)&sin, salen); in main()
|
H A D | at_srv.c | 21 struct sockaddr_in sin; in main() local 22 int salen = sizeof(sin); in main() 29 memset(&sin, 0, sizeof(sin)); in main() 30 sin.sin_family = AF_INET; in main() 31 sin.sin_port = htons(PORT); in main() 32 sin.sin_len = salen; in main() 33 sin.sin_addr.s_addr = htonl(INADDR_ANY); // LOOPBACK); in main() 34 rv = bind(sock, (const struct sockaddr*)&sin, salen); in main() 44 newsock = accept(sock, (struct sockaddr*)&sin, &salen); in main()
|
/haiku/src/tests/kits/opengl/demos/gears/ |
H A D | gears.c | 71 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); in gear() 72 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); in gear() 74 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); in gear() 75 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); in gear() 86 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); in gear() 87 glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5); in gear() 88 glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5); in gear() 89 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); in gear() 99 glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); in gear() 100 glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); in gear() [all …]
|
/haiku/src/tests/system/network/multicast/ |
H A D | multicast.cpp | 21 sockaddr_in sin; in main() local 22 memset(&sin, 0, sizeof(sin)); in main() 23 sin.sin_family = AF_INET; in main() 24 sin.sin_port = htons(12345); in main() 26 bind(sock, (sockaddr *)&sin, sizeof(sin)); in main()
|
/haiku/src/add-ons/print/transports/shared/ |
H A D | Socket.cpp | 74 sockaddr_in sin; in open() local 75 memset(&sin, 0, sizeof(sin)); in open() 81 memcpy(&sin.sin_addr, &inaddr, sizeof(inaddr)); in open() 82 sin.sin_family = AF_INET; in open() 84 memcpy(&sin.sin_addr, host_info->h_addr, host_info->h_length); in open() 85 sin.sin_family = host_info->h_addrtype; in open() 108 sin.sin_port = htons(__port); in open() 109 if (::connect(__sock, (sockaddr *)&(sin), sizeof(sin)) != 0) { in open()
|
/haiku/headers/compatibility/gnu/ |
H A D | math.h | 21 void sincos(double x, double *sin, double *cos); 22 void sincosf(float x, float *sin, float *cos); 23 void sincosl(long double x, long double *sin, long double *cos);
|
/haiku/src/system/libroot/posix/glibc/math/ |
H A D | math.h | 48 extern void sincos(double x, double *sin, double *cos); 49 extern void sincosf(float x, float *sin, float *cos); 50 extern void sincosl(long double x, long double *sin, long double *cos);
|
/haiku/src/tests/system/network/tcptester/ |
H A D | tcptester.cpp | 210 sockaddr_in sin; in main() local 211 memset(&sin, 0, sizeof(sin)); in main() 212 sin.sin_family = AF_INET; in main() 213 sin.sin_port = htons(port); in main() 215 if (bind(sock, (sockaddr *)&sin, sizeof(sockaddr_in)) < 0) { in main()
|
/haiku/data/catalogs/apps/deskcalc/ |
H A D | cs.catkeys | 18 sin CalcView sin 32 asin CalcView sin⁻¹
|
H A D | hr.catkeys | 14 sin CalcView sin
|
H A D | zh_Hans.catkeys | 18 sin CalcView sin
|
H A D | th.catkeys | 18 sin CalcView sin
|
H A D | ko.catkeys | 18 sin CalcView sin
|
H A D | ja.catkeys | 18 sin CalcView sin
|
/haiku/src/add-ons/screen_savers/flurry/ |
H A D | Spark.cpp | 169 + (float)sin((7.0 * (thisPointInRadians + thisAngle)))); in UpdateSparkColour() 171 * (0.5f + (float)sin(((thisPointInRadians) + thisAngle))); in UpdateSparkColour() 255 + (float) sin((7.0 * (thisPointInRadians + thisAngle)))); in UpdateSpark() 257 * (0.5f + (float) sin(((thisPointInRadians) + thisAngle))); in UpdateSpark() 263 (float) sin(12.0 * (thisPointInRadians + (4.0*thisAngle))); in UpdateSpark() 270 sr = sin(rotation); in UpdateSpark() 286 sr = sin(rotation); in UpdateSpark()
|
H A D | Star.cpp | 90 s->position[1] = 250.0f * cf * (float)sin(12.0 * (thisPointInRadians in UpdateStar() 98 sr = sin(rotation); in UpdateStar() 114 sr = sin(rotation); in UpdateStar()
|
/haiku/src/add-ons/screen_savers/simpleclock/ |
H A D | SimpleClock.cpp | 108 float y = centerY + markRadius * sin(markAngle); in Draw() 119 float y = centerY + markRadius * sin(markAngle); in Draw() 154 blockPoints[index].y = y + size * sin(blockAngles[index]); in _drawBlock() 167 float y = y0 + length * sin(angle); in _drawArrow() 177 blockPoints[index].y = y + size * sin(blockAngles[index]); in _drawArrow()
|
/haiku/src/system/libnetwork/netresolv/resolv/ |
H A D | res_init.c | 208 u[nserv].sin.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1); in __res_vinit() 210 u[nserv].sin.sin_addr.s_addr = INADDR_ANY; in __res_vinit() 212 u[nserv].sin.sin_family = AF_INET; in __res_vinit() 213 u[nserv].sin.sin_port = htons(NAMESERVER_PORT); in __res_vinit() 215 u[nserv].sin.sin_len = sizeof(struct sockaddr_in); in __res_vinit() 242 statp->_u._ext.ext->nsaddrs[0].sin = statp->nsaddr; in __res_vinit() 803 switch (set->sin.sin_family) { in res_setservers() 805 size = sizeof(set->sin); in res_setservers() 808 &set->sin, size); in res_setservers() 811 &set->sin, size); in res_setservers() [all …]
|
/haiku/src/bin/network/traceroute/ |
H A D | ifaddrlist.c | 68 register struct sockaddr_in *sin; in ifaddrlist() local 150 sin = (struct sockaddr_in *)&ifr.ifr_addr; in ifaddrlist() 151 al->addr = sin->sin_addr.s_addr; in ifaddrlist()
|
/haiku/src/libs/agg/src/ |
H A D | agg_bezier_arc.cpp | 43 double y0 = sin(sweep_angle / 2.0); in arc_to_bezier() 57 double sn = sin(start_angle + sweep_angle / 2.0); in arc_to_bezier() 85 m_vertices[1] = y + ry * sin(start_angle); in init() 87 m_vertices[3] = y + ry * sin(start_angle + sweep_angle); in init() 156 double sin_a = sin(angle); in init()
|
/haiku/src/add-ons/media/media-add-ons/esound_sink/ |
H A D | ESDEndpoint.cpp | 185 struct sockaddr_in sin; in ConnectThread() local 190 memcpy((struct in_addr *)&sin.sin_addr, he->h_addr, sizeof(struct in_addr)); in ConnectThread() 200 sin.sin_family = AF_INET; in ConnectThread() 201 sin.sin_port = htons( port ); in ConnectThread() 213 err = connect(fSocket, (struct sockaddr *) &sin, sizeof(sin)); in ConnectThread()
|