/libcore/luni/src/test/resources/ |
D | math_tests.csv | 1699 sin,0x1.9259e3708bd3ap-5,0x1.9283586503fep-5 1700 sin,-0x1.9259e3708bd3ap-5,-0x1.9283586503fep-5 1701 sin,0x1.d77b117f230d6p-5,0x1.d7bdcd778049fp-5 1702 sin,-0x1.d77b117f230d6p-5,-0x1.d7bdcd778049fp-5 1703 sin,0x1.a1490c8c06ba7p-4,0x1.a202b3fb84788p-4 1704 sin,-0x1.a1490c8c06ba7p-4,-0x1.a202b3fb84788p-4 1705 sin,0x1.cc40c3805229ap-3,0x1.d037cb27ee6dfp-3 1706 sin,-0x1.cc40c3805229ap-3,-0x1.d037cb27ee6dfp-3 1707 sin,0x1.d0ef799001ba9p-3,0x1.d5064e6fe82c5p-3 1708 sin,-0x1.d0ef799001ba9p-3,-0x1.d5064e6fe82c5p-3 [all …]
|
D | math_important_numbers.csv | 367 sin,0x1.a4a3d9c2131dfp-2,0x1.5bf0a8b145769p1,2.718281828459045 368 sin,-0x1.a4a3d9c2131dfp-2,-0x1.5bf0a8b145769p1,-2.718281828459045 369 sin,0x0.0p0,0x0.0p0,0.0 370 sin,-0x0.0p0,-0x0.0p0,-0.0 371 sin,0x1.aed548f090ceep-1,0x1.0p0,1.0 372 sin,-0x1.aed548f090ceep-1,-0x1.0p0,-1.0 373 sin,-0x1.eaee8744b05fp-2,-0x1.0p-1,-0.5 374 sin,0x1.eaee8744b05fp-2,0x1.0p-1,0.5 375 sin,0x1.1a62633145c07p-52,-0x1.921fb54442d18p2,-6.283185307179586 376 sin,0x1.0907dc193069fp-2,-0x1.815e630c155e1p2,-6.021385919380436 [all …]
|
/libcore/ojluni/src/main/native/ |
D | Net.c | 380 struct sockaddr_in *sin; in Java_sun_nio_ch_Net_localPort() local 381 sin = (struct sockaddr_in *) &sa; in Java_sun_nio_ch_Net_localPort() 382 bzero(sin, sizeof(*sin)); in Java_sun_nio_ch_Net_localPort() 387 sin->sin_len = sizeof(struct sockaddr_in); in Java_sun_nio_ch_Net_localPort() 390 sin->sin_family = AF_INET; in Java_sun_nio_ch_Net_localPort() 391 sin->sin_port = htonl(0); in Java_sun_nio_ch_Net_localPort() 392 sin->sin_addr.s_addr = INADDR_ANY; in Java_sun_nio_ch_Net_localPort() 421 struct sockaddr_in *sin; in Java_sun_nio_ch_Net_localInetAddress() local 422 sin = (struct sockaddr_in *) &sa; in Java_sun_nio_ch_Net_localInetAddress() 423 bzero(sin, sizeof(*sin)); in Java_sun_nio_ch_Net_localInetAddress() [all …]
|
D | jfdlibm.h | 47 #define sin jsin macro
|
D | fdlibm.h | 122 extern double sin __P((double));
|
D | StrictMath.c | 161 NATIVE_METHOD(StrictMath, sin, "(D)D"),
|
/libcore/luni/src/main/native/ |
D | NetworkUtilities.cpp | 47 sockaddr_in& sin = reinterpret_cast<sockaddr_in&>(tmp); in sockaddrToInetAddress() local 48 sin.sin_family = AF_INET; in sockaddrToInetAddress() 49 sin.sin_port = sin6.sin6_port; in sockaddrToInetAddress() 50 memcpy(&sin.sin_addr.s_addr, &sin6.sin6_addr.s6_addr[12], 4); in sockaddrToInetAddress() 60 const sockaddr_in& sin = reinterpret_cast<const sockaddr_in&>(ss); in sockaddrToInetAddress() local 61 rawAddress = &sin.sin_addr.s_addr; in sockaddrToInetAddress() 63 sin_port = ntohs(sin.sin_port); in sockaddrToInetAddress() 189 sockaddr_in& sin = reinterpret_cast<sockaddr_in&>(ss); in inetAddressToSockaddr() local 190 sin.sin_port = htons(port); in inetAddressToSockaddr() 191 jbyte* dst = reinterpret_cast<jbyte*>(&sin.sin_addr.s_addr); in inetAddressToSockaddr()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | IntrinsicTest.java | 113 Math.sin(Math.PI); in testMath_sin()
|
D | OldAndroidMathTest.java | 94 double r = Math.sin(Math.asin(OPP / HYP)); in testAsinD() 527 assertEquals("Incorrect answer", 0.0, Math.sin(0), 0D); in testSinD() 528 assertEquals("Incorrect answer", 0.8414709848078965, Math.sin(1), 0D); in testSinD()
|
D | OldAndroidStrictMathTest.java | 74 assertTrue("Returned incorrect arc sine", StrictMath.sin(StrictMath in testAsinD() 504 assertTrue("Returned incorrect sine", StrictMath.sin(StrictMath in testSinD()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StrictMath.java | 124 public static native double sin(double a); in sin() method in StrictMath
|
D | Math.java | 161 public static native double sin(double a); in sin() method in Math
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StrictMathBenchmark.java | 335 StrictMath.sin(d); in timeSin()
|
D | MathBenchmark.java | 413 result = Math.sin(d); in timeSin()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | MathTest.java | 91 double r = Math.sin(Math.asin(OPP / HYP)); in test_asinD() 1784 assertEquals("Incorrect answer", 0.0, Math.sin(0), 0D); in test_sinD() 1785 assertEquals("Incorrect answer", 0.8414709848078965, Math.sin(1), 0D); in test_sinD()
|
D | StrictMathTest.java | 100 assertTrue("Returned incorrect arc sine", StrictMath.sin(StrictMath in test_asinD() 1354 assertTrue("Returned incorrect sine", StrictMath.sin(StrictMath in test_sinD()
|