[PATCH v2 05/11] math: Use sin from CORE-MATH
Adhemerval Zanella
adhemerval.zanella@linaro.org
Wed Nov 18 18:15:17 GMT 2026
The CORE-MATH implementation is correctly rounded for any rounding
mode. The current IBM one computes in round-to-nearest, and shows the
following accuracy for 2^32-1 random inputs per range, either uniform
or uniform over the binades (the first column is the error in ulp, with
0 meaning correctly rounded and 0.5 a 1 ulp error across a power of 2,
and the second is the number of inputs):
* Range [-pi, pi], uniform
* FE_TONEAREST
0: 4289063361 99.86%
1: 5903934 0.14%
* FE_UPWARD
0: 2147440175 50.00%
0.5: 6 0.00%
1: 2147527114 50.00%
* FE_DOWNWARD
0: 2147527120 50.00%
0.5: 4 0.00%
1: 2147440171 50.00%
* FE_TOWARDZERO
0: 2147519218 50.00%
1: 2147448077 50.00%
* Range [-pi, pi], over the binades
* FE_TONEAREST
0: 4294917908 100.00%
1: 49387 0.00%
* FE_UPWARD
0: 2147480465 50.00%
1: 2147486830 50.00%
* FE_DOWNWARD
0: 2147486830 50.00%
1: 2147480465 50.00%
* FE_TOWARDZERO
0: 57371035 1.34%
1: 4237596260 98.66%
* Range [pi, DBL_MAX], over the binades
* FE_TONEAREST
0: 4289046338 99.86%
1: 5920957 0.14%
* FE_UPWARD
0: 2147432297 50.00%
0.5: 8 0.00%
1: 2147534990 50.00%
* FE_DOWNWARD
0: 2147534998 50.00%
0.5: 4 0.00%
1: 2147432293 50.00%
* FE_TOWARDZERO
0: 2147441426 50.00%
1: 2147525869 50.00%
It also misrounds 921192 of the 3951834 CORE-MATH hard-to-round cases
(both signs) for rounding to nearest.
The code is adapted to glibc style and to the math_config.h
definitions. The 128-bit arithmetic uses math_uint128.h (which gains
u128_lt).
The CORE-MATH hard-to-round cases for each code path are added to
auto-libm-test-in.
Performance numbers are:
* reciprocal-throughput
- input: workload-fast.wrf
master patched improvement
x86_64-v3 24.0329 18.5049 29.87%
aarch64 12.2873 13.7091 -10.37%
power10 17.9834 6.6196 171.67%
loongarch64 3.5602 3.7742 -5.67%
- input: workload-moderate.wrf
master patched improvement
x86_64-v3 25.2752 18.4708 36.84%
aarch64 17.2879 13.5320 27.76%
power10 22.0685 6.5734 235.73%
loongarch64 4.4419 3.7673 17.91%
- input: workload-slow.wrf
master patched improvement
x86_64-v3 314.4400 28.2085 1014.70%
aarch64 139.2100 19.7066 606.41%
power10 87.0904 8.5699 916.23%
loongarch64 25.7149 4.1072 526.09%
* latency
- input: workload-fast.wrf
master patched improvement
x86_64-v3 41.8266 50.7995 -17.66%
aarch64 18.8740 21.5252 -12.32%
power10 18.6622 12.6816 47.16%
loongarch64 3.9943 4.2250 -5.46%
- input: workload-moderate.wrf
master patched improvement
x86_64-v3 53.3267 51.0454 4.47%
aarch64 23.1496 21.4201 8.07%
power10 22.5215 12.6418 78.15%
loongarch64 4.7753 4.2169 13.24%
- input: workload-slow.wrf
master patched improvement
x86_64-v3 342.8660 61.6107 456.50%
aarch64 145.7430 27.3459 432.96%
power10 87.6605 14.4640 506.06%
loongarch64 25.9934 4.5291 473.91%
The x86_64-v3 results come from a Ryzen 9 5900X with gcc 16.1.1,
--disable-multi-arch, and -march=x86-64-v3, aarch64 from a Neoverse N1,
power10 from a POWER10, and loongarch64 from a Loongson-3C5000L-LL, the
last three with gcc 16.2.1.
Checked on x86_64-linux-gnu, aarch64-linux-gnu, powerpc64le-linux-gnu,
and loongarch64-linux-gnuf64.
---
NEWS | 2 +-
SHARED-FILES | 2 +
math/auto-libm-test-in | 30 +
math/auto-libm-test-out-sin | 1587 +++++++++++++++++++++++++
sysdeps/generic/math_uint128.h | 7 +
sysdeps/i386/Makefile | 1 +
sysdeps/ieee754/dbl-64/libm-test-ulps | 12 +
sysdeps/ieee754/dbl-64/s_sin.c | 1393 ++++++++++++++++++----
8 files changed, 2810 insertions(+), 224 deletions(-)
diff --git a/NEWS b/NEWS
index a53aab4ce8d..dc76f419031 100644
--- a/NEWS
+++ b/NEWS
@@ -10,7 +10,7 @@ Version 2.45
Major new features:
* Additional optimized and correctly rounded mathematical functions have
- been imported from the CORE-MATH project, in particular cbrt.
+ been imported from the CORE-MATH project, in particular cbrt and sin.
Deprecated and removed features, and other changes affecting compatibility:
diff --git a/SHARED-FILES b/SHARED-FILES
index d603c19b415..2ba585c397a 100644
--- a/SHARED-FILES
+++ b/SHARED-FILES
@@ -283,6 +283,8 @@ core-math:
sysdeps/ieee754/dbl-64/s_erf.c
# src/binary64/erfc/erfc.c, revision 55e9869e
sysdeps/ieee754/dbl-64/s_erfc.c
+ # src/binary64/sin/sin.c, revision a3fe413f
+ sysdeps/ieee754/dbl-64/s_sin.c
# src/binary64/tanh/tanh.c, revision dbd377a9
sysdeps/ieee754/dbl-64/s_tanh.c
# src/binary32/acos/acosf.c, revision 50864ddf
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in
index cdcff247cba..233dcf13a23 100644
--- a/math/auto-libm-test-in
+++ b/math/auto-libm-test-in
@@ -9509,6 +9509,36 @@ sin 0x1.4c96c11134d36p+578
sin 0x1.69eab0985179bp+246
sin 0x1.2419db13f80ap+50
sin 0x1.0e826ceb0c5cp+47
+# The following are hard-to-round cases from the CORE-MATH project
+# (src/binary64/sin/sin.wc), which exercise the accurate paths of the
+# correctly-rounded sin, along with the path boundaries.
+sin 0x1.d12ed0af199d9p-26
+sin 0x1.8000000000043p-24
+sin 0x1.8000000000013p-23
+sin 0x1.8000000000014p-22
+sin 0x1.7fd55096d3435p-20
+sin 0x1.7e41fab9a91e6p-18
+sin 0x1.8070fb30b215ep-17
+sin 0x1.8134c0616cd19p-16
+sin 0x1.7c9e67c15ca0ap-8
+sin 0x1.7f02a650bdce1p-1
+sin 0x1.7f9f2a25bcd71p+7
+sin 0x1.7effa0d570d3fp+15
+sin 0x1.802adf9f95f17p+22
+sin 0x1.7ef0a65233598p+30
+sin 0x1.832fb2782b7e8p+31
+sin 0x1.83a466d251491p+196
+sin 0x1.7dc09d20d8593p+362
+sin 0x1.832ca331294dbp+527
+sin 0x1.7ab8ac335df9cp+692
+sin 0x1.835e6040e6746p+858
+sin 0x1.7bbbfbd4ae9b8p+1023
+sin 0x1.fffffffffffffp-27
+sin 0x1p-26
+sin 0x1.fffffffffffffp-17
+sin 0x1p-16
+sin 0x1.fffffffffffffp+30
+sin 0x1p+31
sin max
sin -max
sin min
diff --git a/math/auto-libm-test-out-sin b/math/auto-libm-test-out-sin
index 1181f057ce8..f70fc20f5ad 100644
--- a/math/auto-libm-test-out-sin
+++ b/math/auto-libm-test-out-sin
@@ -3617,6 +3617,1593 @@ sin 0x1.0e826ceb0c5cp+47
= sin tonearest ibm128 0x8.7413675862ep+44 : 0x4.2e416b2b06d42fbd86d01b22p-48 : inexact-ok
= sin towardzero ibm128 0x8.7413675862ep+44 : 0x4.2e416b2b06d42fbd86d01b22p-48 : inexact-ok
= sin upward ibm128 0x8.7413675862ep+44 : 0x4.2e416b2b06d42fbd86d01b2202p-48 : inexact-ok
+sin 0x1.d12ed0af199d9p-26
+= sin downward binary32 0x7.44bb48p-28 : 0x7.44bb4p-28 : inexact-ok
+= sin tonearest binary32 0x7.44bb48p-28 : 0x7.44bb48p-28 : inexact-ok
+= sin towardzero binary32 0x7.44bb48p-28 : 0x7.44bb4p-28 : inexact-ok
+= sin upward binary32 0x7.44bb48p-28 : 0x7.44bb48p-28 : inexact-ok
+= sin downward binary64 0x7.44bb48p-28 : 0x7.44bb47ffffff8p-28 : inexact-ok
+= sin tonearest binary64 0x7.44bb48p-28 : 0x7.44bb47ffffffcp-28 : inexact-ok
+= sin towardzero binary64 0x7.44bb48p-28 : 0x7.44bb47ffffff8p-28 : inexact-ok
+= sin upward binary64 0x7.44bb48p-28 : 0x7.44bb47ffffffcp-28 : inexact-ok
+= sin downward intel96 0x7.44bb48p-28 : 0x7.44bb47ffffffbff8p-28 : inexact-ok
+= sin tonearest intel96 0x7.44bb48p-28 : 0x7.44bb47ffffffcp-28 : inexact-ok
+= sin towardzero intel96 0x7.44bb48p-28 : 0x7.44bb47ffffffbff8p-28 : inexact-ok
+= sin upward intel96 0x7.44bb48p-28 : 0x7.44bb47ffffffcp-28 : inexact-ok
+= sin downward m68k96 0x7.44bb48p-28 : 0x7.44bb47ffffffbff8p-28 : inexact-ok
+= sin tonearest m68k96 0x7.44bb48p-28 : 0x7.44bb47ffffffcp-28 : inexact-ok
+= sin towardzero m68k96 0x7.44bb48p-28 : 0x7.44bb47ffffffbff8p-28 : inexact-ok
+= sin upward m68k96 0x7.44bb48p-28 : 0x7.44bb47ffffffcp-28 : inexact-ok
+= sin downward binary128 0x7.44bb48p-28 : 0x7.44bb47ffffffbfffff74f2cf8814p-28 : inexact-ok
+= sin tonearest binary128 0x7.44bb48p-28 : 0x7.44bb47ffffffbfffff74f2cf8814p-28 : inexact-ok
+= sin towardzero binary128 0x7.44bb48p-28 : 0x7.44bb47ffffffbfffff74f2cf8814p-28 : inexact-ok
+= sin upward binary128 0x7.44bb48p-28 : 0x7.44bb47ffffffbfffff74f2cf8818p-28 : inexact-ok
+= sin downward ibm128 0x7.44bb48p-28 : 0x7.44bb47ffffffbfffff74f2cf88p-28 : inexact-ok
+= sin tonearest ibm128 0x7.44bb48p-28 : 0x7.44bb47ffffffbfffff74f2cf88p-28 : inexact-ok
+= sin towardzero ibm128 0x7.44bb48p-28 : 0x7.44bb47ffffffbfffff74f2cf88p-28 : inexact-ok
+= sin upward ibm128 0x7.44bb48p-28 : 0x7.44bb47ffffffbfffff74f2cf8ap-28 : inexact-ok
+= sin downward binary32 0x7.44bb4p-28 : 0x7.44bb38p-28 : inexact-ok
+= sin tonearest binary32 0x7.44bb4p-28 : 0x7.44bb4p-28 : inexact-ok
+= sin towardzero binary32 0x7.44bb4p-28 : 0x7.44bb38p-28 : inexact-ok
+= sin upward binary32 0x7.44bb4p-28 : 0x7.44bb4p-28 : inexact-ok
+= sin downward binary64 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin tonearest binary64 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin towardzero binary64 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin upward binary64 0x7.44bb4p-28 : 0x7.44bb4p-28 : inexact-ok
+= sin downward intel96 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin tonearest intel96 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin towardzero intel96 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin upward intel96 0x7.44bb4p-28 : 0x7.44bb3fffffffc008p-28 : inexact-ok
+= sin downward m68k96 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin tonearest m68k96 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin towardzero m68k96 0x7.44bb4p-28 : 0x7.44bb3fffffffcp-28 : inexact-ok
+= sin upward m68k96 0x7.44bb4p-28 : 0x7.44bb3fffffffc008p-28 : inexact-ok
+= sin downward binary128 0x7.44bb4p-28 : 0x7.44bb3fffffffc000004845967c84p-28 : inexact-ok
+= sin tonearest binary128 0x7.44bb4p-28 : 0x7.44bb3fffffffc000004845967c84p-28 : inexact-ok
+= sin towardzero binary128 0x7.44bb4p-28 : 0x7.44bb3fffffffc000004845967c84p-28 : inexact-ok
+= sin upward binary128 0x7.44bb4p-28 : 0x7.44bb3fffffffc000004845967c88p-28 : inexact-ok
+= sin downward ibm128 0x7.44bb4p-28 : 0x7.44bb3fffffffc000004845967cp-28 : inexact-ok
+= sin tonearest ibm128 0x7.44bb4p-28 : 0x7.44bb3fffffffc000004845967cp-28 : inexact-ok
+= sin towardzero ibm128 0x7.44bb4p-28 : 0x7.44bb3fffffffc000004845967cp-28 : inexact-ok
+= sin upward ibm128 0x7.44bb4p-28 : 0x7.44bb3fffffffc000004845967ep-28 : inexact-ok
+= sin downward binary64 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin tonearest binary64 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin towardzero binary64 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin upward binary64 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66764p-28 : inexact-ok
+= sin downward intel96 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin tonearest intel96 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin towardzero intel96 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin upward intel96 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760008p-28 : inexact-ok
+= sin downward m68k96 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin tonearest m68k96 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin towardzero m68k96 0x7.44bb42bc66764p-28 : 0x7.44bb42bc6676p-28 : inexact-ok
+= sin upward m68k96 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760008p-28 : inexact-ok
+= sin downward binary128 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760000000000391d44p-28 : inexact-ok
+= sin tonearest binary128 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760000000000391d48p-28 : inexact-ok
+= sin towardzero binary128 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760000000000391d44p-28 : inexact-ok
+= sin upward binary128 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760000000000391d48p-28 : inexact-ok
+= sin downward ibm128 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760000000000391cp-28 : inexact-ok
+= sin tonearest ibm128 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760000000000391ep-28 : inexact-ok
+= sin towardzero ibm128 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760000000000391cp-28 : inexact-ok
+= sin upward ibm128 0x7.44bb42bc66764p-28 : 0x7.44bb42bc66760000000000391ep-28 : inexact-ok
+sin 0x1.8000000000043p-24
+= sin downward binary32 0x1.800002p-24 : 0x1.8p-24 : inexact-ok
+= sin tonearest binary32 0x1.800002p-24 : 0x1.800002p-24 : inexact-ok
+= sin towardzero binary32 0x1.800002p-24 : 0x1.8p-24 : inexact-ok
+= sin upward binary32 0x1.800002p-24 : 0x1.800002p-24 : inexact-ok
+= sin downward binary64 0x1.800002p-24 : 0x1.800001ffffff6p-24 : inexact-ok
+= sin tonearest binary64 0x1.800002p-24 : 0x1.800001ffffff7p-24 : inexact-ok
+= sin towardzero binary64 0x1.800002p-24 : 0x1.800001ffffff6p-24 : inexact-ok
+= sin upward binary64 0x1.800002p-24 : 0x1.800001ffffff7p-24 : inexact-ok
+= sin downward intel96 0x1.800002p-24 : 0x1.800001ffffff6ffep-24 : inexact-ok
+= sin tonearest intel96 0x1.800002p-24 : 0x1.800001ffffff7p-24 : inexact-ok
+= sin towardzero intel96 0x1.800002p-24 : 0x1.800001ffffff6ffep-24 : inexact-ok
+= sin upward intel96 0x1.800002p-24 : 0x1.800001ffffff7p-24 : inexact-ok
+= sin downward m68k96 0x1.800002p-24 : 0x1.800001ffffff6ffep-24 : inexact-ok
+= sin tonearest m68k96 0x1.800002p-24 : 0x1.800001ffffff7p-24 : inexact-ok
+= sin towardzero m68k96 0x1.800002p-24 : 0x1.800001ffffff6ffep-24 : inexact-ok
+= sin upward m68k96 0x1.800002p-24 : 0x1.800001ffffff7p-24 : inexact-ok
+= sin downward binary128 0x1.800002p-24 : 0x1.800001ffffff6ffffdbffffd1033p-24 : inexact-ok
+= sin tonearest binary128 0x1.800002p-24 : 0x1.800001ffffff6ffffdbffffd1033p-24 : inexact-ok
+= sin towardzero binary128 0x1.800002p-24 : 0x1.800001ffffff6ffffdbffffd1033p-24 : inexact-ok
+= sin upward binary128 0x1.800002p-24 : 0x1.800001ffffff6ffffdbffffd1034p-24 : inexact-ok
+= sin downward ibm128 0x1.800002p-24 : 0x1.800001ffffff6ffffdbffffd1p-24 : inexact-ok
+= sin tonearest ibm128 0x1.800002p-24 : 0x1.800001ffffff6ffffdbffffd1p-24 : inexact-ok
+= sin towardzero ibm128 0x1.800002p-24 : 0x1.800001ffffff6ffffdbffffd1p-24 : inexact-ok
+= sin upward ibm128 0x1.800002p-24 : 0x1.800001ffffff6ffffdbffffd108p-24 : inexact-ok
+= sin downward binary32 0x1.8p-24 : 0x1.7ffffep-24 : inexact-ok
+= sin tonearest binary32 0x1.8p-24 : 0x1.8p-24 : inexact-ok
+= sin towardzero binary32 0x1.8p-24 : 0x1.7ffffep-24 : inexact-ok
+= sin upward binary32 0x1.8p-24 : 0x1.8p-24 : inexact-ok
+= sin downward binary64 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin tonearest binary64 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin towardzero binary64 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin upward binary64 0x1.8p-24 : 0x1.7fffffffffff8p-24 : inexact-ok
+= sin downward intel96 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin tonearest intel96 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin towardzero intel96 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin upward intel96 0x1.8p-24 : 0x1.7fffffffffff7002p-24 : inexact-ok
+= sin downward m68k96 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin tonearest m68k96 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin towardzero m68k96 0x1.8p-24 : 0x1.7fffffffffff7p-24 : inexact-ok
+= sin upward m68k96 0x1.8p-24 : 0x1.7fffffffffff7002p-24 : inexact-ok
+= sin downward binary128 0x1.8p-24 : 0x1.7fffffffffff7000000000001033p-24 : inexact-ok
+= sin tonearest binary128 0x1.8p-24 : 0x1.7fffffffffff7000000000001033p-24 : inexact-ok
+= sin towardzero binary128 0x1.8p-24 : 0x1.7fffffffffff7000000000001033p-24 : inexact-ok
+= sin upward binary128 0x1.8p-24 : 0x1.7fffffffffff7000000000001034p-24 : inexact-ok
+= sin downward ibm128 0x1.8p-24 : 0x1.7fffffffffff7000000000001p-24 : inexact-ok
+= sin tonearest ibm128 0x1.8p-24 : 0x1.7fffffffffff7000000000001p-24 : inexact-ok
+= sin towardzero ibm128 0x1.8p-24 : 0x1.7fffffffffff7000000000001p-24 : inexact-ok
+= sin upward ibm128 0x1.8p-24 : 0x1.7fffffffffff700000000000108p-24 : inexact-ok
+= sin downward binary64 0x1.8000000000043p-24 : 0x1.8000000000039p-24 : inexact-ok
+= sin tonearest binary64 0x1.8000000000043p-24 : 0x1.800000000003ap-24 : inexact-ok
+= sin towardzero binary64 0x1.8000000000043p-24 : 0x1.8000000000039p-24 : inexact-ok
+= sin upward binary64 0x1.8000000000043p-24 : 0x1.800000000003ap-24 : inexact-ok
+= sin downward intel96 0x1.8000000000043p-24 : 0x1.8000000000039ffep-24 : inexact-ok
+= sin tonearest intel96 0x1.8000000000043p-24 : 0x1.800000000003ap-24 : inexact-ok
+= sin towardzero intel96 0x1.8000000000043p-24 : 0x1.8000000000039ffep-24 : inexact-ok
+= sin upward intel96 0x1.8000000000043p-24 : 0x1.800000000003ap-24 : inexact-ok
+= sin downward m68k96 0x1.8000000000043p-24 : 0x1.8000000000039ffep-24 : inexact-ok
+= sin tonearest m68k96 0x1.8000000000043p-24 : 0x1.800000000003ap-24 : inexact-ok
+= sin towardzero m68k96 0x1.8000000000043p-24 : 0x1.8000000000039ffep-24 : inexact-ok
+= sin upward m68k96 0x1.8000000000043p-24 : 0x1.800000000003ap-24 : inexact-ok
+= sin downward binary128 0x1.8000000000043p-24 : 0x1.8000000000039ffffffffffb5a33p-24 : inexact-ok
+= sin tonearest binary128 0x1.8000000000043p-24 : 0x1.8000000000039ffffffffffb5a33p-24 : inexact-ok
+= sin towardzero binary128 0x1.8000000000043p-24 : 0x1.8000000000039ffffffffffb5a33p-24 : inexact-ok
+= sin upward binary128 0x1.8000000000043p-24 : 0x1.8000000000039ffffffffffb5a34p-24 : inexact-ok
+= sin downward ibm128 0x1.8000000000043p-24 : 0x1.8000000000039ffffffffffb5ap-24 : inexact-ok
+= sin tonearest ibm128 0x1.8000000000043p-24 : 0x1.8000000000039ffffffffffb5ap-24 : inexact-ok
+= sin towardzero ibm128 0x1.8000000000043p-24 : 0x1.8000000000039ffffffffffb5ap-24 : inexact-ok
+= sin upward ibm128 0x1.8000000000043p-24 : 0x1.8000000000039ffffffffffb5a8p-24 : inexact-ok
+sin 0x1.8000000000013p-23
+= sin downward binary32 0x3.000004p-24 : 0x3p-24 : inexact-ok
+= sin tonearest binary32 0x3.000004p-24 : 0x3.000004p-24 : inexact-ok
+= sin towardzero binary32 0x3.000004p-24 : 0x3p-24 : inexact-ok
+= sin upward binary32 0x3.000004p-24 : 0x3.000004p-24 : inexact-ok
+= sin downward binary64 0x3.000004p-24 : 0x3.000003fffffb6p-24 : inexact-ok
+= sin tonearest binary64 0x3.000004p-24 : 0x3.000003fffffb8p-24 : inexact-ok
+= sin towardzero binary64 0x3.000004p-24 : 0x3.000003fffffb6p-24 : inexact-ok
+= sin upward binary64 0x3.000004p-24 : 0x3.000003fffffb8p-24 : inexact-ok
+= sin downward intel96 0x3.000004p-24 : 0x3.000003fffffb7ffcp-24 : inexact-ok
+= sin tonearest intel96 0x3.000004p-24 : 0x3.000003fffffb8p-24 : inexact-ok
+= sin towardzero intel96 0x3.000004p-24 : 0x3.000003fffffb7ffcp-24 : inexact-ok
+= sin upward intel96 0x3.000004p-24 : 0x3.000003fffffb8p-24 : inexact-ok
+= sin downward m68k96 0x3.000004p-24 : 0x3.000003fffffb7ffcp-24 : inexact-ok
+= sin tonearest m68k96 0x3.000004p-24 : 0x3.000003fffffb8p-24 : inexact-ok
+= sin towardzero m68k96 0x3.000004p-24 : 0x3.000003fffffb7ffcp-24 : inexact-ok
+= sin upward m68k96 0x3.000004p-24 : 0x3.000003fffffb8p-24 : inexact-ok
+= sin downward binary128 0x3.000004p-24 : 0x3.000003fffffb7fffedffffea0666p-24 : inexact-ok
+= sin tonearest binary128 0x3.000004p-24 : 0x3.000003fffffb7fffedffffea0666p-24 : inexact-ok
+= sin towardzero binary128 0x3.000004p-24 : 0x3.000003fffffb7fffedffffea0666p-24 : inexact-ok
+= sin upward binary128 0x3.000004p-24 : 0x3.000003fffffb7fffedffffea0668p-24 : inexact-ok
+= sin downward ibm128 0x3.000004p-24 : 0x3.000003fffffb7fffedffffea06p-24 : inexact-ok
+= sin tonearest ibm128 0x3.000004p-24 : 0x3.000003fffffb7fffedffffea06p-24 : inexact-ok
+= sin towardzero ibm128 0x3.000004p-24 : 0x3.000003fffffb7fffedffffea06p-24 : inexact-ok
+= sin upward ibm128 0x3.000004p-24 : 0x3.000003fffffb7fffedffffea07p-24 : inexact-ok
+= sin downward binary32 0x3p-24 : 0x2.fffffcp-24 : inexact-ok
+= sin tonearest binary32 0x3p-24 : 0x3p-24 : inexact-ok
+= sin towardzero binary32 0x3p-24 : 0x2.fffffcp-24 : inexact-ok
+= sin upward binary32 0x3p-24 : 0x3p-24 : inexact-ok
+= sin downward binary64 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin tonearest binary64 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin towardzero binary64 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin upward binary64 0x3p-24 : 0x2.fffffffffffbap-24 : inexact-ok
+= sin downward intel96 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin tonearest intel96 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin towardzero intel96 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin upward intel96 0x3p-24 : 0x2.fffffffffffb8004p-24 : inexact-ok
+= sin downward m68k96 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin tonearest m68k96 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin towardzero m68k96 0x3p-24 : 0x2.fffffffffffb8p-24 : inexact-ok
+= sin upward m68k96 0x3p-24 : 0x2.fffffffffffb8004p-24 : inexact-ok
+= sin downward binary128 0x3p-24 : 0x2.fffffffffffb8000000000020666p-24 : inexact-ok
+= sin tonearest binary128 0x3p-24 : 0x2.fffffffffffb8000000000020666p-24 : inexact-ok
+= sin towardzero binary128 0x3p-24 : 0x2.fffffffffffb8000000000020666p-24 : inexact-ok
+= sin upward binary128 0x3p-24 : 0x2.fffffffffffb8000000000020668p-24 : inexact-ok
+= sin downward ibm128 0x3p-24 : 0x2.fffffffffffb80000000000206p-24 : inexact-ok
+= sin tonearest ibm128 0x3p-24 : 0x2.fffffffffffb80000000000206p-24 : inexact-ok
+= sin towardzero ibm128 0x3p-24 : 0x2.fffffffffffb80000000000206p-24 : inexact-ok
+= sin upward ibm128 0x3p-24 : 0x2.fffffffffffb80000000000207p-24 : inexact-ok
+= sin downward binary64 0x3.0000000000026p-24 : 0x2.fffffffffffdcp-24 : inexact-ok
+= sin tonearest binary64 0x3.0000000000026p-24 : 0x2.fffffffffffdep-24 : inexact-ok
+= sin towardzero binary64 0x3.0000000000026p-24 : 0x2.fffffffffffdcp-24 : inexact-ok
+= sin upward binary64 0x3.0000000000026p-24 : 0x2.fffffffffffdep-24 : inexact-ok
+= sin downward intel96 0x3.0000000000026p-24 : 0x2.fffffffffffddffcp-24 : inexact-ok
+= sin tonearest intel96 0x3.0000000000026p-24 : 0x2.fffffffffffdep-24 : inexact-ok
+= sin towardzero intel96 0x3.0000000000026p-24 : 0x2.fffffffffffddffcp-24 : inexact-ok
+= sin upward intel96 0x3.0000000000026p-24 : 0x2.fffffffffffdep-24 : inexact-ok
+= sin downward m68k96 0x3.0000000000026p-24 : 0x2.fffffffffffddffcp-24 : inexact-ok
+= sin tonearest m68k96 0x3.0000000000026p-24 : 0x2.fffffffffffdep-24 : inexact-ok
+= sin towardzero m68k96 0x3.0000000000026p-24 : 0x2.fffffffffffddffcp-24 : inexact-ok
+= sin upward m68k96 0x3.0000000000026p-24 : 0x2.fffffffffffdep-24 : inexact-ok
+= sin downward binary128 0x3.0000000000026p-24 : 0x2.fffffffffffddffffffffff75666p-24 : inexact-ok
+= sin tonearest binary128 0x3.0000000000026p-24 : 0x2.fffffffffffddffffffffff75666p-24 : inexact-ok
+= sin towardzero binary128 0x3.0000000000026p-24 : 0x2.fffffffffffddffffffffff75666p-24 : inexact-ok
+= sin upward binary128 0x3.0000000000026p-24 : 0x2.fffffffffffddffffffffff75668p-24 : inexact-ok
+= sin downward ibm128 0x3.0000000000026p-24 : 0x2.fffffffffffddffffffffff756p-24 : inexact-ok
+= sin tonearest ibm128 0x3.0000000000026p-24 : 0x2.fffffffffffddffffffffff756p-24 : inexact-ok
+= sin towardzero ibm128 0x3.0000000000026p-24 : 0x2.fffffffffffddffffffffff756p-24 : inexact-ok
+= sin upward ibm128 0x3.0000000000026p-24 : 0x2.fffffffffffddffffffffff757p-24 : inexact-ok
+sin 0x1.8000000000014p-22
+= sin downward binary32 0x6.000008p-24 : 0x6p-24 : inexact-ok
+= sin tonearest binary32 0x6.000008p-24 : 0x6.000008p-24 : inexact-ok
+= sin towardzero binary32 0x6.000008p-24 : 0x6p-24 : inexact-ok
+= sin upward binary32 0x6.000008p-24 : 0x6.000008p-24 : inexact-ok
+= sin downward binary64 0x6.000008p-24 : 0x6.000007ffffdbcp-24 : inexact-ok
+= sin tonearest binary64 0x6.000008p-24 : 0x6.000007ffffdcp-24 : inexact-ok
+= sin towardzero binary64 0x6.000008p-24 : 0x6.000007ffffdbcp-24 : inexact-ok
+= sin upward binary64 0x6.000008p-24 : 0x6.000007ffffdcp-24 : inexact-ok
+= sin downward intel96 0x6.000008p-24 : 0x6.000007ffffdbfff8p-24 : inexact-ok
+= sin tonearest intel96 0x6.000008p-24 : 0x6.000007ffffdcp-24 : inexact-ok
+= sin towardzero intel96 0x6.000008p-24 : 0x6.000007ffffdbfff8p-24 : inexact-ok
+= sin upward intel96 0x6.000008p-24 : 0x6.000007ffffdcp-24 : inexact-ok
+= sin downward m68k96 0x6.000008p-24 : 0x6.000007ffffdbfff8p-24 : inexact-ok
+= sin tonearest m68k96 0x6.000008p-24 : 0x6.000007ffffdcp-24 : inexact-ok
+= sin towardzero m68k96 0x6.000008p-24 : 0x6.000007ffffdbfff8p-24 : inexact-ok
+= sin upward m68k96 0x6.000008p-24 : 0x6.000007ffffdcp-24 : inexact-ok
+= sin downward binary128 0x6.000008p-24 : 0x6.000007ffffdbffff6fffff80ccccp-24 : inexact-ok
+= sin tonearest binary128 0x6.000008p-24 : 0x6.000007ffffdbffff6fffff80ccdp-24 : inexact-ok
+= sin towardzero binary128 0x6.000008p-24 : 0x6.000007ffffdbffff6fffff80ccccp-24 : inexact-ok
+= sin upward binary128 0x6.000008p-24 : 0x6.000007ffffdbffff6fffff80ccdp-24 : inexact-ok
+= sin downward ibm128 0x6.000008p-24 : 0x6.000007ffffdbffff6fffff80ccp-24 : inexact-ok
+= sin tonearest ibm128 0x6.000008p-24 : 0x6.000007ffffdbffff6fffff80ccp-24 : inexact-ok
+= sin towardzero ibm128 0x6.000008p-24 : 0x6.000007ffffdbffff6fffff80ccp-24 : inexact-ok
+= sin upward ibm128 0x6.000008p-24 : 0x6.000007ffffdbffff6fffff80cep-24 : inexact-ok
+= sin downward binary32 0x6p-24 : 0x5.fffff8p-24 : inexact-ok
+= sin tonearest binary32 0x6p-24 : 0x6p-24 : inexact-ok
+= sin towardzero binary32 0x6p-24 : 0x5.fffff8p-24 : inexact-ok
+= sin upward binary32 0x6p-24 : 0x6p-24 : inexact-ok
+= sin downward binary64 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin tonearest binary64 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin towardzero binary64 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin upward binary64 0x6p-24 : 0x5.ffffffffffdc4p-24 : inexact-ok
+= sin downward intel96 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin tonearest intel96 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin towardzero intel96 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin upward intel96 0x6p-24 : 0x5.ffffffffffdc0008p-24 : inexact-ok
+= sin downward m68k96 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin tonearest m68k96 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin towardzero m68k96 0x6p-24 : 0x5.ffffffffffdcp-24 : inexact-ok
+= sin upward m68k96 0x6p-24 : 0x5.ffffffffffdc0008p-24 : inexact-ok
+= sin downward binary128 0x6p-24 : 0x5.ffffffffffdc000000000040ccccp-24 : inexact-ok
+= sin tonearest binary128 0x6p-24 : 0x5.ffffffffffdc000000000040ccccp-24 : inexact-ok
+= sin towardzero binary128 0x6p-24 : 0x5.ffffffffffdc000000000040ccccp-24 : inexact-ok
+= sin upward binary128 0x6p-24 : 0x5.ffffffffffdc000000000040ccdp-24 : inexact-ok
+= sin downward ibm128 0x6p-24 : 0x5.ffffffffffdc000000000040ccp-24 : inexact-ok
+= sin tonearest ibm128 0x6p-24 : 0x5.ffffffffffdc000000000040ccp-24 : inexact-ok
+= sin towardzero ibm128 0x6p-24 : 0x5.ffffffffffdc000000000040ccp-24 : inexact-ok
+= sin upward ibm128 0x6p-24 : 0x5.ffffffffffdc000000000040cep-24 : inexact-ok
+= sin downward binary64 0x6.000000000005p-24 : 0x5.ffffffffffe0cp-24 : inexact-ok
+= sin tonearest binary64 0x6.000000000005p-24 : 0x5.ffffffffffe1p-24 : inexact-ok
+= sin towardzero binary64 0x6.000000000005p-24 : 0x5.ffffffffffe0cp-24 : inexact-ok
+= sin upward binary64 0x6.000000000005p-24 : 0x5.ffffffffffe1p-24 : inexact-ok
+= sin downward intel96 0x6.000000000005p-24 : 0x5.ffffffffffe0fff8p-24 : inexact-ok
+= sin tonearest intel96 0x6.000000000005p-24 : 0x5.ffffffffffe1p-24 : inexact-ok
+= sin towardzero intel96 0x6.000000000005p-24 : 0x5.ffffffffffe0fff8p-24 : inexact-ok
+= sin upward intel96 0x6.000000000005p-24 : 0x5.ffffffffffe1p-24 : inexact-ok
+= sin downward m68k96 0x6.000000000005p-24 : 0x5.ffffffffffe0fff8p-24 : inexact-ok
+= sin tonearest m68k96 0x6.000000000005p-24 : 0x5.ffffffffffe1p-24 : inexact-ok
+= sin towardzero m68k96 0x6.000000000005p-24 : 0x5.ffffffffffe0fff8p-24 : inexact-ok
+= sin upward m68k96 0x6.000000000005p-24 : 0x5.ffffffffffe1p-24 : inexact-ok
+= sin downward binary128 0x6.000000000005p-24 : 0x5.ffffffffffe0ffffffffffe6ccccp-24 : inexact-ok
+= sin tonearest binary128 0x6.000000000005p-24 : 0x5.ffffffffffe0ffffffffffe6ccccp-24 : inexact-ok
+= sin towardzero binary128 0x6.000000000005p-24 : 0x5.ffffffffffe0ffffffffffe6ccccp-24 : inexact-ok
+= sin upward binary128 0x6.000000000005p-24 : 0x5.ffffffffffe0ffffffffffe6ccdp-24 : inexact-ok
+= sin downward ibm128 0x6.000000000005p-24 : 0x5.ffffffffffe0ffffffffffe6ccp-24 : inexact-ok
+= sin tonearest ibm128 0x6.000000000005p-24 : 0x5.ffffffffffe0ffffffffffe6ccp-24 : inexact-ok
+= sin towardzero ibm128 0x6.000000000005p-24 : 0x5.ffffffffffe0ffffffffffe6ccp-24 : inexact-ok
+= sin upward ibm128 0x6.000000000005p-24 : 0x5.ffffffffffe0ffffffffffe6cep-24 : inexact-ok
+sin 0x1.7fd55096d3435p-20
+= sin downward binary32 0x1.7fd552p-20 : 0x1.7fd55p-20 : inexact-ok
+= sin tonearest binary32 0x1.7fd552p-20 : 0x1.7fd552p-20 : inexact-ok
+= sin towardzero binary32 0x1.7fd552p-20 : 0x1.7fd55p-20 : inexact-ok
+= sin upward binary32 0x1.7fd552p-20 : 0x1.7fd552p-20 : inexact-ok
+= sin downward binary64 0x1.7fd552p-20 : 0x1.7fd551ffff702p-20 : inexact-ok
+= sin tonearest binary64 0x1.7fd552p-20 : 0x1.7fd551ffff703p-20 : inexact-ok
+= sin towardzero binary64 0x1.7fd552p-20 : 0x1.7fd551ffff702p-20 : inexact-ok
+= sin upward binary64 0x1.7fd552p-20 : 0x1.7fd551ffff703p-20 : inexact-ok
+= sin downward intel96 0x1.7fd552p-20 : 0x1.7fd551ffff702ffep-20 : inexact-ok
+= sin tonearest intel96 0x1.7fd552p-20 : 0x1.7fd551ffff702ffep-20 : inexact-ok
+= sin towardzero intel96 0x1.7fd552p-20 : 0x1.7fd551ffff702ffep-20 : inexact-ok
+= sin upward intel96 0x1.7fd552p-20 : 0x1.7fd551ffff703p-20 : inexact-ok
+= sin downward m68k96 0x1.7fd552p-20 : 0x1.7fd551ffff702ffep-20 : inexact-ok
+= sin tonearest m68k96 0x1.7fd552p-20 : 0x1.7fd551ffff702ffep-20 : inexact-ok
+= sin towardzero m68k96 0x1.7fd552p-20 : 0x1.7fd551ffff702ffep-20 : inexact-ok
+= sin upward m68k96 0x1.7fd552p-20 : 0x1.7fd551ffff703p-20 : inexact-ok
+= sin downward binary128 0x1.7fd552p-20 : 0x1.7fd551ffff702ffe6a07fa672e33p-20 : inexact-ok
+= sin tonearest binary128 0x1.7fd552p-20 : 0x1.7fd551ffff702ffe6a07fa672e33p-20 : inexact-ok
+= sin towardzero binary128 0x1.7fd552p-20 : 0x1.7fd551ffff702ffe6a07fa672e33p-20 : inexact-ok
+= sin upward binary128 0x1.7fd552p-20 : 0x1.7fd551ffff702ffe6a07fa672e34p-20 : inexact-ok
+= sin downward ibm128 0x1.7fd552p-20 : 0x1.7fd551ffff702ffe6a07fa672ep-20 : inexact-ok
+= sin tonearest ibm128 0x1.7fd552p-20 : 0x1.7fd551ffff702ffe6a07fa672ep-20 : inexact-ok
+= sin towardzero ibm128 0x1.7fd552p-20 : 0x1.7fd551ffff702ffe6a07fa672ep-20 : inexact-ok
+= sin upward ibm128 0x1.7fd552p-20 : 0x1.7fd551ffff702ffe6a07fa672e8p-20 : inexact-ok
+= sin downward binary32 0x1.7fd55p-20 : 0x1.7fd54ep-20 : inexact-ok
+= sin tonearest binary32 0x1.7fd55p-20 : 0x1.7fd55p-20 : inexact-ok
+= sin towardzero binary32 0x1.7fd55p-20 : 0x1.7fd54ep-20 : inexact-ok
+= sin upward binary32 0x1.7fd55p-20 : 0x1.7fd55p-20 : inexact-ok
+= sin downward binary64 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin tonearest binary64 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin towardzero binary64 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin upward binary64 0x1.7fd55p-20 : 0x1.7fd54fffff704p-20 : inexact-ok
+= sin downward intel96 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin tonearest intel96 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin towardzero intel96 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin upward intel96 0x1.7fd55p-20 : 0x1.7fd54fffff703002p-20 : inexact-ok
+= sin downward m68k96 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin tonearest m68k96 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin towardzero m68k96 0x1.7fd55p-20 : 0x1.7fd54fffff703p-20 : inexact-ok
+= sin upward m68k96 0x1.7fd55p-20 : 0x1.7fd54fffff703002p-20 : inexact-ok
+= sin downward binary128 0x1.7fd55p-20 : 0x1.7fd54fffff703000a987f4851168p-20 : inexact-ok
+= sin tonearest binary128 0x1.7fd55p-20 : 0x1.7fd54fffff703000a987f4851169p-20 : inexact-ok
+= sin towardzero binary128 0x1.7fd55p-20 : 0x1.7fd54fffff703000a987f4851168p-20 : inexact-ok
+= sin upward binary128 0x1.7fd55p-20 : 0x1.7fd54fffff703000a987f4851169p-20 : inexact-ok
+= sin downward ibm128 0x1.7fd55p-20 : 0x1.7fd54fffff703000a987f48511p-20 : inexact-ok
+= sin tonearest ibm128 0x1.7fd55p-20 : 0x1.7fd54fffff703000a987f485118p-20 : inexact-ok
+= sin towardzero ibm128 0x1.7fd55p-20 : 0x1.7fd54fffff703000a987f48511p-20 : inexact-ok
+= sin upward ibm128 0x1.7fd55p-20 : 0x1.7fd54fffff703000a987f485118p-20 : inexact-ok
+= sin downward binary64 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37p-20 : inexact-ok
+= sin tonearest binary64 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b38p-20 : inexact-ok
+= sin towardzero binary64 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37p-20 : inexact-ok
+= sin upward binary64 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b38p-20 : inexact-ok
+= sin downward intel96 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffep-20 : inexact-ok
+= sin tonearest intel96 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b38p-20 : inexact-ok
+= sin towardzero intel96 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffep-20 : inexact-ok
+= sin upward intel96 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b38p-20 : inexact-ok
+= sin downward m68k96 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffep-20 : inexact-ok
+= sin tonearest m68k96 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b38p-20 : inexact-ok
+= sin towardzero m68k96 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffep-20 : inexact-ok
+= sin upward m68k96 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b38p-20 : inexact-ok
+= sin downward binary128 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffffffffff71743p-20 : inexact-ok
+= sin tonearest binary128 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffffffffff71744p-20 : inexact-ok
+= sin towardzero binary128 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffffffffff71743p-20 : inexact-ok
+= sin upward binary128 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffffffffff71744p-20 : inexact-ok
+= sin downward ibm128 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffffffffff717p-20 : inexact-ok
+= sin tonearest ibm128 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffffffffff7178p-20 : inexact-ok
+= sin towardzero ibm128 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffffffffff717p-20 : inexact-ok
+= sin upward ibm128 0x1.7fd55096d3435p-20 : 0x1.7fd55096d2b37ffffffffff7178p-20 : inexact-ok
+sin 0x1.7e41fab9a91e6p-18
+= sin downward binary32 0x5.f907fp-20 : 0x5.f907e8p-20 : inexact-ok
+= sin tonearest binary32 0x5.f907fp-20 : 0x5.f907fp-20 : inexact-ok
+= sin towardzero binary32 0x5.f907fp-20 : 0x5.f907e8p-20 : inexact-ok
+= sin upward binary32 0x5.f907fp-20 : 0x5.f907fp-20 : inexact-ok
+= sin downward binary64 0x5.f907fp-20 : 0x5.f907efffdc7ccp-20 : inexact-ok
+= sin tonearest binary64 0x5.f907fp-20 : 0x5.f907efffdc7ccp-20 : inexact-ok
+= sin towardzero binary64 0x5.f907fp-20 : 0x5.f907efffdc7ccp-20 : inexact-ok
+= sin upward binary64 0x5.f907fp-20 : 0x5.f907efffdc7dp-20 : inexact-ok
+= sin downward intel96 0x5.f907fp-20 : 0x5.f907efffdc7cdfap-20 : inexact-ok
+= sin tonearest intel96 0x5.f907fp-20 : 0x5.f907efffdc7cdfa8p-20 : inexact-ok
+= sin towardzero intel96 0x5.f907fp-20 : 0x5.f907efffdc7cdfap-20 : inexact-ok
+= sin upward intel96 0x5.f907fp-20 : 0x5.f907efffdc7cdfa8p-20 : inexact-ok
+= sin downward m68k96 0x5.f907fp-20 : 0x5.f907efffdc7cdfap-20 : inexact-ok
+= sin tonearest m68k96 0x5.f907fp-20 : 0x5.f907efffdc7cdfa8p-20 : inexact-ok
+= sin towardzero m68k96 0x5.f907fp-20 : 0x5.f907efffdc7cdfap-20 : inexact-ok
+= sin upward m68k96 0x5.f907fp-20 : 0x5.f907efffdc7cdfa8p-20 : inexact-ok
+= sin downward binary128 0x5.f907fp-20 : 0x5.f907efffdc7cdfa50c4b32b103e4p-20 : inexact-ok
+= sin tonearest binary128 0x5.f907fp-20 : 0x5.f907efffdc7cdfa50c4b32b103e4p-20 : inexact-ok
+= sin towardzero binary128 0x5.f907fp-20 : 0x5.f907efffdc7cdfa50c4b32b103e4p-20 : inexact-ok
+= sin upward binary128 0x5.f907fp-20 : 0x5.f907efffdc7cdfa50c4b32b103e8p-20 : inexact-ok
+= sin downward ibm128 0x5.f907fp-20 : 0x5.f907efffdc7cdfa50c4b32b102p-20 : inexact-ok
+= sin tonearest ibm128 0x5.f907fp-20 : 0x5.f907efffdc7cdfa50c4b32b104p-20 : inexact-ok
+= sin towardzero ibm128 0x5.f907fp-20 : 0x5.f907efffdc7cdfa50c4b32b102p-20 : inexact-ok
+= sin upward ibm128 0x5.f907fp-20 : 0x5.f907efffdc7cdfa50c4b32b104p-20 : inexact-ok
+= sin downward binary32 0x5.f907e8p-20 : 0x5.f907ep-20 : inexact-ok
+= sin tonearest binary32 0x5.f907e8p-20 : 0x5.f907e8p-20 : inexact-ok
+= sin towardzero binary32 0x5.f907e8p-20 : 0x5.f907ep-20 : inexact-ok
+= sin upward binary32 0x5.f907e8p-20 : 0x5.f907e8p-20 : inexact-ok
+= sin downward binary64 0x5.f907e8p-20 : 0x5.f907e7ffdc7ccp-20 : inexact-ok
+= sin tonearest binary64 0x5.f907e8p-20 : 0x5.f907e7ffdc7dp-20 : inexact-ok
+= sin towardzero binary64 0x5.f907e8p-20 : 0x5.f907e7ffdc7ccp-20 : inexact-ok
+= sin upward binary64 0x5.f907e8p-20 : 0x5.f907e7ffdc7dp-20 : inexact-ok
+= sin downward intel96 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce03p-20 : inexact-ok
+= sin tonearest intel96 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce03p-20 : inexact-ok
+= sin towardzero intel96 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce03p-20 : inexact-ok
+= sin upward intel96 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce038p-20 : inexact-ok
+= sin downward m68k96 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce03p-20 : inexact-ok
+= sin tonearest m68k96 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce03p-20 : inexact-ok
+= sin towardzero m68k96 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce03p-20 : inexact-ok
+= sin upward m68k96 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce038p-20 : inexact-ok
+= sin downward binary128 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce033be89b80a62p-20 : inexact-ok
+= sin tonearest binary128 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce033be89b80a6204p-20 : inexact-ok
+= sin towardzero binary128 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce033be89b80a62p-20 : inexact-ok
+= sin upward binary128 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce033be89b80a6204p-20 : inexact-ok
+= sin downward ibm128 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce033be89b80a62p-20 : inexact-ok
+= sin tonearest ibm128 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce033be89b80a62p-20 : inexact-ok
+= sin towardzero ibm128 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce033be89b80a62p-20 : inexact-ok
+= sin upward ibm128 0x5.f907e8p-20 : 0x5.f907e7ffdc7ce033be89b80a64p-20 : inexact-ok
+= sin downward binary64 0x5.f907eae6a4798p-20 : 0x5.f907eae680f64p-20 : inexact-ok
+= sin tonearest binary64 0x5.f907eae6a4798p-20 : 0x5.f907eae680f68p-20 : inexact-ok
+= sin towardzero binary64 0x5.f907eae6a4798p-20 : 0x5.f907eae680f64p-20 : inexact-ok
+= sin upward binary64 0x5.f907eae6a4798p-20 : 0x5.f907eae680f68p-20 : inexact-ok
+= sin downward intel96 0x5.f907eae6a4798p-20 : 0x5.f907eae680f66p-20 : inexact-ok
+= sin tonearest intel96 0x5.f907eae6a4798p-20 : 0x5.f907eae680f66p-20 : inexact-ok
+= sin towardzero intel96 0x5.f907eae6a4798p-20 : 0x5.f907eae680f66p-20 : inexact-ok
+= sin upward intel96 0x5.f907eae6a4798p-20 : 0x5.f907eae680f66008p-20 : inexact-ok
+= sin downward m68k96 0x5.f907eae6a4798p-20 : 0x5.f907eae680f66p-20 : inexact-ok
+= sin tonearest m68k96 0x5.f907eae6a4798p-20 : 0x5.f907eae680f66p-20 : inexact-ok
+= sin towardzero m68k96 0x5.f907eae6a4798p-20 : 0x5.f907eae680f66p-20 : inexact-ok
+= sin upward m68k96 0x5.f907eae6a4798p-20 : 0x5.f907eae680f66008p-20 : inexact-ok
+= sin downward binary128 0x5.f907eae6a4798p-20 : 0x5.f907eae680f660000000003244acp-20 : inexact-ok
+= sin tonearest binary128 0x5.f907eae6a4798p-20 : 0x5.f907eae680f660000000003244bp-20 : inexact-ok
+= sin towardzero binary128 0x5.f907eae6a4798p-20 : 0x5.f907eae680f660000000003244acp-20 : inexact-ok
+= sin upward binary128 0x5.f907eae6a4798p-20 : 0x5.f907eae680f660000000003244bp-20 : inexact-ok
+= sin downward ibm128 0x5.f907eae6a4798p-20 : 0x5.f907eae680f660000000003244p-20 : inexact-ok
+= sin tonearest ibm128 0x5.f907eae6a4798p-20 : 0x5.f907eae680f660000000003244p-20 : inexact-ok
+= sin towardzero ibm128 0x5.f907eae6a4798p-20 : 0x5.f907eae680f660000000003244p-20 : inexact-ok
+= sin upward ibm128 0x5.f907eae6a4798p-20 : 0x5.f907eae680f660000000003246p-20 : inexact-ok
+sin 0x1.8070fb30b215ep-17
+= sin downward binary32 0xc.0387ep-20 : 0xc.0387dp-20 : inexact-ok
+= sin tonearest binary32 0xc.0387ep-20 : 0xc.0387ep-20 : inexact-ok
+= sin towardzero binary32 0xc.0387ep-20 : 0xc.0387dp-20 : inexact-ok
+= sin upward binary32 0xc.0387ep-20 : 0xc.0387ep-20 : inexact-ok
+= sin downward binary64 0xc.0387ep-20 : 0xc.0387dffedf01p-20 : inexact-ok
+= sin tonearest binary64 0xc.0387ep-20 : 0xc.0387dffedf018p-20 : inexact-ok
+= sin towardzero binary64 0xc.0387ep-20 : 0xc.0387dffedf01p-20 : inexact-ok
+= sin upward binary64 0xc.0387ep-20 : 0xc.0387dffedf018p-20 : inexact-ok
+= sin downward intel96 0xc.0387ep-20 : 0xc.0387dffedf017e2p-20 : inexact-ok
+= sin tonearest intel96 0xc.0387ep-20 : 0xc.0387dffedf017e3p-20 : inexact-ok
+= sin towardzero intel96 0xc.0387ep-20 : 0xc.0387dffedf017e2p-20 : inexact-ok
+= sin upward intel96 0xc.0387ep-20 : 0xc.0387dffedf017e3p-20 : inexact-ok
+= sin downward m68k96 0xc.0387ep-20 : 0xc.0387dffedf017e2p-20 : inexact-ok
+= sin tonearest m68k96 0xc.0387ep-20 : 0xc.0387dffedf017e3p-20 : inexact-ok
+= sin towardzero m68k96 0xc.0387ep-20 : 0xc.0387dffedf017e2p-20 : inexact-ok
+= sin upward m68k96 0xc.0387ep-20 : 0xc.0387dffedf017e3p-20 : inexact-ok
+= sin downward binary128 0xc.0387ep-20 : 0xc.0387dffedf017e2c7e0f5d78398p-20 : inexact-ok
+= sin tonearest binary128 0xc.0387ep-20 : 0xc.0387dffedf017e2c7e0f5d783988p-20 : inexact-ok
+= sin towardzero binary128 0xc.0387ep-20 : 0xc.0387dffedf017e2c7e0f5d78398p-20 : inexact-ok
+= sin upward binary128 0xc.0387ep-20 : 0xc.0387dffedf017e2c7e0f5d783988p-20 : inexact-ok
+= sin downward ibm128 0xc.0387ep-20 : 0xc.0387dffedf017e2c7e0f5d7838p-20 : inexact-ok
+= sin tonearest ibm128 0xc.0387ep-20 : 0xc.0387dffedf017e2c7e0f5d7838p-20 : inexact-ok
+= sin towardzero ibm128 0xc.0387ep-20 : 0xc.0387dffedf017e2c7e0f5d7838p-20 : inexact-ok
+= sin upward ibm128 0xc.0387ep-20 : 0xc.0387dffedf017e2c7e0f5d783cp-20 : inexact-ok
+= sin downward binary32 0xc.0387dp-20 : 0xc.0387cp-20 : inexact-ok
+= sin tonearest binary32 0xc.0387dp-20 : 0xc.0387dp-20 : inexact-ok
+= sin towardzero binary32 0xc.0387dp-20 : 0xc.0387cp-20 : inexact-ok
+= sin upward binary32 0xc.0387dp-20 : 0xc.0387dp-20 : inexact-ok
+= sin downward binary64 0xc.0387dp-20 : 0xc.0387cffedf018p-20 : inexact-ok
+= sin tonearest binary64 0xc.0387dp-20 : 0xc.0387cffedf018p-20 : inexact-ok
+= sin towardzero binary64 0xc.0387dp-20 : 0xc.0387cffedf018p-20 : inexact-ok
+= sin upward binary64 0xc.0387dp-20 : 0xc.0387cffedf02p-20 : inexact-ok
+= sin downward intel96 0xc.0387dp-20 : 0xc.0387cffedf0182ap-20 : inexact-ok
+= sin tonearest intel96 0xc.0387dp-20 : 0xc.0387cffedf0182bp-20 : inexact-ok
+= sin towardzero intel96 0xc.0387dp-20 : 0xc.0387cffedf0182ap-20 : inexact-ok
+= sin upward intel96 0xc.0387dp-20 : 0xc.0387cffedf0182bp-20 : inexact-ok
+= sin downward m68k96 0xc.0387dp-20 : 0xc.0387cffedf0182ap-20 : inexact-ok
+= sin tonearest m68k96 0xc.0387dp-20 : 0xc.0387cffedf0182bp-20 : inexact-ok
+= sin towardzero m68k96 0xc.0387dp-20 : 0xc.0387cffedf0182ap-20 : inexact-ok
+= sin upward m68k96 0xc.0387dp-20 : 0xc.0387cffedf0182bp-20 : inexact-ok
+= sin downward binary128 0xc.0387dp-20 : 0xc.0387cffedf0182af2455166e2c88p-20 : inexact-ok
+= sin tonearest binary128 0xc.0387dp-20 : 0xc.0387cffedf0182af2455166e2c88p-20 : inexact-ok
+= sin towardzero binary128 0xc.0387dp-20 : 0xc.0387cffedf0182af2455166e2c88p-20 : inexact-ok
+= sin upward binary128 0xc.0387dp-20 : 0xc.0387cffedf0182af2455166e2c9p-20 : inexact-ok
+= sin downward ibm128 0xc.0387dp-20 : 0xc.0387cffedf0182af2455166e2cp-20 : inexact-ok
+= sin tonearest ibm128 0xc.0387dp-20 : 0xc.0387cffedf0182af2455166e2cp-20 : inexact-ok
+= sin towardzero ibm128 0xc.0387dp-20 : 0xc.0387cffedf0182af2455166e2cp-20 : inexact-ok
+= sin upward ibm128 0xc.0387dp-20 : 0xc.0387cffedf0182af2455166e3p-20 : inexact-ok
+= sin downward binary64 0xc.0387d98590afp-20 : 0xc.0387d9846fbp-20 : inexact-ok
+= sin tonearest binary64 0xc.0387d98590afp-20 : 0xc.0387d9846fb08p-20 : inexact-ok
+= sin towardzero binary64 0xc.0387d98590afp-20 : 0xc.0387d9846fbp-20 : inexact-ok
+= sin upward binary64 0xc.0387d98590afp-20 : 0xc.0387d9846fb08p-20 : inexact-ok
+= sin downward intel96 0xc.0387d98590afp-20 : 0xc.0387d9846fb07ffp-20 : inexact-ok
+= sin tonearest intel96 0xc.0387d98590afp-20 : 0xc.0387d9846fb08p-20 : inexact-ok
+= sin towardzero intel96 0xc.0387d98590afp-20 : 0xc.0387d9846fb07ffp-20 : inexact-ok
+= sin upward intel96 0xc.0387d98590afp-20 : 0xc.0387d9846fb08p-20 : inexact-ok
+= sin downward m68k96 0xc.0387d98590afp-20 : 0xc.0387d9846fb07ffp-20 : inexact-ok
+= sin tonearest m68k96 0xc.0387d98590afp-20 : 0xc.0387d9846fb08p-20 : inexact-ok
+= sin towardzero m68k96 0xc.0387d98590afp-20 : 0xc.0387d9846fb07ffp-20 : inexact-ok
+= sin upward m68k96 0xc.0387d98590afp-20 : 0xc.0387d9846fb08p-20 : inexact-ok
+= sin downward binary128 0xc.0387d98590afp-20 : 0xc.0387d9846fb07fffffffffec3a9p-20 : inexact-ok
+= sin tonearest binary128 0xc.0387d98590afp-20 : 0xc.0387d9846fb07fffffffffec3a9p-20 : inexact-ok
+= sin towardzero binary128 0xc.0387d98590afp-20 : 0xc.0387d9846fb07fffffffffec3a9p-20 : inexact-ok
+= sin upward binary128 0xc.0387d98590afp-20 : 0xc.0387d9846fb07fffffffffec3a98p-20 : inexact-ok
+= sin downward ibm128 0xc.0387d98590afp-20 : 0xc.0387d9846fb07fffffffffec38p-20 : inexact-ok
+= sin tonearest ibm128 0xc.0387d98590afp-20 : 0xc.0387d9846fb07fffffffffec3cp-20 : inexact-ok
+= sin towardzero ibm128 0xc.0387d98590afp-20 : 0xc.0387d9846fb07fffffffffec38p-20 : inexact-ok
+= sin upward ibm128 0xc.0387d98590afp-20 : 0xc.0387d9846fb07fffffffffec3cp-20 : inexact-ok
+sin 0x1.8134c0616cd19p-16
+= sin downward binary32 0x1.8134c2p-16 : 0x1.8134cp-16 : inexact-ok
+= sin tonearest binary32 0x1.8134c2p-16 : 0x1.8134c2p-16 : inexact-ok
+= sin towardzero binary32 0x1.8134c2p-16 : 0x1.8134cp-16 : inexact-ok
+= sin upward binary32 0x1.8134c2p-16 : 0x1.8134c2p-16 : inexact-ok
+= sin downward binary64 0x1.8134c2p-16 : 0x1.8134c1ff6ea38p-16 : inexact-ok
+= sin tonearest binary64 0x1.8134c2p-16 : 0x1.8134c1ff6ea39p-16 : inexact-ok
+= sin towardzero binary64 0x1.8134c2p-16 : 0x1.8134c1ff6ea38p-16 : inexact-ok
+= sin upward binary64 0x1.8134c2p-16 : 0x1.8134c1ff6ea39p-16 : inexact-ok
+= sin downward intel96 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2ap-16 : inexact-ok
+= sin tonearest intel96 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2ap-16 : inexact-ok
+= sin towardzero intel96 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2ap-16 : inexact-ok
+= sin upward intel96 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2cp-16 : inexact-ok
+= sin downward m68k96 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2ap-16 : inexact-ok
+= sin tonearest m68k96 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2ap-16 : inexact-ok
+= sin towardzero m68k96 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2ap-16 : inexact-ok
+= sin upward m68k96 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2cp-16 : inexact-ok
+= sin downward binary128 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2aab3b54e0a7b4p-16 : inexact-ok
+= sin tonearest binary128 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2aab3b54e0a7b4p-16 : inexact-ok
+= sin towardzero binary128 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2aab3b54e0a7b4p-16 : inexact-ok
+= sin upward binary128 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2aab3b54e0a7b5p-16 : inexact-ok
+= sin downward ibm128 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2aab3b54e0a78p-16 : inexact-ok
+= sin tonearest ibm128 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2aab3b54e0a78p-16 : inexact-ok
+= sin towardzero ibm128 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2aab3b54e0a78p-16 : inexact-ok
+= sin upward ibm128 0x1.8134c2p-16 : 0x1.8134c1ff6ea38e2aab3b54e0a8p-16 : inexact-ok
+= sin downward binary32 0x1.8134cp-16 : 0x1.8134bep-16 : inexact-ok
+= sin tonearest binary32 0x1.8134cp-16 : 0x1.8134cp-16 : inexact-ok
+= sin towardzero binary32 0x1.8134cp-16 : 0x1.8134bep-16 : inexact-ok
+= sin upward binary32 0x1.8134cp-16 : 0x1.8134cp-16 : inexact-ok
+= sin downward binary64 0x1.8134cp-16 : 0x1.8134bfff6ea39p-16 : inexact-ok
+= sin tonearest binary64 0x1.8134cp-16 : 0x1.8134bfff6ea39p-16 : inexact-ok
+= sin towardzero binary64 0x1.8134cp-16 : 0x1.8134bfff6ea39p-16 : inexact-ok
+= sin upward binary64 0x1.8134cp-16 : 0x1.8134bfff6ea3ap-16 : inexact-ok
+= sin downward intel96 0x1.8134cp-16 : 0x1.8134bfff6ea3906ep-16 : inexact-ok
+= sin tonearest intel96 0x1.8134cp-16 : 0x1.8134bfff6ea3906ep-16 : inexact-ok
+= sin towardzero intel96 0x1.8134cp-16 : 0x1.8134bfff6ea3906ep-16 : inexact-ok
+= sin upward intel96 0x1.8134cp-16 : 0x1.8134bfff6ea3907p-16 : inexact-ok
+= sin downward m68k96 0x1.8134cp-16 : 0x1.8134bfff6ea3906ep-16 : inexact-ok
+= sin tonearest m68k96 0x1.8134cp-16 : 0x1.8134bfff6ea3906ep-16 : inexact-ok
+= sin towardzero m68k96 0x1.8134cp-16 : 0x1.8134bfff6ea3906ep-16 : inexact-ok
+= sin upward m68k96 0x1.8134cp-16 : 0x1.8134bfff6ea3907p-16 : inexact-ok
+= sin downward binary128 0x1.8134cp-16 : 0x1.8134bfff6ea3906e4af2b56ccc0cp-16 : inexact-ok
+= sin tonearest binary128 0x1.8134cp-16 : 0x1.8134bfff6ea3906e4af2b56ccc0dp-16 : inexact-ok
+= sin towardzero binary128 0x1.8134cp-16 : 0x1.8134bfff6ea3906e4af2b56ccc0cp-16 : inexact-ok
+= sin upward binary128 0x1.8134cp-16 : 0x1.8134bfff6ea3906e4af2b56ccc0dp-16 : inexact-ok
+= sin downward ibm128 0x1.8134cp-16 : 0x1.8134bfff6ea3906e4af2b56cccp-16 : inexact-ok
+= sin tonearest ibm128 0x1.8134cp-16 : 0x1.8134bfff6ea3906e4af2b56cccp-16 : inexact-ok
+= sin towardzero ibm128 0x1.8134cp-16 : 0x1.8134bfff6ea3906e4af2b56cccp-16 : inexact-ok
+= sin upward ibm128 0x1.8134cp-16 : 0x1.8134bfff6ea3906e4af2b56ccc8p-16 : inexact-ok
+= sin downward binary64 0x1.8134c0616cd19p-16 : 0x1.8134c060db751p-16 : inexact-ok
+= sin tonearest binary64 0x1.8134c0616cd19p-16 : 0x1.8134c060db752p-16 : inexact-ok
+= sin towardzero binary64 0x1.8134c0616cd19p-16 : 0x1.8134c060db751p-16 : inexact-ok
+= sin upward binary64 0x1.8134c0616cd19p-16 : 0x1.8134c060db752p-16 : inexact-ok
+= sin downward intel96 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffep-16 : inexact-ok
+= sin tonearest intel96 0x1.8134c0616cd19p-16 : 0x1.8134c060db752p-16 : inexact-ok
+= sin towardzero intel96 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffep-16 : inexact-ok
+= sin upward intel96 0x1.8134c0616cd19p-16 : 0x1.8134c060db752p-16 : inexact-ok
+= sin downward m68k96 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffep-16 : inexact-ok
+= sin tonearest m68k96 0x1.8134c0616cd19p-16 : 0x1.8134c060db752p-16 : inexact-ok
+= sin towardzero m68k96 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffep-16 : inexact-ok
+= sin upward m68k96 0x1.8134c0616cd19p-16 : 0x1.8134c060db752p-16 : inexact-ok
+= sin downward binary128 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffffffffff03e2cp-16 : inexact-ok
+= sin tonearest binary128 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffffffffff03e2dp-16 : inexact-ok
+= sin towardzero binary128 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffffffffff03e2cp-16 : inexact-ok
+= sin upward binary128 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffffffffff03e2dp-16 : inexact-ok
+= sin downward ibm128 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffffffffff03ep-16 : inexact-ok
+= sin tonearest ibm128 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffffffffff03ep-16 : inexact-ok
+= sin towardzero ibm128 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffffffffff03ep-16 : inexact-ok
+= sin upward ibm128 0x1.8134c0616cd19p-16 : 0x1.8134c060db751ffffffffff03e8p-16 : inexact-ok
+sin 0x1.7c9e67c15ca0ap-8
+= sin downward binary32 0x1.7c9e68p-8 : 0x1.7c9ddap-8 : inexact-ok
+= sin tonearest binary32 0x1.7c9e68p-8 : 0x1.7c9ddcp-8 : inexact-ok
+= sin towardzero binary32 0x1.7c9e68p-8 : 0x1.7c9ddap-8 : inexact-ok
+= sin upward binary32 0x1.7c9e68p-8 : 0x1.7c9ddcp-8 : inexact-ok
+= sin downward binary64 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbp-8 : inexact-ok
+= sin tonearest binary64 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddcp-8 : inexact-ok
+= sin towardzero binary64 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbp-8 : inexact-ok
+= sin upward binary64 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddcp-8 : inexact-ok
+= sin downward intel96 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8cp-8 : inexact-ok
+= sin tonearest intel96 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8cp-8 : inexact-ok
+= sin towardzero intel96 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8cp-8 : inexact-ok
+= sin upward intel96 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8ep-8 : inexact-ok
+= sin downward m68k96 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8cp-8 : inexact-ok
+= sin tonearest m68k96 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8cp-8 : inexact-ok
+= sin towardzero m68k96 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8cp-8 : inexact-ok
+= sin upward m68k96 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8ep-8 : inexact-ok
+= sin downward binary128 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8c41fc8ebb213ep-8 : inexact-ok
+= sin tonearest binary128 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8c41fc8ebb213fp-8 : inexact-ok
+= sin towardzero binary128 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8c41fc8ebb213ep-8 : inexact-ok
+= sin upward binary128 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8c41fc8ebb213fp-8 : inexact-ok
+= sin downward ibm128 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8c41fc8ebb21p-8 : inexact-ok
+= sin tonearest ibm128 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8c41fc8ebb21p-8 : inexact-ok
+= sin towardzero ibm128 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8c41fc8ebb21p-8 : inexact-ok
+= sin upward ibm128 0x1.7c9e68p-8 : 0x1.7c9ddbc54dddbc8c41fc8ebb218p-8 : inexact-ok
+= sin downward binary32 0x1.7c9e66p-8 : 0x1.7c9dd8p-8 : inexact-ok
+= sin tonearest binary32 0x1.7c9e66p-8 : 0x1.7c9ddap-8 : inexact-ok
+= sin towardzero binary32 0x1.7c9e66p-8 : 0x1.7c9dd8p-8 : inexact-ok
+= sin upward binary32 0x1.7c9e66p-8 : 0x1.7c9ddap-8 : inexact-ok
+= sin downward binary64 0x1.7c9e66p-8 : 0x1.7c9dd9c55013ap-8 : inexact-ok
+= sin tonearest binary64 0x1.7c9e66p-8 : 0x1.7c9dd9c55013ap-8 : inexact-ok
+= sin towardzero binary64 0x1.7c9e66p-8 : 0x1.7c9dd9c55013ap-8 : inexact-ok
+= sin upward binary64 0x1.7c9e66p-8 : 0x1.7c9dd9c55013bp-8 : inexact-ok
+= sin downward intel96 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c6p-8 : inexact-ok
+= sin tonearest intel96 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c8p-8 : inexact-ok
+= sin towardzero intel96 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c6p-8 : inexact-ok
+= sin upward intel96 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c8p-8 : inexact-ok
+= sin downward m68k96 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c6p-8 : inexact-ok
+= sin tonearest m68k96 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c8p-8 : inexact-ok
+= sin towardzero m68k96 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c6p-8 : inexact-ok
+= sin upward m68k96 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c8p-8 : inexact-ok
+= sin downward binary128 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c7ce5472fc11d6p-8 : inexact-ok
+= sin tonearest binary128 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c7ce5472fc11d7p-8 : inexact-ok
+= sin towardzero binary128 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c7ce5472fc11d6p-8 : inexact-ok
+= sin upward binary128 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c7ce5472fc11d7p-8 : inexact-ok
+= sin downward ibm128 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c7ce5472fc118p-8 : inexact-ok
+= sin tonearest ibm128 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c7ce5472fc12p-8 : inexact-ok
+= sin towardzero ibm128 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c7ce5472fc118p-8 : inexact-ok
+= sin upward ibm128 0x1.7c9e66p-8 : 0x1.7c9dd9c55013a2c7ce5472fc12p-8 : inexact-ok
+= sin downward binary64 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac39p-8 : inexact-ok
+= sin tonearest binary64 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac39p-8 : inexact-ok
+= sin towardzero binary64 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac39p-8 : inexact-ok
+= sin upward binary64 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac3ap-8 : inexact-ok
+= sin downward intel96 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fep-8 : inexact-ok
+= sin tonearest intel96 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac398p-8 : inexact-ok
+= sin towardzero intel96 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fep-8 : inexact-ok
+= sin upward intel96 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac398p-8 : inexact-ok
+= sin downward m68k96 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fep-8 : inexact-ok
+= sin tonearest m68k96 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac398p-8 : inexact-ok
+= sin towardzero m68k96 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fep-8 : inexact-ok
+= sin upward m68k96 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac398p-8 : inexact-ok
+= sin downward binary128 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fffffffffaad4cp-8 : inexact-ok
+= sin tonearest binary128 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fffffffffaad4dp-8 : inexact-ok
+= sin towardzero binary128 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fffffffffaad4cp-8 : inexact-ok
+= sin upward binary128 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fffffffffaad4dp-8 : inexact-ok
+= sin downward ibm128 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fffffffffaadp-8 : inexact-ok
+= sin tonearest ibm128 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fffffffffaad8p-8 : inexact-ok
+= sin towardzero ibm128 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fffffffffaadp-8 : inexact-ok
+= sin upward ibm128 0x1.7c9e67c15ca0ap-8 : 0x1.7c9ddb86aac397fffffffffaad8p-8 : inexact-ok
+sin 0x1.7f02a650bdce1p-1
+= sin downward binary32 0xb.f8154p-4 : 0xa.e231cp-4 : inexact-ok
+= sin tonearest binary32 0xb.f8154p-4 : 0xa.e231cp-4 : inexact-ok
+= sin towardzero binary32 0xb.f8154p-4 : 0xa.e231cp-4 : inexact-ok
+= sin upward binary32 0xb.f8154p-4 : 0xa.e231dp-4 : inexact-ok
+= sin downward binary64 0xb.f8154p-4 : 0xa.e231c2829b5c8p-4 : inexact-ok
+= sin tonearest binary64 0xb.f8154p-4 : 0xa.e231c2829b5dp-4 : inexact-ok
+= sin towardzero binary64 0xb.f8154p-4 : 0xa.e231c2829b5c8p-4 : inexact-ok
+= sin upward binary64 0xb.f8154p-4 : 0xa.e231c2829b5dp-4 : inexact-ok
+= sin downward intel96 0xb.f8154p-4 : 0xa.e231c2829b5ce9p-4 : inexact-ok
+= sin tonearest intel96 0xb.f8154p-4 : 0xa.e231c2829b5ce91p-4 : inexact-ok
+= sin towardzero intel96 0xb.f8154p-4 : 0xa.e231c2829b5ce9p-4 : inexact-ok
+= sin upward intel96 0xb.f8154p-4 : 0xa.e231c2829b5ce91p-4 : inexact-ok
+= sin downward m68k96 0xb.f8154p-4 : 0xa.e231c2829b5ce9p-4 : inexact-ok
+= sin tonearest m68k96 0xb.f8154p-4 : 0xa.e231c2829b5ce91p-4 : inexact-ok
+= sin towardzero m68k96 0xb.f8154p-4 : 0xa.e231c2829b5ce9p-4 : inexact-ok
+= sin upward m68k96 0xb.f8154p-4 : 0xa.e231c2829b5ce91p-4 : inexact-ok
+= sin downward binary128 0xb.f8154p-4 : 0xa.e231c2829b5ce90c36fd17ba51p-4 : inexact-ok
+= sin tonearest binary128 0xb.f8154p-4 : 0xa.e231c2829b5ce90c36fd17ba5108p-4 : inexact-ok
+= sin towardzero binary128 0xb.f8154p-4 : 0xa.e231c2829b5ce90c36fd17ba51p-4 : inexact-ok
+= sin upward binary128 0xb.f8154p-4 : 0xa.e231c2829b5ce90c36fd17ba5108p-4 : inexact-ok
+= sin downward ibm128 0xb.f8154p-4 : 0xa.e231c2829b5ce90c36fd17ba5p-4 : inexact-ok
+= sin tonearest ibm128 0xb.f8154p-4 : 0xa.e231c2829b5ce90c36fd17ba5p-4 : inexact-ok
+= sin towardzero ibm128 0xb.f8154p-4 : 0xa.e231c2829b5ce90c36fd17ba5p-4 : inexact-ok
+= sin upward ibm128 0xb.f8154p-4 : 0xa.e231c2829b5ce90c36fd17ba54p-4 : inexact-ok
+= sin downward binary32 0xb.f8153p-4 : 0xa.e231bp-4 : inexact-ok
+= sin tonearest binary32 0xb.f8153p-4 : 0xa.e231bp-4 : inexact-ok
+= sin towardzero binary32 0xb.f8153p-4 : 0xa.e231bp-4 : inexact-ok
+= sin upward binary32 0xb.f8153p-4 : 0xa.e231cp-4 : inexact-ok
+= sin downward binary64 0xb.f8153p-4 : 0xa.e231b6c837e08p-4 : inexact-ok
+= sin tonearest binary64 0xb.f8153p-4 : 0xa.e231b6c837e08p-4 : inexact-ok
+= sin towardzero binary64 0xb.f8153p-4 : 0xa.e231b6c837e08p-4 : inexact-ok
+= sin upward binary64 0xb.f8153p-4 : 0xa.e231b6c837e1p-4 : inexact-ok
+= sin downward intel96 0xb.f8153p-4 : 0xa.e231b6c837e0818p-4 : inexact-ok
+= sin tonearest intel96 0xb.f8153p-4 : 0xa.e231b6c837e0818p-4 : inexact-ok
+= sin towardzero intel96 0xb.f8153p-4 : 0xa.e231b6c837e0818p-4 : inexact-ok
+= sin upward intel96 0xb.f8153p-4 : 0xa.e231b6c837e0819p-4 : inexact-ok
+= sin downward m68k96 0xb.f8153p-4 : 0xa.e231b6c837e0818p-4 : inexact-ok
+= sin tonearest m68k96 0xb.f8153p-4 : 0xa.e231b6c837e0818p-4 : inexact-ok
+= sin towardzero m68k96 0xb.f8153p-4 : 0xa.e231b6c837e0818p-4 : inexact-ok
+= sin upward m68k96 0xb.f8153p-4 : 0xa.e231b6c837e0819p-4 : inexact-ok
+= sin downward binary128 0xb.f8153p-4 : 0xa.e231b6c837e08180717b33b9123p-4 : inexact-ok
+= sin tonearest binary128 0xb.f8153p-4 : 0xa.e231b6c837e08180717b33b9123p-4 : inexact-ok
+= sin towardzero binary128 0xb.f8153p-4 : 0xa.e231b6c837e08180717b33b9123p-4 : inexact-ok
+= sin upward binary128 0xb.f8153p-4 : 0xa.e231b6c837e08180717b33b91238p-4 : inexact-ok
+= sin downward ibm128 0xb.f8153p-4 : 0xa.e231b6c837e08180717b33b91p-4 : inexact-ok
+= sin tonearest ibm128 0xb.f8153p-4 : 0xa.e231b6c837e08180717b33b914p-4 : inexact-ok
+= sin towardzero ibm128 0xb.f8153p-4 : 0xa.e231b6c837e08180717b33b91p-4 : inexact-ok
+= sin upward ibm128 0xb.f8153p-4 : 0xa.e231b6c837e08180717b33b914p-4 : inexact-ok
+= sin downward binary64 0xb.f8153285ee708p-4 : 0xa.e231b8a1b0728p-4 : inexact-ok
+= sin tonearest binary64 0xb.f8153285ee708p-4 : 0xa.e231b8a1b0728p-4 : inexact-ok
+= sin towardzero binary64 0xb.f8153285ee708p-4 : 0xa.e231b8a1b0728p-4 : inexact-ok
+= sin upward binary64 0xb.f8153285ee708p-4 : 0xa.e231b8a1b073p-4 : inexact-ok
+= sin downward intel96 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bffp-4 : inexact-ok
+= sin tonearest intel96 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072cp-4 : inexact-ok
+= sin towardzero intel96 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bffp-4 : inexact-ok
+= sin upward intel96 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072cp-4 : inexact-ok
+= sin downward m68k96 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bffp-4 : inexact-ok
+= sin tonearest m68k96 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072cp-4 : inexact-ok
+= sin towardzero m68k96 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bffp-4 : inexact-ok
+= sin upward m68k96 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072cp-4 : inexact-ok
+= sin downward binary128 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bfffffffffc0e18p-4 : inexact-ok
+= sin tonearest binary128 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bfffffffffc0e188p-4 : inexact-ok
+= sin towardzero binary128 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bfffffffffc0e18p-4 : inexact-ok
+= sin upward binary128 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bfffffffffc0e188p-4 : inexact-ok
+= sin downward ibm128 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bfffffffffc0ep-4 : inexact-ok
+= sin tonearest ibm128 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bfffffffffc0ep-4 : inexact-ok
+= sin towardzero ibm128 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bfffffffffc0ep-4 : inexact-ok
+= sin upward ibm128 0xb.f8153285ee708p-4 : 0xa.e231b8a1b072bfffffffffc0e4p-4 : inexact-ok
+sin 0x1.7f9f2a25bcd71p+7
+= sin downward binary32 0xb.fcf96p+4 : -0x2.c406d8p-4 : inexact-ok
+= sin tonearest binary32 0xb.fcf96p+4 : -0x2.c406d8p-4 : inexact-ok
+= sin towardzero binary32 0xb.fcf96p+4 : -0x2.c406d4p-4 : inexact-ok
+= sin upward binary32 0xb.fcf96p+4 : -0x2.c406d4p-4 : inexact-ok
+= sin downward binary64 0xb.fcf96p+4 : -0x2.c406d68362adep-4 : inexact-ok
+= sin tonearest binary64 0xb.fcf96p+4 : -0x2.c406d68362adep-4 : inexact-ok
+= sin towardzero binary64 0xb.fcf96p+4 : -0x2.c406d68362adcp-4 : inexact-ok
+= sin upward binary64 0xb.fcf96p+4 : -0x2.c406d68362adcp-4 : inexact-ok
+= sin downward intel96 0xb.fcf96p+4 : -0x2.c406d68362add7ecp-4 : inexact-ok
+= sin tonearest intel96 0xb.fcf96p+4 : -0x2.c406d68362add7e8p-4 : inexact-ok
+= sin towardzero intel96 0xb.fcf96p+4 : -0x2.c406d68362add7e8p-4 : inexact-ok
+= sin upward intel96 0xb.fcf96p+4 : -0x2.c406d68362add7e8p-4 : inexact-ok
+= sin downward m68k96 0xb.fcf96p+4 : -0x2.c406d68362add7ecp-4 : inexact-ok
+= sin tonearest m68k96 0xb.fcf96p+4 : -0x2.c406d68362add7e8p-4 : inexact-ok
+= sin towardzero m68k96 0xb.fcf96p+4 : -0x2.c406d68362add7e8p-4 : inexact-ok
+= sin upward m68k96 0xb.fcf96p+4 : -0x2.c406d68362add7e8p-4 : inexact-ok
+= sin downward binary128 0xb.fcf96p+4 : -0x2.c406d68362add7e9e3e22c38d51cp-4 : inexact-ok
+= sin tonearest binary128 0xb.fcf96p+4 : -0x2.c406d68362add7e9e3e22c38d51ap-4 : inexact-ok
+= sin towardzero binary128 0xb.fcf96p+4 : -0x2.c406d68362add7e9e3e22c38d51ap-4 : inexact-ok
+= sin upward binary128 0xb.fcf96p+4 : -0x2.c406d68362add7e9e3e22c38d51ap-4 : inexact-ok
+= sin downward ibm128 0xb.fcf96p+4 : -0x2.c406d68362add7e9e3e22c38d6p-4 : inexact-ok
+= sin tonearest ibm128 0xb.fcf96p+4 : -0x2.c406d68362add7e9e3e22c38d5p-4 : inexact-ok
+= sin towardzero ibm128 0xb.fcf96p+4 : -0x2.c406d68362add7e9e3e22c38d5p-4 : inexact-ok
+= sin upward ibm128 0xb.fcf96p+4 : -0x2.c406d68362add7e9e3e22c38d5p-4 : inexact-ok
+= sin downward binary32 0xb.fcf95p+4 : -0x2.c3f718p-4 : inexact-ok
+= sin tonearest binary32 0xb.fcf95p+4 : -0x2.c3f714p-4 : inexact-ok
+= sin towardzero binary32 0xb.fcf95p+4 : -0x2.c3f714p-4 : inexact-ok
+= sin upward binary32 0xb.fcf95p+4 : -0x2.c3f714p-4 : inexact-ok
+= sin downward binary64 0xb.fcf95p+4 : -0x2.c3f7142a7d142p-4 : inexact-ok
+= sin tonearest binary64 0xb.fcf95p+4 : -0x2.c3f7142a7d142p-4 : inexact-ok
+= sin towardzero binary64 0xb.fcf95p+4 : -0x2.c3f7142a7d14p-4 : inexact-ok
+= sin upward binary64 0xb.fcf95p+4 : -0x2.c3f7142a7d14p-4 : inexact-ok
+= sin downward intel96 0xb.fcf95p+4 : -0x2.c3f7142a7d141dfcp-4 : inexact-ok
+= sin tonearest intel96 0xb.fcf95p+4 : -0x2.c3f7142a7d141df8p-4 : inexact-ok
+= sin towardzero intel96 0xb.fcf95p+4 : -0x2.c3f7142a7d141df8p-4 : inexact-ok
+= sin upward intel96 0xb.fcf95p+4 : -0x2.c3f7142a7d141df8p-4 : inexact-ok
+= sin downward m68k96 0xb.fcf95p+4 : -0x2.c3f7142a7d141dfcp-4 : inexact-ok
+= sin tonearest m68k96 0xb.fcf95p+4 : -0x2.c3f7142a7d141df8p-4 : inexact-ok
+= sin towardzero m68k96 0xb.fcf95p+4 : -0x2.c3f7142a7d141df8p-4 : inexact-ok
+= sin upward m68k96 0xb.fcf95p+4 : -0x2.c3f7142a7d141df8p-4 : inexact-ok
+= sin downward binary128 0xb.fcf95p+4 : -0x2.c3f7142a7d141df86259c03df25cp-4 : inexact-ok
+= sin tonearest binary128 0xb.fcf95p+4 : -0x2.c3f7142a7d141df86259c03df25ap-4 : inexact-ok
+= sin towardzero binary128 0xb.fcf95p+4 : -0x2.c3f7142a7d141df86259c03df25ap-4 : inexact-ok
+= sin upward binary128 0xb.fcf95p+4 : -0x2.c3f7142a7d141df86259c03df25ap-4 : inexact-ok
+= sin downward ibm128 0xb.fcf95p+4 : -0x2.c3f7142a7d141df86259c03df3p-4 : inexact-ok
+= sin tonearest ibm128 0xb.fcf95p+4 : -0x2.c3f7142a7d141df86259c03df2p-4 : inexact-ok
+= sin towardzero ibm128 0xb.fcf95p+4 : -0x2.c3f7142a7d141df86259c03df2p-4 : inexact-ok
+= sin upward ibm128 0xb.fcf95p+4 : -0x2.c3f7142a7d141df86259c03df2p-4 : inexact-ok
+= sin downward binary64 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd15ap-4 : inexact-ok
+= sin tonearest binary64 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd15ap-4 : inexact-ok
+= sin towardzero binary64 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd158p-4 : inexact-ok
+= sin upward binary64 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd158p-4 : inexact-ok
+= sin downward intel96 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159004p-4 : inexact-ok
+= sin tonearest intel96 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159p-4 : inexact-ok
+= sin towardzero intel96 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159p-4 : inexact-ok
+= sin upward intel96 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159p-4 : inexact-ok
+= sin downward m68k96 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159004p-4 : inexact-ok
+= sin tonearest m68k96 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159p-4 : inexact-ok
+= sin towardzero m68k96 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159p-4 : inexact-ok
+= sin upward m68k96 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159p-4 : inexact-ok
+= sin downward binary128 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159000000000156e42p-4 : inexact-ok
+= sin tonearest binary128 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159000000000156e42p-4 : inexact-ok
+= sin towardzero binary128 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159000000000156e4p-4 : inexact-ok
+= sin upward binary128 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159000000000156e4p-4 : inexact-ok
+= sin downward ibm128 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159000000000156fp-4 : inexact-ok
+= sin tonearest ibm128 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159000000000156ep-4 : inexact-ok
+= sin towardzero ibm128 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159000000000156ep-4 : inexact-ok
+= sin upward ibm128 0xb.fcf9512de6b88p+4 : -0x2.c3f83d85fd159000000000156ep-4 : inexact-ok
+sin 0x1.7effa0d570d3fp+15
+= sin downward binary32 0xb.f7fd1p+12 : 0xa.c0a77p-4 : inexact-ok
+= sin tonearest binary32 0xb.f7fd1p+12 : 0xa.c0a77p-4 : inexact-ok
+= sin towardzero binary32 0xb.f7fd1p+12 : 0xa.c0a77p-4 : inexact-ok
+= sin upward binary32 0xb.f7fd1p+12 : 0xa.c0a78p-4 : inexact-ok
+= sin downward binary64 0xb.f7fd1p+12 : 0xa.c0a77128ea2c8p-4 : inexact-ok
+= sin tonearest binary64 0xb.f7fd1p+12 : 0xa.c0a77128ea2dp-4 : inexact-ok
+= sin towardzero binary64 0xb.f7fd1p+12 : 0xa.c0a77128ea2c8p-4 : inexact-ok
+= sin upward binary64 0xb.f7fd1p+12 : 0xa.c0a77128ea2dp-4 : inexact-ok
+= sin downward intel96 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82p-4 : inexact-ok
+= sin tonearest intel96 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce83p-4 : inexact-ok
+= sin towardzero intel96 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82p-4 : inexact-ok
+= sin upward intel96 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce83p-4 : inexact-ok
+= sin downward m68k96 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82p-4 : inexact-ok
+= sin tonearest m68k96 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce83p-4 : inexact-ok
+= sin towardzero m68k96 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82p-4 : inexact-ok
+= sin upward m68k96 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce83p-4 : inexact-ok
+= sin downward binary128 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82f47123e3010a8p-4 : inexact-ok
+= sin tonearest binary128 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82f47123e3010a8p-4 : inexact-ok
+= sin towardzero binary128 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82f47123e3010a8p-4 : inexact-ok
+= sin upward binary128 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82f47123e3010bp-4 : inexact-ok
+= sin downward ibm128 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82f47123e301p-4 : inexact-ok
+= sin tonearest ibm128 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82f47123e301p-4 : inexact-ok
+= sin towardzero ibm128 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82f47123e301p-4 : inexact-ok
+= sin upward ibm128 0xb.f7fd1p+12 : 0xa.c0a77128ea2ce82f47123e3014p-4 : inexact-ok
+= sin downward binary32 0xb.f7fdp+12 : 0xa.cc7b3p-4 : inexact-ok
+= sin tonearest binary32 0xb.f7fdp+12 : 0xa.cc7b4p-4 : inexact-ok
+= sin towardzero binary32 0xb.f7fdp+12 : 0xa.cc7b3p-4 : inexact-ok
+= sin upward binary32 0xb.f7fdp+12 : 0xa.cc7b4p-4 : inexact-ok
+= sin downward binary64 0xb.f7fdp+12 : 0xa.cc7b3a0375488p-4 : inexact-ok
+= sin tonearest binary64 0xb.f7fdp+12 : 0xa.cc7b3a0375488p-4 : inexact-ok
+= sin towardzero binary64 0xb.f7fdp+12 : 0xa.cc7b3a0375488p-4 : inexact-ok
+= sin upward binary64 0xb.f7fdp+12 : 0xa.cc7b3a037549p-4 : inexact-ok
+= sin downward intel96 0xb.f7fdp+12 : 0xa.cc7b3a037548817p-4 : inexact-ok
+= sin tonearest intel96 0xb.f7fdp+12 : 0xa.cc7b3a037548817p-4 : inexact-ok
+= sin towardzero intel96 0xb.f7fdp+12 : 0xa.cc7b3a037548817p-4 : inexact-ok
+= sin upward intel96 0xb.f7fdp+12 : 0xa.cc7b3a037548818p-4 : inexact-ok
+= sin downward m68k96 0xb.f7fdp+12 : 0xa.cc7b3a037548817p-4 : inexact-ok
+= sin tonearest m68k96 0xb.f7fdp+12 : 0xa.cc7b3a037548817p-4 : inexact-ok
+= sin towardzero m68k96 0xb.f7fdp+12 : 0xa.cc7b3a037548817p-4 : inexact-ok
+= sin upward m68k96 0xb.f7fdp+12 : 0xa.cc7b3a037548818p-4 : inexact-ok
+= sin downward binary128 0xb.f7fdp+12 : 0xa.cc7b3a037548817745f6a686a57p-4 : inexact-ok
+= sin tonearest binary128 0xb.f7fdp+12 : 0xa.cc7b3a037548817745f6a686a578p-4 : inexact-ok
+= sin towardzero binary128 0xb.f7fdp+12 : 0xa.cc7b3a037548817745f6a686a57p-4 : inexact-ok
+= sin upward binary128 0xb.f7fdp+12 : 0xa.cc7b3a037548817745f6a686a578p-4 : inexact-ok
+= sin downward ibm128 0xb.f7fdp+12 : 0xa.cc7b3a037548817745f6a686a4p-4 : inexact-ok
+= sin tonearest ibm128 0xb.f7fdp+12 : 0xa.cc7b3a037548817745f6a686a4p-4 : inexact-ok
+= sin towardzero ibm128 0xb.f7fdp+12 : 0xa.cc7b3a037548817745f6a686a4p-4 : inexact-ok
+= sin upward ibm128 0xb.f7fdp+12 : 0xa.cc7b3a037548817745f6a686a8p-4 : inexact-ok
+= sin downward binary64 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cba8p-4 : inexact-ok
+= sin tonearest binary64 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cba8p-4 : inexact-ok
+= sin towardzero binary64 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cba8p-4 : inexact-ok
+= sin upward binary64 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbbp-4 : inexact-ok
+= sin downward intel96 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabffp-4 : inexact-ok
+= sin tonearest intel96 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbacp-4 : inexact-ok
+= sin towardzero intel96 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabffp-4 : inexact-ok
+= sin upward intel96 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbacp-4 : inexact-ok
+= sin downward m68k96 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabffp-4 : inexact-ok
+= sin tonearest m68k96 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbacp-4 : inexact-ok
+= sin towardzero m68k96 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabffp-4 : inexact-ok
+= sin upward m68k96 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbacp-4 : inexact-ok
+= sin downward binary128 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabfffffffffba6938p-4 : inexact-ok
+= sin tonearest binary128 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabfffffffffba694p-4 : inexact-ok
+= sin towardzero binary128 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabfffffffffba6938p-4 : inexact-ok
+= sin upward binary128 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabfffffffffba694p-4 : inexact-ok
+= sin downward ibm128 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabfffffffffba68p-4 : inexact-ok
+= sin tonearest ibm128 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabfffffffffba68p-4 : inexact-ok
+= sin towardzero ibm128 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabfffffffffba68p-4 : inexact-ok
+= sin upward ibm128 0xb.f7fd06ab869f8p+12 : 0xa.c78e53100cbabfffffffffba6cp-4 : inexact-ok
+sin 0x1.802adf9f95f17p+22
+= sin downward binary32 0x6.00ab8p+20 : 0x4.407e2p-4 : inexact-ok
+= sin tonearest binary32 0x6.00ab8p+20 : 0x4.407e2p-4 : inexact-ok
+= sin towardzero binary32 0x6.00ab8p+20 : 0x4.407e2p-4 : inexact-ok
+= sin upward binary32 0x6.00ab8p+20 : 0x4.407e28p-4 : inexact-ok
+= sin downward binary64 0x6.00ab8p+20 : 0x4.407e2217cd558p-4 : inexact-ok
+= sin tonearest binary64 0x6.00ab8p+20 : 0x4.407e2217cd558p-4 : inexact-ok
+= sin towardzero binary64 0x6.00ab8p+20 : 0x4.407e2217cd558p-4 : inexact-ok
+= sin upward binary64 0x6.00ab8p+20 : 0x4.407e2217cd55cp-4 : inexact-ok
+= sin downward intel96 0x6.00ab8p+20 : 0x4.407e2217cd55953p-4 : inexact-ok
+= sin tonearest intel96 0x6.00ab8p+20 : 0x4.407e2217cd559538p-4 : inexact-ok
+= sin towardzero intel96 0x6.00ab8p+20 : 0x4.407e2217cd55953p-4 : inexact-ok
+= sin upward intel96 0x6.00ab8p+20 : 0x4.407e2217cd559538p-4 : inexact-ok
+= sin downward m68k96 0x6.00ab8p+20 : 0x4.407e2217cd55953p-4 : inexact-ok
+= sin tonearest m68k96 0x6.00ab8p+20 : 0x4.407e2217cd559538p-4 : inexact-ok
+= sin towardzero m68k96 0x6.00ab8p+20 : 0x4.407e2217cd55953p-4 : inexact-ok
+= sin upward m68k96 0x6.00ab8p+20 : 0x4.407e2217cd559538p-4 : inexact-ok
+= sin downward binary128 0x6.00ab8p+20 : 0x4.407e2217cd559536b6e756397054p-4 : inexact-ok
+= sin tonearest binary128 0x6.00ab8p+20 : 0x4.407e2217cd559536b6e756397058p-4 : inexact-ok
+= sin towardzero binary128 0x6.00ab8p+20 : 0x4.407e2217cd559536b6e756397054p-4 : inexact-ok
+= sin upward binary128 0x6.00ab8p+20 : 0x4.407e2217cd559536b6e756397058p-4 : inexact-ok
+= sin downward ibm128 0x6.00ab8p+20 : 0x4.407e2217cd559536b6e756397p-4 : inexact-ok
+= sin tonearest ibm128 0x6.00ab8p+20 : 0x4.407e2217cd559536b6e756397p-4 : inexact-ok
+= sin towardzero ibm128 0x6.00ab8p+20 : 0x4.407e2217cd559536b6e756397p-4 : inexact-ok
+= sin upward ibm128 0x6.00ab8p+20 : 0x4.407e2217cd559536b6e7563972p-4 : inexact-ok
+= sin downward binary32 0x6.00ab78p+20 : -0x3.a9e028p-4 : inexact-ok
+= sin tonearest binary32 0x6.00ab78p+20 : -0x3.a9e028p-4 : inexact-ok
+= sin towardzero binary32 0x6.00ab78p+20 : -0x3.a9e024p-4 : inexact-ok
+= sin upward binary32 0x6.00ab78p+20 : -0x3.a9e024p-4 : inexact-ok
+= sin downward binary64 0x6.00ab78p+20 : -0x3.a9e02752c0f7p-4 : inexact-ok
+= sin tonearest binary64 0x6.00ab78p+20 : -0x3.a9e02752c0f6ep-4 : inexact-ok
+= sin towardzero binary64 0x6.00ab78p+20 : -0x3.a9e02752c0f6ep-4 : inexact-ok
+= sin upward binary64 0x6.00ab78p+20 : -0x3.a9e02752c0f6ep-4 : inexact-ok
+= sin downward intel96 0x6.00ab78p+20 : -0x3.a9e02752c0f6e69cp-4 : inexact-ok
+= sin tonearest intel96 0x6.00ab78p+20 : -0x3.a9e02752c0f6e698p-4 : inexact-ok
+= sin towardzero intel96 0x6.00ab78p+20 : -0x3.a9e02752c0f6e698p-4 : inexact-ok
+= sin upward intel96 0x6.00ab78p+20 : -0x3.a9e02752c0f6e698p-4 : inexact-ok
+= sin downward m68k96 0x6.00ab78p+20 : -0x3.a9e02752c0f6e69cp-4 : inexact-ok
+= sin tonearest m68k96 0x6.00ab78p+20 : -0x3.a9e02752c0f6e698p-4 : inexact-ok
+= sin towardzero m68k96 0x6.00ab78p+20 : -0x3.a9e02752c0f6e698p-4 : inexact-ok
+= sin upward m68k96 0x6.00ab78p+20 : -0x3.a9e02752c0f6e698p-4 : inexact-ok
+= sin downward binary128 0x6.00ab78p+20 : -0x3.a9e02752c0f6e6984c9ff0512f7ap-4 : inexact-ok
+= sin tonearest binary128 0x6.00ab78p+20 : -0x3.a9e02752c0f6e6984c9ff0512f7ap-4 : inexact-ok
+= sin towardzero binary128 0x6.00ab78p+20 : -0x3.a9e02752c0f6e6984c9ff0512f78p-4 : inexact-ok
+= sin upward binary128 0x6.00ab78p+20 : -0x3.a9e02752c0f6e6984c9ff0512f78p-4 : inexact-ok
+= sin downward ibm128 0x6.00ab78p+20 : -0x3.a9e02752c0f6e6984c9ff0513p-4 : inexact-ok
+= sin tonearest ibm128 0x6.00ab78p+20 : -0x3.a9e02752c0f6e6984c9ff0512fp-4 : inexact-ok
+= sin towardzero ibm128 0x6.00ab78p+20 : -0x3.a9e02752c0f6e6984c9ff0512fp-4 : inexact-ok
+= sin upward ibm128 0x6.00ab78p+20 : -0x3.a9e02752c0f6e6984c9ff0512fp-4 : inexact-ok
+= sin downward binary64 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41ap-4 : inexact-ok
+= sin tonearest binary64 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41cp-4 : inexact-ok
+= sin towardzero binary64 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41ap-4 : inexact-ok
+= sin upward binary64 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41cp-4 : inexact-ok
+= sin downward intel96 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41bp-4 : inexact-ok
+= sin tonearest intel96 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41bp-4 : inexact-ok
+= sin towardzero intel96 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41bp-4 : inexact-ok
+= sin upward intel96 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b004p-4 : inexact-ok
+= sin downward m68k96 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41bp-4 : inexact-ok
+= sin tonearest m68k96 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41bp-4 : inexact-ok
+= sin towardzero m68k96 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41bp-4 : inexact-ok
+= sin upward m68k96 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b004p-4 : inexact-ok
+= sin downward binary128 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b0000000001c05a4p-4 : inexact-ok
+= sin tonearest binary128 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b0000000001c05a6p-4 : inexact-ok
+= sin towardzero binary128 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b0000000001c05a4p-4 : inexact-ok
+= sin upward binary128 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b0000000001c05a6p-4 : inexact-ok
+= sin downward ibm128 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b0000000001c05p-4 : inexact-ok
+= sin tonearest ibm128 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b0000000001c06p-4 : inexact-ok
+= sin towardzero ibm128 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b0000000001c05p-4 : inexact-ok
+= sin upward ibm128 0x6.00ab7e7e57c5cp+20 : 0x2.c86e2e1b3c41b0000000001c06p-4 : inexact-ok
+sin 0x1.7ef0a65233598p+30
+= sin downward binary32 0x5.fbc2ap+28 : -0xd.1a6c7p-4 : inexact-ok
+= sin tonearest binary32 0x5.fbc2ap+28 : -0xd.1a6c7p-4 : inexact-ok
+= sin towardzero binary32 0x5.fbc2ap+28 : -0xd.1a6c6p-4 : inexact-ok
+= sin upward binary32 0x5.fbc2ap+28 : -0xd.1a6c6p-4 : inexact-ok
+= sin downward binary64 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f8p-4 : inexact-ok
+= sin tonearest binary64 0x5.fbc2ap+28 : -0xd.1a6c6ae6017fp-4 : inexact-ok
+= sin towardzero binary64 0x5.fbc2ap+28 : -0xd.1a6c6ae6017fp-4 : inexact-ok
+= sin upward binary64 0x5.fbc2ap+28 : -0xd.1a6c6ae6017fp-4 : inexact-ok
+= sin downward intel96 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24dp-4 : inexact-ok
+= sin tonearest intel96 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24dp-4 : inexact-ok
+= sin towardzero intel96 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24cp-4 : inexact-ok
+= sin upward intel96 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24cp-4 : inexact-ok
+= sin downward m68k96 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24dp-4 : inexact-ok
+= sin tonearest m68k96 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24dp-4 : inexact-ok
+= sin towardzero m68k96 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24cp-4 : inexact-ok
+= sin upward m68k96 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24cp-4 : inexact-ok
+= sin downward binary128 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24c98ead6734fe6p-4 : inexact-ok
+= sin tonearest binary128 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24c98ead6734fe58p-4 : inexact-ok
+= sin towardzero binary128 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24c98ead6734fe58p-4 : inexact-ok
+= sin upward binary128 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24c98ead6734fe58p-4 : inexact-ok
+= sin downward ibm128 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24c98ead6735p-4 : inexact-ok
+= sin tonearest ibm128 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24c98ead6735p-4 : inexact-ok
+= sin towardzero ibm128 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24c98ead6734fcp-4 : inexact-ok
+= sin upward ibm128 0x5.fbc2ap+28 : -0xd.1a6c6ae6017f24c98ead6734fcp-4 : inexact-ok
+= sin downward binary32 0x5.fbc298p+28 : 0x2.756f54p-4 : inexact-ok
+= sin tonearest binary32 0x5.fbc298p+28 : 0x2.756f54p-4 : inexact-ok
+= sin towardzero binary32 0x5.fbc298p+28 : 0x2.756f54p-4 : inexact-ok
+= sin upward binary32 0x5.fbc298p+28 : 0x2.756f58p-4 : inexact-ok
+= sin downward binary64 0x5.fbc298p+28 : 0x2.756f54a151aaap-4 : inexact-ok
+= sin tonearest binary64 0x5.fbc298p+28 : 0x2.756f54a151aaap-4 : inexact-ok
+= sin towardzero binary64 0x5.fbc298p+28 : 0x2.756f54a151aaap-4 : inexact-ok
+= sin upward binary64 0x5.fbc298p+28 : 0x2.756f54a151aacp-4 : inexact-ok
+= sin downward intel96 0x5.fbc298p+28 : 0x2.756f54a151aaa668p-4 : inexact-ok
+= sin tonearest intel96 0x5.fbc298p+28 : 0x2.756f54a151aaa668p-4 : inexact-ok
+= sin towardzero intel96 0x5.fbc298p+28 : 0x2.756f54a151aaa668p-4 : inexact-ok
+= sin upward intel96 0x5.fbc298p+28 : 0x2.756f54a151aaa66cp-4 : inexact-ok
+= sin downward m68k96 0x5.fbc298p+28 : 0x2.756f54a151aaa668p-4 : inexact-ok
+= sin tonearest m68k96 0x5.fbc298p+28 : 0x2.756f54a151aaa668p-4 : inexact-ok
+= sin towardzero m68k96 0x5.fbc298p+28 : 0x2.756f54a151aaa668p-4 : inexact-ok
+= sin upward m68k96 0x5.fbc298p+28 : 0x2.756f54a151aaa66cp-4 : inexact-ok
+= sin downward binary128 0x5.fbc298p+28 : 0x2.756f54a151aaa66942c49e2b866ep-4 : inexact-ok
+= sin tonearest binary128 0x5.fbc298p+28 : 0x2.756f54a151aaa66942c49e2b866ep-4 : inexact-ok
+= sin towardzero binary128 0x5.fbc298p+28 : 0x2.756f54a151aaa66942c49e2b866ep-4 : inexact-ok
+= sin upward binary128 0x5.fbc298p+28 : 0x2.756f54a151aaa66942c49e2b867p-4 : inexact-ok
+= sin downward ibm128 0x5.fbc298p+28 : 0x2.756f54a151aaa66942c49e2b86p-4 : inexact-ok
+= sin tonearest ibm128 0x5.fbc298p+28 : 0x2.756f54a151aaa66942c49e2b86p-4 : inexact-ok
+= sin towardzero ibm128 0x5.fbc298p+28 : 0x2.756f54a151aaa66942c49e2b86p-4 : inexact-ok
+= sin upward ibm128 0x5.fbc298p+28 : 0x2.756f54a151aaa66942c49e2b87p-4 : inexact-ok
+= sin downward binary64 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc8p-4 : inexact-ok
+= sin tonearest binary64 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67ccp-4 : inexact-ok
+= sin towardzero binary64 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67ccp-4 : inexact-ok
+= sin upward binary64 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67ccp-4 : inexact-ok
+= sin downward intel96 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc4p-4 : inexact-ok
+= sin tonearest intel96 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc4p-4 : inexact-ok
+= sin towardzero intel96 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3ffp-4 : inexact-ok
+= sin upward intel96 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3ffp-4 : inexact-ok
+= sin downward m68k96 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc4p-4 : inexact-ok
+= sin tonearest m68k96 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc4p-4 : inexact-ok
+= sin towardzero m68k96 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3ffp-4 : inexact-ok
+= sin upward m68k96 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3ffp-4 : inexact-ok
+= sin downward binary128 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3fffffffffb11488p-4 : inexact-ok
+= sin tonearest binary128 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3fffffffffb11488p-4 : inexact-ok
+= sin towardzero binary128 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3fffffffffb1148p-4 : inexact-ok
+= sin upward binary128 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3fffffffffb1148p-4 : inexact-ok
+= sin downward ibm128 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3fffffffffb118p-4 : inexact-ok
+= sin tonearest ibm128 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3fffffffffb114p-4 : inexact-ok
+= sin towardzero ibm128 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3fffffffffb114p-4 : inexact-ok
+= sin upward ibm128 0x5.fbc29948cd66p+28 : -0xf.fec59e0c67cc3fffffffffb114p-4 : inexact-ok
+sin 0x1.832fb2782b7e8p+31
+= sin downward binary32 0xc.197dap+28 : -0xf.7f213p-4 : inexact-ok
+= sin tonearest binary32 0xc.197dap+28 : -0xf.7f212p-4 : inexact-ok
+= sin towardzero binary32 0xc.197dap+28 : -0xf.7f212p-4 : inexact-ok
+= sin upward binary32 0xc.197dap+28 : -0xf.7f212p-4 : inexact-ok
+= sin downward binary64 0xc.197dap+28 : -0xf.7f2121df7cc5p-4 : inexact-ok
+= sin tonearest binary64 0xc.197dap+28 : -0xf.7f2121df7cc5p-4 : inexact-ok
+= sin towardzero binary64 0xc.197dap+28 : -0xf.7f2121df7cc48p-4 : inexact-ok
+= sin upward binary64 0xc.197dap+28 : -0xf.7f2121df7cc48p-4 : inexact-ok
+= sin downward intel96 0xc.197dap+28 : -0xf.7f2121df7cc4ed1p-4 : inexact-ok
+= sin tonearest intel96 0xc.197dap+28 : -0xf.7f2121df7cc4ed1p-4 : inexact-ok
+= sin towardzero intel96 0xc.197dap+28 : -0xf.7f2121df7cc4edp-4 : inexact-ok
+= sin upward intel96 0xc.197dap+28 : -0xf.7f2121df7cc4edp-4 : inexact-ok
+= sin downward m68k96 0xc.197dap+28 : -0xf.7f2121df7cc4ed1p-4 : inexact-ok
+= sin tonearest m68k96 0xc.197dap+28 : -0xf.7f2121df7cc4ed1p-4 : inexact-ok
+= sin towardzero m68k96 0xc.197dap+28 : -0xf.7f2121df7cc4edp-4 : inexact-ok
+= sin upward m68k96 0xc.197dap+28 : -0xf.7f2121df7cc4edp-4 : inexact-ok
+= sin downward binary128 0xc.197dap+28 : -0xf.7f2121df7cc4ed0a3054ba2976b8p-4 : inexact-ok
+= sin tonearest binary128 0xc.197dap+28 : -0xf.7f2121df7cc4ed0a3054ba2976bp-4 : inexact-ok
+= sin towardzero binary128 0xc.197dap+28 : -0xf.7f2121df7cc4ed0a3054ba2976bp-4 : inexact-ok
+= sin upward binary128 0xc.197dap+28 : -0xf.7f2121df7cc4ed0a3054ba2976bp-4 : inexact-ok
+= sin downward ibm128 0xc.197dap+28 : -0xf.7f2121df7cc4ed0a3054ba2978p-4 : inexact-ok
+= sin tonearest ibm128 0xc.197dap+28 : -0xf.7f2121df7cc4ed0a3054ba2978p-4 : inexact-ok
+= sin towardzero ibm128 0xc.197dap+28 : -0xf.7f2121df7cc4ed0a3054ba2974p-4 : inexact-ok
+= sin upward ibm128 0xc.197dap+28 : -0xf.7f2121df7cc4ed0a3054ba2974p-4 : inexact-ok
+= sin downward binary32 0xc.197d9p+28 : 0x4.98691p-4 : inexact-ok
+= sin tonearest binary32 0xc.197d9p+28 : 0x4.98691p-4 : inexact-ok
+= sin towardzero binary32 0xc.197d9p+28 : 0x4.98691p-4 : inexact-ok
+= sin upward binary32 0xc.197d9p+28 : 0x4.986918p-4 : inexact-ok
+= sin downward binary64 0xc.197d9p+28 : 0x4.9869108cdd828p-4 : inexact-ok
+= sin tonearest binary64 0xc.197d9p+28 : 0x4.9869108cdd82cp-4 : inexact-ok
+= sin towardzero binary64 0xc.197d9p+28 : 0x4.9869108cdd828p-4 : inexact-ok
+= sin upward binary64 0xc.197d9p+28 : 0x4.9869108cdd82cp-4 : inexact-ok
+= sin downward intel96 0xc.197d9p+28 : 0x4.9869108cdd82b038p-4 : inexact-ok
+= sin tonearest intel96 0xc.197d9p+28 : 0x4.9869108cdd82b038p-4 : inexact-ok
+= sin towardzero intel96 0xc.197d9p+28 : 0x4.9869108cdd82b038p-4 : inexact-ok
+= sin upward intel96 0xc.197d9p+28 : 0x4.9869108cdd82b04p-4 : inexact-ok
+= sin downward m68k96 0xc.197d9p+28 : 0x4.9869108cdd82b038p-4 : inexact-ok
+= sin tonearest m68k96 0xc.197d9p+28 : 0x4.9869108cdd82b038p-4 : inexact-ok
+= sin towardzero m68k96 0xc.197d9p+28 : 0x4.9869108cdd82b038p-4 : inexact-ok
+= sin upward m68k96 0xc.197d9p+28 : 0x4.9869108cdd82b04p-4 : inexact-ok
+= sin downward binary128 0xc.197d9p+28 : 0x4.9869108cdd82b03919a7b10a8244p-4 : inexact-ok
+= sin tonearest binary128 0xc.197d9p+28 : 0x4.9869108cdd82b03919a7b10a8244p-4 : inexact-ok
+= sin towardzero binary128 0xc.197d9p+28 : 0x4.9869108cdd82b03919a7b10a8244p-4 : inexact-ok
+= sin upward binary128 0xc.197d9p+28 : 0x4.9869108cdd82b03919a7b10a8248p-4 : inexact-ok
+= sin downward ibm128 0xc.197d9p+28 : 0x4.9869108cdd82b03919a7b10a82p-4 : inexact-ok
+= sin tonearest ibm128 0xc.197d9p+28 : 0x4.9869108cdd82b03919a7b10a82p-4 : inexact-ok
+= sin towardzero ibm128 0xc.197d9p+28 : 0x4.9869108cdd82b03919a7b10a82p-4 : inexact-ok
+= sin upward ibm128 0xc.197d9p+28 : 0x4.9869108cdd82b03919a7b10a84p-4 : inexact-ok
+= sin downward binary64 0xc.197d93c15bf4p+28 : -0xa.229aa231d4818p-4 : inexact-ok
+= sin tonearest binary64 0xc.197d93c15bf4p+28 : -0xa.229aa231d481p-4 : inexact-ok
+= sin towardzero binary64 0xc.197d93c15bf4p+28 : -0xa.229aa231d481p-4 : inexact-ok
+= sin upward binary64 0xc.197d93c15bf4p+28 : -0xa.229aa231d481p-4 : inexact-ok
+= sin downward intel96 0xc.197d93c15bf4p+28 : -0xa.229aa231d4814p-4 : inexact-ok
+= sin tonearest intel96 0xc.197d93c15bf4p+28 : -0xa.229aa231d4814p-4 : inexact-ok
+= sin towardzero intel96 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffp-4 : inexact-ok
+= sin upward intel96 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffp-4 : inexact-ok
+= sin downward m68k96 0xc.197d93c15bf4p+28 : -0xa.229aa231d4814p-4 : inexact-ok
+= sin tonearest m68k96 0xc.197d93c15bf4p+28 : -0xa.229aa231d4814p-4 : inexact-ok
+= sin towardzero m68k96 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffp-4 : inexact-ok
+= sin upward m68k96 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffp-4 : inexact-ok
+= sin downward binary128 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffffffffffb57f8p-4 : inexact-ok
+= sin tonearest binary128 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffffffffffb57f8p-4 : inexact-ok
+= sin towardzero binary128 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffffffffffb57fp-4 : inexact-ok
+= sin upward binary128 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffffffffffb57fp-4 : inexact-ok
+= sin downward ibm128 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffffffffffb58p-4 : inexact-ok
+= sin tonearest ibm128 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffffffffffb58p-4 : inexact-ok
+= sin towardzero ibm128 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffffffffffb54p-4 : inexact-ok
+= sin upward ibm128 0xc.197d93c15bf4p+28 : -0xa.229aa231d4813ffffffffffb54p-4 : inexact-ok
+sin 0x1.83a466d251491p+196
+= sin downward binary32 0xf.fffffp+124 : -0x8.599b4p-4 : inexact-ok
+= sin tonearest binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin towardzero binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin upward binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin downward binary64 0xf.fffffp+124 : -0x8.599b32844abbp-4 : inexact-ok
+= sin tonearest binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin towardzero binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin upward binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin downward intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be049ap-4 : inexact-ok
+= sin tonearest binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin towardzero binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin upward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin downward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04cp-4 : inexact-ok
+= sin tonearest ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin towardzero ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin upward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin downward binary64 0x1.83a466d251491p+196 : 0xc.9d53dce022e4p-4 : inexact-ok
+= sin tonearest binary64 0x1.83a466d251491p+196 : 0xc.9d53dce022e48p-4 : inexact-ok
+= sin towardzero binary64 0x1.83a466d251491p+196 : 0xc.9d53dce022e4p-4 : inexact-ok
+= sin upward binary64 0x1.83a466d251491p+196 : 0xc.9d53dce022e48p-4 : inexact-ok
+= sin downward intel96 0x1.83a466d251491p+196 : 0xc.9d53dce022e44p-4 : inexact-ok
+= sin tonearest intel96 0x1.83a466d251491p+196 : 0xc.9d53dce022e44p-4 : inexact-ok
+= sin towardzero intel96 0x1.83a466d251491p+196 : 0xc.9d53dce022e44p-4 : inexact-ok
+= sin upward intel96 0x1.83a466d251491p+196 : 0xc.9d53dce022e4401p-4 : inexact-ok
+= sin downward m68k96 0x1.83a466d251491p+196 : 0xc.9d53dce022e44p-4 : inexact-ok
+= sin tonearest m68k96 0x1.83a466d251491p+196 : 0xc.9d53dce022e44p-4 : inexact-ok
+= sin towardzero m68k96 0x1.83a466d251491p+196 : 0xc.9d53dce022e44p-4 : inexact-ok
+= sin upward m68k96 0x1.83a466d251491p+196 : 0xc.9d53dce022e4401p-4 : inexact-ok
+= sin downward binary128 0x1.83a466d251491p+196 : 0xc.9d53dce022e44000000000024018p-4 : inexact-ok
+= sin tonearest binary128 0x1.83a466d251491p+196 : 0xc.9d53dce022e44000000000024018p-4 : inexact-ok
+= sin towardzero binary128 0x1.83a466d251491p+196 : 0xc.9d53dce022e44000000000024018p-4 : inexact-ok
+= sin upward binary128 0x1.83a466d251491p+196 : 0xc.9d53dce022e4400000000002402p-4 : inexact-ok
+= sin downward ibm128 0x1.83a466d251491p+196 : 0xc.9d53dce022e44000000000024p-4 : inexact-ok
+= sin tonearest ibm128 0x1.83a466d251491p+196 : 0xc.9d53dce022e44000000000024p-4 : inexact-ok
+= sin towardzero ibm128 0x1.83a466d251491p+196 : 0xc.9d53dce022e44000000000024p-4 : inexact-ok
+= sin upward ibm128 0x1.83a466d251491p+196 : 0xc.9d53dce022e440000000000244p-4 : inexact-ok
+sin 0x1.7dc09d20d8593p+362
+= sin downward binary32 0xf.fffffp+124 : -0x8.599b4p-4 : inexact-ok
+= sin tonearest binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin towardzero binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin upward binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin downward binary64 0xf.fffffp+124 : -0x8.599b32844abbp-4 : inexact-ok
+= sin tonearest binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin towardzero binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin upward binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin downward intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be049ap-4 : inexact-ok
+= sin tonearest binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin towardzero binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin upward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin downward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04cp-4 : inexact-ok
+= sin tonearest ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin towardzero ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin upward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin downward binary64 0x5.f70274836164cp+360 : -0xf.8edf17aa575e8p-4 : inexact-ok
+= sin tonearest binary64 0x5.f70274836164cp+360 : -0xf.8edf17aa575ep-4 : inexact-ok
+= sin towardzero binary64 0x5.f70274836164cp+360 : -0xf.8edf17aa575ep-4 : inexact-ok
+= sin upward binary64 0x5.f70274836164cp+360 : -0xf.8edf17aa575ep-4 : inexact-ok
+= sin downward intel96 0x5.f70274836164cp+360 : -0xf.8edf17aa575e4p-4 : inexact-ok
+= sin tonearest intel96 0x5.f70274836164cp+360 : -0xf.8edf17aa575e4p-4 : inexact-ok
+= sin towardzero intel96 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffp-4 : inexact-ok
+= sin upward intel96 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffp-4 : inexact-ok
+= sin downward m68k96 0x5.f70274836164cp+360 : -0xf.8edf17aa575e4p-4 : inexact-ok
+= sin tonearest m68k96 0x5.f70274836164cp+360 : -0xf.8edf17aa575e4p-4 : inexact-ok
+= sin towardzero m68k96 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffp-4 : inexact-ok
+= sin upward m68k96 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffp-4 : inexact-ok
+= sin downward binary128 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffffffffffed368p-4 : inexact-ok
+= sin tonearest binary128 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffffffffffed36p-4 : inexact-ok
+= sin towardzero binary128 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffffffffffed36p-4 : inexact-ok
+= sin upward binary128 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffffffffffed36p-4 : inexact-ok
+= sin downward ibm128 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffffffffffed4p-4 : inexact-ok
+= sin tonearest ibm128 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffffffffffed4p-4 : inexact-ok
+= sin towardzero ibm128 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffffffffffedp-4 : inexact-ok
+= sin upward ibm128 0x5.f70274836164cp+360 : -0xf.8edf17aa575e3ffffffffffedp-4 : inexact-ok
+sin 0x1.832ca331294dbp+527
+= sin downward binary32 0xf.fffffp+124 : -0x8.599b4p-4 : inexact-ok
+= sin tonearest binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin towardzero binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin upward binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin downward binary64 0xf.fffffp+124 : -0x8.599b32844abbp-4 : inexact-ok
+= sin tonearest binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin towardzero binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin upward binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin downward intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be049ap-4 : inexact-ok
+= sin tonearest binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin towardzero binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin upward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin downward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04cp-4 : inexact-ok
+= sin tonearest ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin towardzero ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin upward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin downward binary64 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1cp-12 : inexact-ok
+= sin tonearest binary64 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c8p-12 : inexact-ok
+= sin towardzero binary64 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1cp-12 : inexact-ok
+= sin upward binary64 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c8p-12 : inexact-ok
+= sin downward intel96 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c4p-12 : inexact-ok
+= sin tonearest intel96 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c4p-12 : inexact-ok
+= sin towardzero intel96 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c4p-12 : inexact-ok
+= sin upward intel96 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c401p-12 : inexact-ok
+= sin downward m68k96 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c4p-12 : inexact-ok
+= sin tonearest m68k96 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c4p-12 : inexact-ok
+= sin towardzero m68k96 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c4p-12 : inexact-ok
+= sin upward m68k96 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c401p-12 : inexact-ok
+= sin downward binary128 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c40000000000799a8p-12 : inexact-ok
+= sin tonearest binary128 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c40000000000799bp-12 : inexact-ok
+= sin towardzero binary128 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c40000000000799a8p-12 : inexact-ok
+= sin upward binary128 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c40000000000799bp-12 : inexact-ok
+= sin downward ibm128 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c40000000000798p-12 : inexact-ok
+= sin tonearest ibm128 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c40000000000798p-12 : inexact-ok
+= sin towardzero ibm128 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c40000000000798p-12 : inexact-ok
+= sin upward ibm128 0xc.196519894a6d8p+524 : 0xc.09e3a8d7ae1c4000000000079cp-12 : inexact-ok
+sin 0x1.7ab8ac335df9cp+692
+= sin downward binary32 0xf.fffffp+124 : -0x8.599b4p-4 : inexact-ok
+= sin tonearest binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin towardzero binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin upward binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin downward binary64 0xf.fffffp+124 : -0x8.599b32844abbp-4 : inexact-ok
+= sin tonearest binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin towardzero binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin upward binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin downward intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be049ap-4 : inexact-ok
+= sin tonearest binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin towardzero binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin upward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin downward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04cp-4 : inexact-ok
+= sin tonearest ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin towardzero ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin upward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin downward binary64 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c6p-4 : inexact-ok
+= sin tonearest binary64 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c6p-4 : inexact-ok
+= sin towardzero binary64 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5f8p-4 : inexact-ok
+= sin upward binary64 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5f8p-4 : inexact-ok
+= sin downward intel96 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc01p-4 : inexact-ok
+= sin tonearest intel96 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fcp-4 : inexact-ok
+= sin towardzero intel96 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fcp-4 : inexact-ok
+= sin upward intel96 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fcp-4 : inexact-ok
+= sin downward m68k96 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc01p-4 : inexact-ok
+= sin tonearest m68k96 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fcp-4 : inexact-ok
+= sin towardzero m68k96 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fcp-4 : inexact-ok
+= sin upward m68k96 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fcp-4 : inexact-ok
+= sin downward binary128 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc00000000003c3a8p-4 : inexact-ok
+= sin tonearest binary128 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc00000000003c3a8p-4 : inexact-ok
+= sin towardzero binary128 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc00000000003c3ap-4 : inexact-ok
+= sin upward binary128 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc00000000003c3ap-4 : inexact-ok
+= sin downward ibm128 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc00000000003c4p-4 : inexact-ok
+= sin tonearest ibm128 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc00000000003c4p-4 : inexact-ok
+= sin towardzero ibm128 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc00000000003cp-4 : inexact-ok
+= sin upward ibm128 0x1.7ab8ac335df9cp+692 : -0x8.a5217c192c5fc00000000003cp-4 : inexact-ok
+sin 0x1.835e6040e6746p+858
+= sin downward binary32 0xf.fffffp+124 : -0x8.599b4p-4 : inexact-ok
+= sin tonearest binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin towardzero binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin upward binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin downward binary64 0xf.fffffp+124 : -0x8.599b32844abbp-4 : inexact-ok
+= sin tonearest binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin towardzero binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin upward binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin downward intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be049ap-4 : inexact-ok
+= sin tonearest binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin towardzero binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin upward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin downward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04cp-4 : inexact-ok
+= sin tonearest ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin towardzero ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin upward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin downward binary64 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3cp-4 : inexact-ok
+= sin tonearest binary64 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3cp-4 : inexact-ok
+= sin towardzero binary64 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3cp-4 : inexact-ok
+= sin upward binary64 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf4p-4 : inexact-ok
+= sin downward intel96 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dff8p-4 : inexact-ok
+= sin tonearest intel96 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3ep-4 : inexact-ok
+= sin towardzero intel96 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dff8p-4 : inexact-ok
+= sin upward intel96 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3ep-4 : inexact-ok
+= sin downward m68k96 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dff8p-4 : inexact-ok
+= sin tonearest m68k96 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3ep-4 : inexact-ok
+= sin towardzero m68k96 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dff8p-4 : inexact-ok
+= sin upward m68k96 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3ep-4 : inexact-ok
+= sin downward binary128 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dfffffffffffcbdp-4 : inexact-ok
+= sin tonearest binary128 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dfffffffffffcbdp-4 : inexact-ok
+= sin towardzero binary128 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dfffffffffffcbdp-4 : inexact-ok
+= sin upward binary128 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dfffffffffffcbd4p-4 : inexact-ok
+= sin downward ibm128 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dfffffffffffcap-4 : inexact-ok
+= sin tonearest ibm128 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dfffffffffffccp-4 : inexact-ok
+= sin towardzero ibm128 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dfffffffffffcap-4 : inexact-ok
+= sin upward ibm128 0x6.0d79810399d18p+856 : 0x5.09f0beb7fdf3dfffffffffffccp-4 : inexact-ok
+sin 0x1.7bbbfbd4ae9b8p+1023
+= sin downward binary32 0xf.fffffp+124 : -0x8.599b4p-4 : inexact-ok
+= sin tonearest binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin towardzero binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin upward binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
+= sin downward binary64 0xf.fffffp+124 : -0x8.599b32844abbp-4 : inexact-ok
+= sin tonearest binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin towardzero binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin upward binary64 0xf.fffffp+124 : -0x8.599b32844aba8p-4 : inexact-ok
+= sin downward intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest intel96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward intel96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin tonearest m68k96 0xf.fffffp+124 : -0x8.599b32844aba907p-4 : inexact-ok
+= sin towardzero m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin upward m68k96 0xf.fffffp+124 : -0x8.599b32844aba906p-4 : inexact-ok
+= sin downward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be049ap-4 : inexact-ok
+= sin tonearest binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin towardzero binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin upward binary128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04998p-4 : inexact-ok
+= sin downward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be04cp-4 : inexact-ok
+= sin tonearest ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin towardzero ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin upward ibm128 0xf.fffffp+124 : -0x8.599b32844aba906cee446be048p-4 : inexact-ok
+= sin downward binary64 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547cp-4 : inexact-ok
+= sin tonearest binary64 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547cp-4 : inexact-ok
+= sin towardzero binary64 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547cp-4 : inexact-ok
+= sin upward binary64 0xb.dddfdea574dcp+1020 : 0x6.0073bb504548p-4 : inexact-ok
+= sin downward intel96 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dff8p-4 : inexact-ok
+= sin tonearest intel96 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547ep-4 : inexact-ok
+= sin towardzero intel96 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dff8p-4 : inexact-ok
+= sin upward intel96 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547ep-4 : inexact-ok
+= sin downward m68k96 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dff8p-4 : inexact-ok
+= sin tonearest m68k96 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547ep-4 : inexact-ok
+= sin towardzero m68k96 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dff8p-4 : inexact-ok
+= sin upward m68k96 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547ep-4 : inexact-ok
+= sin downward binary128 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dffffffffffd9d7cp-4 : inexact-ok
+= sin tonearest binary128 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dffffffffffd9d7cp-4 : inexact-ok
+= sin towardzero binary128 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dffffffffffd9d7cp-4 : inexact-ok
+= sin upward binary128 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dffffffffffd9d8p-4 : inexact-ok
+= sin downward ibm128 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dffffffffffd9cp-4 : inexact-ok
+= sin tonearest ibm128 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dffffffffffd9ep-4 : inexact-ok
+= sin towardzero ibm128 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dffffffffffd9cp-4 : inexact-ok
+= sin upward ibm128 0xb.dddfdea574dcp+1020 : 0x6.0073bb504547dffffffffffd9ep-4 : inexact-ok
+sin 0x1.fffffffffffffp-27
+= sin downward binary32 0x4p-28 : 0x3.fffffcp-28 : inexact-ok
+= sin tonearest binary32 0x4p-28 : 0x4p-28 : inexact-ok
+= sin towardzero binary32 0x4p-28 : 0x3.fffffcp-28 : inexact-ok
+= sin upward binary32 0x4p-28 : 0x4p-28 : inexact-ok
+= sin downward binary64 0x4p-28 : 0x3.ffffffffffffep-28 : inexact-ok
+= sin tonearest binary64 0x4p-28 : 0x4p-28 : inexact-ok
+= sin towardzero binary64 0x4p-28 : 0x3.ffffffffffffep-28 : inexact-ok
+= sin upward binary64 0x4p-28 : 0x4p-28 : inexact-ok
+= sin downward intel96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin tonearest intel96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin towardzero intel96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin upward intel96 0x4p-28 : 0x3.fffffffffffff558p-28 : inexact-ok
+= sin downward m68k96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin tonearest m68k96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin towardzero m68k96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin upward m68k96 0x4p-28 : 0x3.fffffffffffff558p-28 : inexact-ok
+= sin downward binary128 0x4p-28 : 0x3.fffffffffffff55555555555555cp-28 : inexact-ok
+= sin tonearest binary128 0x4p-28 : 0x3.fffffffffffff55555555555555ep-28 : inexact-ok
+= sin towardzero binary128 0x4p-28 : 0x3.fffffffffffff55555555555555cp-28 : inexact-ok
+= sin upward binary128 0x4p-28 : 0x3.fffffffffffff55555555555555ep-28 : inexact-ok
+= sin downward ibm128 0x4p-28 : 0x3.fffffffffffff5555555555555p-28 : inexact-ok
+= sin tonearest ibm128 0x4p-28 : 0x3.fffffffffffff5555555555555p-28 : inexact-ok
+= sin towardzero ibm128 0x4p-28 : 0x3.fffffffffffff5555555555555p-28 : inexact-ok
+= sin upward ibm128 0x4p-28 : 0x3.fffffffffffff5555555555556p-28 : inexact-ok
+= sin downward binary32 0x3.fffffcp-28 : 0x3.fffff8p-28 : inexact-ok
+= sin tonearest binary32 0x3.fffffcp-28 : 0x3.fffffcp-28 : inexact-ok
+= sin towardzero binary32 0x3.fffffcp-28 : 0x3.fffff8p-28 : inexact-ok
+= sin upward binary32 0x3.fffffcp-28 : 0x3.fffffcp-28 : inexact-ok
+= sin downward binary64 0x3.fffffcp-28 : 0x3.fffffbffffffep-28 : inexact-ok
+= sin tonearest binary64 0x3.fffffcp-28 : 0x3.fffffcp-28 : inexact-ok
+= sin towardzero binary64 0x3.fffffcp-28 : 0x3.fffffbffffffep-28 : inexact-ok
+= sin upward binary64 0x3.fffffcp-28 : 0x3.fffffcp-28 : inexact-ok
+= sin downward intel96 0x3.fffffcp-28 : 0x3.fffffbfffffff554p-28 : inexact-ok
+= sin tonearest intel96 0x3.fffffcp-28 : 0x3.fffffbfffffff554p-28 : inexact-ok
+= sin towardzero intel96 0x3.fffffcp-28 : 0x3.fffffbfffffff554p-28 : inexact-ok
+= sin upward intel96 0x3.fffffcp-28 : 0x3.fffffbfffffff558p-28 : inexact-ok
+= sin downward m68k96 0x3.fffffcp-28 : 0x3.fffffbfffffff554p-28 : inexact-ok
+= sin tonearest m68k96 0x3.fffffcp-28 : 0x3.fffffbfffffff554p-28 : inexact-ok
+= sin towardzero m68k96 0x3.fffffcp-28 : 0x3.fffffbfffffff554p-28 : inexact-ok
+= sin upward m68k96 0x3.fffffcp-28 : 0x3.fffffbfffffff558p-28 : inexact-ok
+= sin downward binary128 0x3.fffffcp-28 : 0x3.fffffbfffffff55555755555355cp-28 : inexact-ok
+= sin tonearest binary128 0x3.fffffcp-28 : 0x3.fffffbfffffff55555755555355ep-28 : inexact-ok
+= sin towardzero binary128 0x3.fffffcp-28 : 0x3.fffffbfffffff55555755555355cp-28 : inexact-ok
+= sin upward binary128 0x3.fffffcp-28 : 0x3.fffffbfffffff55555755555355ep-28 : inexact-ok
+= sin downward ibm128 0x3.fffffcp-28 : 0x3.fffffbfffffff5555575555535p-28 : inexact-ok
+= sin tonearest ibm128 0x3.fffffcp-28 : 0x3.fffffbfffffff5555575555535p-28 : inexact-ok
+= sin towardzero ibm128 0x3.fffffcp-28 : 0x3.fffffbfffffff5555575555535p-28 : inexact-ok
+= sin upward ibm128 0x3.fffffcp-28 : 0x3.fffffbfffffff5555575555536p-28 : inexact-ok
+= sin downward binary64 0x3.ffffffffffffep-28 : 0x3.ffffffffffffcp-28 : inexact-ok
+= sin tonearest binary64 0x3.ffffffffffffep-28 : 0x3.ffffffffffffep-28 : inexact-ok
+= sin towardzero binary64 0x3.ffffffffffffep-28 : 0x3.ffffffffffffcp-28 : inexact-ok
+= sin upward binary64 0x3.ffffffffffffep-28 : 0x3.ffffffffffffep-28 : inexact-ok
+= sin downward intel96 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd554p-28 : inexact-ok
+= sin tonearest intel96 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd554p-28 : inexact-ok
+= sin towardzero intel96 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd554p-28 : inexact-ok
+= sin upward intel96 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd558p-28 : inexact-ok
+= sin downward m68k96 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd554p-28 : inexact-ok
+= sin tonearest m68k96 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd554p-28 : inexact-ok
+= sin towardzero m68k96 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd554p-28 : inexact-ok
+= sin upward m68k96 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd558p-28 : inexact-ok
+= sin downward binary128 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd55555555555565cp-28 : inexact-ok
+= sin tonearest binary128 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd55555555555565ep-28 : inexact-ok
+= sin towardzero binary128 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd55555555555565cp-28 : inexact-ok
+= sin upward binary128 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd55555555555565ep-28 : inexact-ok
+= sin downward ibm128 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd5555555555556p-28 : inexact-ok
+= sin tonearest ibm128 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd5555555555556p-28 : inexact-ok
+= sin towardzero ibm128 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd5555555555556p-28 : inexact-ok
+= sin upward ibm128 0x3.ffffffffffffep-28 : 0x3.ffffffffffffd5555555555557p-28 : inexact-ok
+sin 0x1p-26
+= sin downward binary32 0x4p-28 : 0x3.fffffcp-28 : inexact-ok
+= sin tonearest binary32 0x4p-28 : 0x4p-28 : inexact-ok
+= sin towardzero binary32 0x4p-28 : 0x3.fffffcp-28 : inexact-ok
+= sin upward binary32 0x4p-28 : 0x4p-28 : inexact-ok
+= sin downward binary64 0x4p-28 : 0x3.ffffffffffffep-28 : inexact-ok
+= sin tonearest binary64 0x4p-28 : 0x4p-28 : inexact-ok
+= sin towardzero binary64 0x4p-28 : 0x3.ffffffffffffep-28 : inexact-ok
+= sin upward binary64 0x4p-28 : 0x4p-28 : inexact-ok
+= sin downward intel96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin tonearest intel96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin towardzero intel96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin upward intel96 0x4p-28 : 0x3.fffffffffffff558p-28 : inexact-ok
+= sin downward m68k96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin tonearest m68k96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin towardzero m68k96 0x4p-28 : 0x3.fffffffffffff554p-28 : inexact-ok
+= sin upward m68k96 0x4p-28 : 0x3.fffffffffffff558p-28 : inexact-ok
+= sin downward binary128 0x4p-28 : 0x3.fffffffffffff55555555555555cp-28 : inexact-ok
+= sin tonearest binary128 0x4p-28 : 0x3.fffffffffffff55555555555555ep-28 : inexact-ok
+= sin towardzero binary128 0x4p-28 : 0x3.fffffffffffff55555555555555cp-28 : inexact-ok
+= sin upward binary128 0x4p-28 : 0x3.fffffffffffff55555555555555ep-28 : inexact-ok
+= sin downward ibm128 0x4p-28 : 0x3.fffffffffffff5555555555555p-28 : inexact-ok
+= sin tonearest ibm128 0x4p-28 : 0x3.fffffffffffff5555555555555p-28 : inexact-ok
+= sin towardzero ibm128 0x4p-28 : 0x3.fffffffffffff5555555555555p-28 : inexact-ok
+= sin upward ibm128 0x4p-28 : 0x3.fffffffffffff5555555555556p-28 : inexact-ok
+sin 0x1.fffffffffffffp-17
+= sin downward binary32 0x1p-16 : 0xf.fffffp-20 : inexact-ok
+= sin tonearest binary32 0x1p-16 : 0x1p-16 : inexact-ok
+= sin towardzero binary32 0x1p-16 : 0xf.fffffp-20 : inexact-ok
+= sin upward binary32 0x1p-16 : 0x1p-16 : inexact-ok
+= sin downward binary64 0x1p-16 : 0xf.fffffffd5555p-20 : inexact-ok
+= sin tonearest binary64 0x1p-16 : 0xf.fffffffd55558p-20 : inexact-ok
+= sin towardzero binary64 0x1p-16 : 0xf.fffffffd5555p-20 : inexact-ok
+= sin upward binary64 0x1p-16 : 0xf.fffffffd55558p-20 : inexact-ok
+= sin downward intel96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin tonearest intel96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin towardzero intel96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin upward intel96 0x1p-16 : 0xf.fffffffd5555556p-20 : inexact-ok
+= sin downward m68k96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin tonearest m68k96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin towardzero m68k96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin upward m68k96 0x1p-16 : 0xf.fffffffd5555556p-20 : inexact-ok
+= sin downward binary128 0x1p-16 : 0xf.fffffffd555555557777777776ap-20 : inexact-ok
+= sin tonearest binary128 0x1p-16 : 0xf.fffffffd555555557777777776a8p-20 : inexact-ok
+= sin towardzero binary128 0x1p-16 : 0xf.fffffffd555555557777777776ap-20 : inexact-ok
+= sin upward binary128 0x1p-16 : 0xf.fffffffd555555557777777776a8p-20 : inexact-ok
+= sin downward ibm128 0x1p-16 : 0xf.fffffffd555555557777777774p-20 : inexact-ok
+= sin tonearest ibm128 0x1p-16 : 0xf.fffffffd555555557777777778p-20 : inexact-ok
+= sin towardzero ibm128 0x1p-16 : 0xf.fffffffd555555557777777774p-20 : inexact-ok
+= sin upward ibm128 0x1p-16 : 0xf.fffffffd555555557777777778p-20 : inexact-ok
+= sin downward binary32 0xf.fffffp-20 : 0xf.ffffep-20 : inexact-ok
+= sin tonearest binary32 0xf.fffffp-20 : 0xf.fffffp-20 : inexact-ok
+= sin towardzero binary32 0xf.fffffp-20 : 0xf.ffffep-20 : inexact-ok
+= sin upward binary32 0xf.fffffp-20 : 0xf.fffffp-20 : inexact-ok
+= sin downward binary64 0xf.fffffp-20 : 0xf.ffffeffd5555p-20 : inexact-ok
+= sin tonearest binary64 0xf.fffffp-20 : 0xf.ffffeffd55558p-20 : inexact-ok
+= sin towardzero binary64 0xf.fffffp-20 : 0xf.ffffeffd5555p-20 : inexact-ok
+= sin upward binary64 0xf.fffffp-20 : 0xf.ffffeffd55558p-20 : inexact-ok
+= sin downward intel96 0xf.fffffp-20 : 0xf.ffffeffd55555d5p-20 : inexact-ok
+= sin tonearest intel96 0xf.fffffp-20 : 0xf.ffffeffd55555d5p-20 : inexact-ok
+= sin towardzero intel96 0xf.fffffp-20 : 0xf.ffffeffd55555d5p-20 : inexact-ok
+= sin upward intel96 0xf.fffffp-20 : 0xf.ffffeffd55555d6p-20 : inexact-ok
+= sin downward m68k96 0xf.fffffp-20 : 0xf.ffffeffd55555d5p-20 : inexact-ok
+= sin tonearest m68k96 0xf.fffffp-20 : 0xf.ffffeffd55555d5p-20 : inexact-ok
+= sin towardzero m68k96 0xf.fffffp-20 : 0xf.ffffeffd55555d5p-20 : inexact-ok
+= sin upward m68k96 0xf.fffffp-20 : 0xf.ffffeffd55555d6p-20 : inexact-ok
+= sin downward binary128 0xf.fffffp-20 : 0xf.ffffeffd55555d55776f76cccea8p-20 : inexact-ok
+= sin tonearest binary128 0xf.fffffp-20 : 0xf.ffffeffd55555d55776f76cccea8p-20 : inexact-ok
+= sin towardzero binary128 0xf.fffffp-20 : 0xf.ffffeffd55555d55776f76cccea8p-20 : inexact-ok
+= sin upward binary128 0xf.fffffp-20 : 0xf.ffffeffd55555d55776f76cccebp-20 : inexact-ok
+= sin downward ibm128 0xf.fffffp-20 : 0xf.ffffeffd55555d55776f76ccccp-20 : inexact-ok
+= sin tonearest ibm128 0xf.fffffp-20 : 0xf.ffffeffd55555d55776f76ccdp-20 : inexact-ok
+= sin towardzero ibm128 0xf.fffffp-20 : 0xf.ffffeffd55555d55776f76ccccp-20 : inexact-ok
+= sin upward ibm128 0xf.fffffp-20 : 0xf.ffffeffd55555d55776f76ccdp-20 : inexact-ok
+= sin downward binary64 0xf.ffffffffffff8p-20 : 0xf.fffffffd55548p-20 : inexact-ok
+= sin tonearest binary64 0xf.ffffffffffff8p-20 : 0xf.fffffffd5555p-20 : inexact-ok
+= sin towardzero binary64 0xf.ffffffffffff8p-20 : 0xf.fffffffd55548p-20 : inexact-ok
+= sin upward binary64 0xf.ffffffffffff8p-20 : 0xf.fffffffd5555p-20 : inexact-ok
+= sin downward intel96 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d55p-20 : inexact-ok
+= sin tonearest intel96 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d55p-20 : inexact-ok
+= sin towardzero intel96 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d55p-20 : inexact-ok
+= sin upward intel96 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d56p-20 : inexact-ok
+= sin downward m68k96 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d55p-20 : inexact-ok
+= sin tonearest m68k96 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d55p-20 : inexact-ok
+= sin towardzero m68k96 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d55p-20 : inexact-ok
+= sin upward m68k96 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d56p-20 : inexact-ok
+= sin downward binary128 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d5557777b77776ap-20 : inexact-ok
+= sin tonearest binary128 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d5557777b77776a8p-20 : inexact-ok
+= sin towardzero binary128 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d5557777b77776ap-20 : inexact-ok
+= sin upward binary128 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d5557777b77776a8p-20 : inexact-ok
+= sin downward ibm128 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d5557777b77774p-20 : inexact-ok
+= sin tonearest ibm128 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d5557777b77778p-20 : inexact-ok
+= sin towardzero ibm128 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d5557777b77774p-20 : inexact-ok
+= sin upward ibm128 0xf.ffffffffffff8p-20 : 0xf.fffffffd5554d5557777b77778p-20 : inexact-ok
+sin 0x1p-16
+= sin downward binary32 0x1p-16 : 0xf.fffffp-20 : inexact-ok
+= sin tonearest binary32 0x1p-16 : 0x1p-16 : inexact-ok
+= sin towardzero binary32 0x1p-16 : 0xf.fffffp-20 : inexact-ok
+= sin upward binary32 0x1p-16 : 0x1p-16 : inexact-ok
+= sin downward binary64 0x1p-16 : 0xf.fffffffd5555p-20 : inexact-ok
+= sin tonearest binary64 0x1p-16 : 0xf.fffffffd55558p-20 : inexact-ok
+= sin towardzero binary64 0x1p-16 : 0xf.fffffffd5555p-20 : inexact-ok
+= sin upward binary64 0x1p-16 : 0xf.fffffffd55558p-20 : inexact-ok
+= sin downward intel96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin tonearest intel96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin towardzero intel96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin upward intel96 0x1p-16 : 0xf.fffffffd5555556p-20 : inexact-ok
+= sin downward m68k96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin tonearest m68k96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin towardzero m68k96 0x1p-16 : 0xf.fffffffd5555555p-20 : inexact-ok
+= sin upward m68k96 0x1p-16 : 0xf.fffffffd5555556p-20 : inexact-ok
+= sin downward binary128 0x1p-16 : 0xf.fffffffd555555557777777776ap-20 : inexact-ok
+= sin tonearest binary128 0x1p-16 : 0xf.fffffffd555555557777777776a8p-20 : inexact-ok
+= sin towardzero binary128 0x1p-16 : 0xf.fffffffd555555557777777776ap-20 : inexact-ok
+= sin upward binary128 0x1p-16 : 0xf.fffffffd555555557777777776a8p-20 : inexact-ok
+= sin downward ibm128 0x1p-16 : 0xf.fffffffd555555557777777774p-20 : inexact-ok
+= sin tonearest ibm128 0x1p-16 : 0xf.fffffffd555555557777777778p-20 : inexact-ok
+= sin towardzero ibm128 0x1p-16 : 0xf.fffffffd555555557777777774p-20 : inexact-ok
+= sin upward ibm128 0x1p-16 : 0xf.fffffffd555555557777777778p-20 : inexact-ok
+sin 0x1.fffffffffffffp+30
+= sin downward binary32 0x8p+28 : -0xf.8a7c9p-4 : inexact-ok
+= sin tonearest binary32 0x8p+28 : -0xf.8a7c9p-4 : inexact-ok
+= sin towardzero binary32 0x8p+28 : -0xf.8a7c8p-4 : inexact-ok
+= sin upward binary32 0x8p+28 : -0xf.8a7c8p-4 : inexact-ok
+= sin downward binary64 0x8p+28 : -0xf.8a7c89f4d7cc8p-4 : inexact-ok
+= sin tonearest binary64 0x8p+28 : -0xf.8a7c89f4d7ccp-4 : inexact-ok
+= sin towardzero binary64 0x8p+28 : -0xf.8a7c89f4d7ccp-4 : inexact-ok
+= sin upward binary64 0x8p+28 : -0xf.8a7c89f4d7ccp-4 : inexact-ok
+= sin downward intel96 0x8p+28 : -0xf.8a7c89f4d7cc236p-4 : inexact-ok
+= sin tonearest intel96 0x8p+28 : -0xf.8a7c89f4d7cc236p-4 : inexact-ok
+= sin towardzero intel96 0x8p+28 : -0xf.8a7c89f4d7cc235p-4 : inexact-ok
+= sin upward intel96 0x8p+28 : -0xf.8a7c89f4d7cc235p-4 : inexact-ok
+= sin downward m68k96 0x8p+28 : -0xf.8a7c89f4d7cc236p-4 : inexact-ok
+= sin tonearest m68k96 0x8p+28 : -0xf.8a7c89f4d7cc236p-4 : inexact-ok
+= sin towardzero m68k96 0x8p+28 : -0xf.8a7c89f4d7cc235p-4 : inexact-ok
+= sin upward m68k96 0x8p+28 : -0xf.8a7c89f4d7cc235p-4 : inexact-ok
+= sin downward binary128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ce68p-4 : inexact-ok
+= sin tonearest binary128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ce68p-4 : inexact-ok
+= sin towardzero binary128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ce6p-4 : inexact-ok
+= sin upward binary128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ce6p-4 : inexact-ok
+= sin downward ibm128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150dp-4 : inexact-ok
+= sin tonearest ibm128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150dp-4 : inexact-ok
+= sin towardzero ibm128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ccp-4 : inexact-ok
+= sin upward ibm128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ccp-4 : inexact-ok
+= sin downward binary32 0x7.fffff8p+28 : 0x8.06513p-4 : inexact-ok
+= sin tonearest binary32 0x7.fffff8p+28 : 0x8.06514p-4 : inexact-ok
+= sin towardzero binary32 0x7.fffff8p+28 : 0x8.06513p-4 : inexact-ok
+= sin upward binary32 0x7.fffff8p+28 : 0x8.06514p-4 : inexact-ok
+= sin downward binary64 0x7.fffff8p+28 : 0x8.06513cdf92a7p-4 : inexact-ok
+= sin tonearest binary64 0x7.fffff8p+28 : 0x8.06513cdf92a78p-4 : inexact-ok
+= sin towardzero binary64 0x7.fffff8p+28 : 0x8.06513cdf92a7p-4 : inexact-ok
+= sin upward binary64 0x7.fffff8p+28 : 0x8.06513cdf92a78p-4 : inexact-ok
+= sin downward intel96 0x7.fffff8p+28 : 0x8.06513cdf92a7783p-4 : inexact-ok
+= sin tonearest intel96 0x7.fffff8p+28 : 0x8.06513cdf92a7783p-4 : inexact-ok
+= sin towardzero intel96 0x7.fffff8p+28 : 0x8.06513cdf92a7783p-4 : inexact-ok
+= sin upward intel96 0x7.fffff8p+28 : 0x8.06513cdf92a7784p-4 : inexact-ok
+= sin downward m68k96 0x7.fffff8p+28 : 0x8.06513cdf92a7783p-4 : inexact-ok
+= sin tonearest m68k96 0x7.fffff8p+28 : 0x8.06513cdf92a7783p-4 : inexact-ok
+= sin towardzero m68k96 0x7.fffff8p+28 : 0x8.06513cdf92a7783p-4 : inexact-ok
+= sin upward m68k96 0x7.fffff8p+28 : 0x8.06513cdf92a7784p-4 : inexact-ok
+= sin downward binary128 0x7.fffff8p+28 : 0x8.06513cdf92a778305f7cf1bbb278p-4 : inexact-ok
+= sin tonearest binary128 0x7.fffff8p+28 : 0x8.06513cdf92a778305f7cf1bbb278p-4 : inexact-ok
+= sin towardzero binary128 0x7.fffff8p+28 : 0x8.06513cdf92a778305f7cf1bbb278p-4 : inexact-ok
+= sin upward binary128 0x7.fffff8p+28 : 0x8.06513cdf92a778305f7cf1bbb28p-4 : inexact-ok
+= sin downward ibm128 0x7.fffff8p+28 : 0x8.06513cdf92a778305f7cf1bbbp-4 : inexact-ok
+= sin tonearest ibm128 0x7.fffff8p+28 : 0x8.06513cdf92a778305f7cf1bbb4p-4 : inexact-ok
+= sin towardzero ibm128 0x7.fffff8p+28 : 0x8.06513cdf92a778305f7cf1bbbp-4 : inexact-ok
+= sin upward ibm128 0x7.fffff8p+28 : 0x8.06513cdf92a778305f7cf1bbb4p-4 : inexact-ok
+= sin downward binary64 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba8p-4 : inexact-ok
+= sin tonearest binary64 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba8p-4 : inexact-ok
+= sin towardzero binary64 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38bap-4 : inexact-ok
+= sin upward binary64 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38bap-4 : inexact-ok
+= sin downward intel96 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba591p-4 : inexact-ok
+= sin tonearest intel96 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba59p-4 : inexact-ok
+= sin towardzero intel96 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba59p-4 : inexact-ok
+= sin upward intel96 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba59p-4 : inexact-ok
+= sin downward m68k96 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba591p-4 : inexact-ok
+= sin tonearest m68k96 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba59p-4 : inexact-ok
+= sin towardzero m68k96 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba59p-4 : inexact-ok
+= sin upward m68k96 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba59p-4 : inexact-ok
+= sin downward binary128 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba5905f9a499cb7bf8p-4 : inexact-ok
+= sin tonearest binary128 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba5905f9a499cb7bfp-4 : inexact-ok
+= sin towardzero binary128 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba5905f9a499cb7bfp-4 : inexact-ok
+= sin upward binary128 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba5905f9a499cb7bfp-4 : inexact-ok
+= sin downward ibm128 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba5905f9a499cb7cp-4 : inexact-ok
+= sin tonearest ibm128 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba5905f9a499cb7cp-4 : inexact-ok
+= sin towardzero ibm128 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba5905f9a499cb78p-4 : inexact-ok
+= sin upward ibm128 0x7.ffffffffffffcp+28 : -0xf.8a7c992d38ba5905f9a499cb78p-4 : inexact-ok
+sin 0x1p+31
+= sin downward binary32 0x8p+28 : -0xf.8a7c9p-4 : inexact-ok
+= sin tonearest binary32 0x8p+28 : -0xf.8a7c9p-4 : inexact-ok
+= sin towardzero binary32 0x8p+28 : -0xf.8a7c8p-4 : inexact-ok
+= sin upward binary32 0x8p+28 : -0xf.8a7c8p-4 : inexact-ok
+= sin downward binary64 0x8p+28 : -0xf.8a7c89f4d7cc8p-4 : inexact-ok
+= sin tonearest binary64 0x8p+28 : -0xf.8a7c89f4d7ccp-4 : inexact-ok
+= sin towardzero binary64 0x8p+28 : -0xf.8a7c89f4d7ccp-4 : inexact-ok
+= sin upward binary64 0x8p+28 : -0xf.8a7c89f4d7ccp-4 : inexact-ok
+= sin downward intel96 0x8p+28 : -0xf.8a7c89f4d7cc236p-4 : inexact-ok
+= sin tonearest intel96 0x8p+28 : -0xf.8a7c89f4d7cc236p-4 : inexact-ok
+= sin towardzero intel96 0x8p+28 : -0xf.8a7c89f4d7cc235p-4 : inexact-ok
+= sin upward intel96 0x8p+28 : -0xf.8a7c89f4d7cc235p-4 : inexact-ok
+= sin downward m68k96 0x8p+28 : -0xf.8a7c89f4d7cc236p-4 : inexact-ok
+= sin tonearest m68k96 0x8p+28 : -0xf.8a7c89f4d7cc236p-4 : inexact-ok
+= sin towardzero m68k96 0x8p+28 : -0xf.8a7c89f4d7cc235p-4 : inexact-ok
+= sin upward m68k96 0x8p+28 : -0xf.8a7c89f4d7cc235p-4 : inexact-ok
+= sin downward binary128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ce68p-4 : inexact-ok
+= sin tonearest binary128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ce68p-4 : inexact-ok
+= sin towardzero binary128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ce6p-4 : inexact-ok
+= sin upward binary128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ce6p-4 : inexact-ok
+= sin downward ibm128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150dp-4 : inexact-ok
+= sin tonearest ibm128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150dp-4 : inexact-ok
+= sin towardzero ibm128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ccp-4 : inexact-ok
+= sin upward ibm128 0x8p+28 : -0xf.8a7c89f4d7cc235b47978150ccp-4 : inexact-ok
sin max
= sin downward binary32 0xf.fffffp+124 : -0x8.599b4p-4 : inexact-ok
= sin tonearest binary32 0xf.fffffp+124 : -0x8.599b3p-4 : inexact-ok
diff --git a/sysdeps/generic/math_uint128.h b/sysdeps/generic/math_uint128.h
index 6eaf6c0375d..a0fb93efbb8 100644
--- a/sysdeps/generic/math_uint128.h
+++ b/sysdeps/generic/math_uint128.h
@@ -36,6 +36,7 @@
- u128_neg: negate a 128 bit number.
- u128_lshift: left shift a number.
- u128_rshift: right shift a number.
+ - u128_lt: return whether a number is less than another.
*/
#if defined __BITINT_MAXWIDTH__ && __BITINT_MAXWIDTH__ >= 128
@@ -58,6 +59,7 @@ typedef unsigned __int128 u128;
# define u128_sub(__x, __y) (__x) - (__y)
# define u128_lshift(__x, __y) (__x) << (__y)
# define u128_rshift(__x, __y) (__x) >> (__y)
+# define u128_lt(__x, __y) ((__x) < (__y))
#else
typedef struct
{
@@ -113,6 +115,11 @@ static inline u128 u128_rshift (u128 x, unsigned int n)
}
}
+static inline bool u128_lt (u128 x, u128 y)
+{
+ return x.high < y.high || (x.high == y.high && x.low < y.low);
+}
+
static inline u128 u128_mul (u128 x, u128 y)
{
if (x.high == 0 && y.high == 0)
diff --git a/sysdeps/i386/Makefile b/sysdeps/i386/Makefile
index f84dda84018..94741013496 100644
--- a/sysdeps/i386/Makefile
+++ b/sysdeps/i386/Makefile
@@ -17,6 +17,7 @@ CFLAGS-s_erfc.c += -fexcess-precision=standard
CFLAGS-s_erf_common.c += -fexcess-precision=standard
CFLAGS-s_fma.c += -fexcess-precision=standard
CFLAGS-s_fmaf.c += -fexcess-precision=standard
+CFLAGS-s_sin.c += -fexcess-precision=standard
CFLAGS-s_tanh.c += -fexcess-precision=standard
endif
diff --git a/sysdeps/ieee754/dbl-64/libm-test-ulps b/sysdeps/ieee754/dbl-64/libm-test-ulps
index c46cfe0030a..4de91ac9473 100644
--- a/sysdeps/ieee754/dbl-64/libm-test-ulps
+++ b/sysdeps/ieee754/dbl-64/libm-test-ulps
@@ -83,6 +83,18 @@ double: 0
Function: "lgamma_upward":
double: 0
+Function: "sin":
+double: 0
+
+Function: "sin_downward":
+double: 0
+
+Function: "sin_towardzero":
+double: 0
+
+Function: "sin_upward":
+double: 0
+
Function: "sinh":
double: 0
diff --git a/sysdeps/ieee754/dbl-64/s_sin.c b/sysdeps/ieee754/dbl-64/s_sin.c
index 55846b187bf..4128240b9c7 100644
--- a/sysdeps/ieee754/dbl-64/s_sin.c
+++ b/sysdeps/ieee754/dbl-64/s_sin.c
@@ -1,255 +1,1202 @@
-/*
- * IBM Accurate Mathematical Library
- * written by International Business Machines Corp.
- * Copyright (C) 2001-2026 Free Software Foundation, Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2.1 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, see <https://www.gnu.org/licenses/>.
- */
-/****************************************************************************/
-/* */
-/* MODULE_NAME:usncs.c */
-/* */
-/* FUNCTIONS: usin */
-/* FILES NEEDED: dla.h endian.h mpa.h mydefs.h usncs.h */
-/* e_rem_pio2.c sincos.tbl */
-/* */
-/* An ultimate sin routine. Given an IEEE double machine number x it */
-/* computes sin(x) with ~0.55 ULP. */
-/* Assumption: Machine arithmetic operations are performed in */
-/* round to nearest mode of IEEE 754 standard. */
-/* */
-/****************************************************************************/
+/* Correctly-rounded sine function for binary64 value.
+Copyright (c) 2026 Paul Zimmermann and Alexei Sibidanov.
+
+The original version of this file was copied from the CORE-MATH
+project (file src/binary64/sin/sin.c, revision a3fe413f).
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+*/
+
+/* References:
+ [1] Handbook of Floating-Point Arithmetic (2nd edition),
+ Muller, Jean-Michel and Brunie, Nicolas and de Dinechin, Florent and
+ Jeannerod, Claude-Pierre and Joldes, Mioara and Lefèvre, Vincent and
+ Melquiond, Guillaume and Revol, Nathalie and Torres, Serge,
+ Birkhäuser, 2018.
+ [2] Computing hard-to-round cases of sin, cos, tan in double precision,
+ Vincent Lefèvre, Tue Ly, Paul Zimmermann,
+ ARITH 2026 - 33rd IEEE International Symposium on Computer Arithmetic,
+ 2026. */
-#include <errno.h>
-#include <float.h>
-#include "endian.h"
-#include "mydefs.h"
-#include "usncs.h"
-#include <math.h>
-#include <math_private.h>
-#include <fenv_private.h>
-#include <math-underflow.h>
#include <libm-alias-double.h>
-#include <fenv.h>
-
-/* Helper macros to compute sin of the input values. */
-#define POLYNOMIAL2(xx) ((((s5 * (xx) + s4) * (xx) + s3) * (xx) + s2) * (xx))
-
-#define POLYNOMIAL(xx) (POLYNOMIAL2 (xx) + s1)
-
-/* The computed polynomial is a variation of the Taylor series expansion for
- sin(x):
-
- x - x^3/3! + x^5/5! - x^7/7! + x^9/9! - x^11/11! - dx*x^2/2 + dx
-
- The constants s1, s2, s3, etc. are pre-computed values of 1/3!, 1/5! and so
- on. The result is returned to LHS. */
-#define TAYLOR_SIN(xx, x, dx) \
-({ \
- double t = ((POLYNOMIAL (xx) * (x) - 0.5 * (dx)) * (xx) + (dx)); \
- double res = (x) + t; \
- res; \
-})
-
-#define SINCOS_TABLE_LOOKUP(u, sn, ssn, cs, ccs) \
-({ \
- int4 k = u.i[LOW_HALF] << 2; \
- sn = __sincostab.x[k]; \
- ssn = __sincostab.x[k + 1]; \
- cs = __sincostab.x[k + 2]; \
- ccs = __sincostab.x[k + 3]; \
-})
+#include <math.h>
+#include <math_uint128.h>
+#include <stdint.h>
+#include <ddcoremath.h>
+#include "math_config.h"
#ifndef SECTION
# define SECTION
#endif
-extern const union
+/* Return the double-double product (xh + xl) * (ch + cl) with the low part
+ in L. The operand order differs from muldd2 in ddcoremath.h, which
+ changes the FMA contraction of the low part. */
+static inline double
+muldd (double xh, double xl, double ch, double cl, double *l)
{
- int4 i[880];
- double x[440];
-} __sincostab attribute_hidden;
-
-static const double
- sn3 = -1.66666666666664880952546298448555E-01,
- sn5 = 8.33333214285722277379541354343671E-03,
- cs2 = 4.99999999999999999999950396842453E-01,
- cs4 = -4.16666666666664434524222570944589E-02,
- cs6 = 1.38888874007937613028114285595617E-03;
-
-/* Given a number partitioned into X and DX, this function computes the cosine
- of the number by combining the sin and cos of X (as computed by a variation
- of the Taylor series) with the values looked up from the sin/cos table to
- get the result. */
-static __always_inline double
-do_cos (double x, double dx)
-{
- mynumber u;
-
- if (x < 0)
- dx = -dx;
-
- u.x = big + fabs (x);
- x = fabs (x) - (u.x - big) + dx;
-
- double xx, s, sn, ssn, c, cs, ccs, cor;
- xx = x * x;
- s = x + x * xx * (sn3 + xx * sn5);
- c = xx * (cs2 + xx * (cs4 + xx * cs6));
- SINCOS_TABLE_LOOKUP (u, sn, ssn, cs, ccs);
- cor = (ccs - s * ssn - cs * c) - sn * s;
- return cs + cor;
+ double ahhh = xh * ch;
+ *l = (xh * cl + xl * ch) + fma (xh, ch, -ahhh);
+ return ahhh;
}
-/* Given a number partitioned into X and DX, this function computes the sine of
- the number by combining the sin and cos of X (as computed by a variation of
- the Taylor series) with the values looked up from the sin/cos table to get
- the result. */
-static __always_inline double
-do_sin (double x, double dx)
+/* Return the 128-bit number stored as { high, low } in A. */
+static inline u128
+u128_load (const uint64_t a[2])
{
- double xold = x;
- /* Max ULP is 0.501 if |x| < 0.126, otherwise ULP is 0.518. */
- if (fabs (x) < 0.126)
- return TAYLOR_SIN (x * x, x, dx);
-
- mynumber u;
-
- if (x <= 0)
- dx = -dx;
- u.x = big + fabs (x);
- x = fabs (x) - (u.x - big);
-
- double xx, s, sn, ssn, c, cs, ccs, cor;
- xx = x * x;
- s = x + (dx + x * xx * (sn3 + xx * sn5));
- c = x * dx + xx * (cs2 + xx * (cs4 + xx * cs6));
- SINCOS_TABLE_LOOKUP (u, sn, ssn, cs, ccs);
- cor = (ssn + s * ccs - sn * c) + cs * s;
- return copysign (sn + cor, xold);
+ return u128_from_hl (a[0], a[1]);
}
-/* Reduce range of x to within PI/2 with abs (x) < 105414350. The high part
- is written to *a, the low part to *da. Range reduction is accurate to 136
- bits so that when x is large and *a very close to zero, all 53 bits of *a
- are correct. */
-static __always_inline int4
-reduce_sincos (double x, double *a, double *da)
+static inline u128
+u128_mul64 (uint64_t a, uint64_t b)
{
- mynumber v;
-
- double t = (x * hpinv + toint);
- double xn = t - toint;
- v.x = t;
- double y = (x - xn * mp1) - xn * mp2;
- int4 n = v.i[LOW_HALF] & 3;
-
- double b, db, t1, t2;
- t1 = xn * pp3;
- t2 = y - t1;
- db = (y - t2) - t1;
-
- t1 = xn * pp4;
- b = t2 - t1;
- db += (t2 - b) - t1;
-
- *a = b;
- *da = db;
- return n;
+ return u128_mul (u128_from_u64 (a), u128_from_u64 (b));
}
-/* Compute sin or cos (A + DA) for the given quadrant N. */
-static __always_inline double
-do_sincos (double a, double da, int4 n)
+/* Round (-1)^s*r/2^128 to double, assuming r is non-zero and not in the
+ subnormal region. */
+static inline double
+u128_tod (u128 r, int s)
{
- double retval;
+ /* Since the smallest distance from a binary64 number to a multiple of
+ pi/2 is 2^-60.888 (see [1]), the smallest value of r/2^128 is about
+ 2^-60.888 too (taking into account approximation errors), thus
+ sh <= 60. This proves that the high part of r cannot be 0. */
+ unsigned int sh = stdc_leading_zeros (u128_high (r));
+ /* Upper 53 non-zero bits. */
+ uint64_t h = u128_low (u128_rshift (r, 75 - sh));
+ /* Round bit. */
+ int rbit = u128_low (u128_rshift (r, 74 - sh)) & 1;
+ static const double sgn[] = { 0x1p-53, -0x1p-53 };
+ /* Scale by 2^-sh. */
+ double v = asdouble (asuint64 (sgn[s]) - ((uint64_t) sh << MANTISSA_WIDTH));
+ static const double low[] = { 0x1.8p-2, 0x1.8p-1 };
+ double a = h * v, b = low[rbit] * v;
+ /* Assume sin(x) > 0, thus s=0. When rbit is 0, we have b < ulp(a)/2,
+ and the result is rounded to a to nearest, which is what we want.
+ When rbit is 1, we have b > ulp(a)/2, and the result is rounded to
+ nextup(a), which is what we want too. In both case it is proven in
+ sin.pdf that the approximation error cannot make the result cross a
+ rounding boundary, except maybe for hard-to-round cases, which are
+ checked by sin.wc. */
+ return a + b;
+}
- if (n & 1)
- /* Max ULP is 0.513. */
- retval = do_cos (a, da);
+/* This table approximates 1/(2pi) downwards with precision 1280:
+ 1/(2*pi) ~ T[0]/2^0 + T[1]/2^64 + ... + T[i]/2^(i*64) + ...
+ Computed with computeT() from sin.sage, with entry 0 added manually.
+ Entry 19 is only used in reduce_large_acc. */
+static const uint64_t T[20] =
+ {
+ 0, 0x28be60db9391054a, 0x7f09d5f47d4d3770, 0x36d8a5664f10e410,
+ 0x7f9458eaf7aef158, 0x6dc91b8e909374b8, 0x1924bba82746487,
+ 0x3f877ac72c4a69cf, 0xba208d7d4baed121, 0x3a671c09ad17df90,
+ 0x4e64758e60d4ce7d, 0x272117e2ef7e4a0e, 0xc7fe25fff7816603,
+ 0xfbcbc462d6829b47, 0xdb4d9fb3c9f2c26d, 0xd3d18fd9a797fa8b,
+ 0x5d49eeb1faf97c5e, 0xcf41ce7de294a4ba, 0x9afed7ec47e35742,
+ 0x1580cc11bf1edaea,
+ };
+
+/* The following is a degree-7 polynomial with odd coefficients
+ approximating sin(2*pi/8*x) for 0 <= x < 2^-11 with absolute error
+ < 2^-128.605. Coefficients of degree 1, 3, 5 are PS[i]/2^128, while
+ that of degree 7 is PS[i]/2^64 (fixed point). The coefficients of
+ degree 3 and 7 have an implicit minus sign. Generated with
+ sinlarge_acc.sollya. */
+static const uint64_t PS[4][2] =
+ {
+ { 0xc90fdaa22168c234, 0xc4c6628b80dbed80 },
+ { 0x14abbce625be52be, 0xabb8e5506ca45b03 },
+ { 0xa335e33bad570e, 0x44c54995bb97635 },
+ { 0, 0x265a5999d06c4 },
+ };
+
+/* The following is a degree-8 polynomial with even coefficients
+ approximating cos(2*pi/8*x) for 0 <= x < 2^-11, with absolute error
+ < 2^-128. Coefficients are PC[i]/2^128 (fixed precision), except the
+ degree-8 coefficient which is PC[i]/2^64. The coefficients of degree 2
+ and 6 have an implicit minus sign. Generated with coslarge_acc.sollya. */
+static const uint64_t PC[5][2] =
+ {
+ { 0xffffffffffffffff, 0xffffffffffffffff },
+ { 0x4ef4f326f9177969, 0x2b71366cbcf0b096 },
+ { 0x40f07c206d6b0ec, 0xd4c9076e3db78fed },
+ { 0x155d3c7e3cbef9, 0xeec6962368fb7c41 },
+ { 0, 0x3c3e845b5510 },
+ };
+
+/* Return the high 128 bits of the 256-bit product a*b, up to an error of
+ at most 2 ulps. */
+static inline u128
+mhUU (u128 a, u128 b)
+{
+ uint64_t ah = u128_high (a), al = u128_low (a);
+ uint64_t bh = u128_high (b), bl = u128_low (b);
+ u128 ahbh = u128_mul64 (ah, bh);
+ u128 ahbl = u128_mul64 (ah, bl);
+ u128 albh = u128_mul64 (al, bh);
+ return u128_add (ahbh, u128_add (u128_rshift (ahbl, 64),
+ u128_rshift (albh, 64)));
+}
+
+/* Return Sr such that Sr/2^128 approximates sin2pi(r), for 0 <= r < 2^-14,
+ where u/2^128 approximates r'=8*r, u2/2^128 approximates r'^2,
+ u4/2^128 approximates r'^4, and u2h = floor(u2/2^64). */
+static inline u128
+evalPS (u128 u, u128 u2, u128 u2h, u128 u4)
+{
+ /* The computation is performed in fixed point, where each variable a is
+ interpreted as a/2^128, thus multiplying two variables a and b means
+ taking floor(a*b/2^128). Since the signs of the coefficients are
+ alternating, and each new coefficient dominates the lower terms, the
+ lower terms are subtracted from the (absolute value of) the new
+ coefficient. Estrin's scheme is used: the degree-{1,3} part and the
+ degree-{5,7} part (multiplied by r^4) are evaluated separately. */
+ u128 sh = u128_sub (u128_load (PS[2]), u128_mul (u128_load (PS[3]), u2h));
+ sh = mhUU (sh, u4);
+ u128 s = mhUU (u128_load (PS[1]), u2);
+ s = u128_sub (u128_load (PS[0]), s);
+ s = u128_add (s, sh);
+ /* Multiply by r. */
+ return mhUU (s, u);
+}
+
+/* Return Cr such that Cr/2^128 approximates cos2pi(r), for 0 <= r < 2^-14,
+ where u2/2^128 approximates r'^2, u4/2^128 approximates r'^4, and
+ u2h = floor(u2/2^64), with r'=8*r. */
+static inline u128
+evalPC (u128 u2, u128 u2h, u128 u4)
+{
+ /* Estrin's scheme. */
+ u128 sh = u128_sub (u128_load (PC[3]), u128_mul (u2h, u128_load (PC[4])));
+ sh = u128_sub (u128_load (PC[2]), mhUU (sh, u2));
+ u128 s = mhUU (u128_load (PC[1]), u2);
+ s = u128_sub (u128_load (PC[0]), s);
+ return u128_add (s, mhUU (sh, u4));
+}
+
+/* Argument reduction for x >= 2^31 (x is assumed to be positive): return k
+ and r such that x/(2pi) mod 1 = k/2^15 + r + s with 0 <= r < 2^-15 and
+ 0 <= s < 2^-67.988. */
+static uint64_t
+reduce_large (double *r, double x)
+{
+ uint64_t t = asuint64 (x);
+ /* 1054 <= e <= 2046. */
+ int e = (t >> MANTISSA_WIDTH) & 0x7ff;
+ uint64_t m = (UINT64_C(1) << MANTISSA_WIDTH) | get_mantissa (t);
+ /* x = m * 2^(e-1075). T[j] corresponds to T[j]/2^(64*j) thus T[j]*x
+ corresponds to m*T[j]*2^(e-1075-64*j). To get a non-zero fractional
+ value, we need e-1075-64*j < 0, thus 64*j > e-1075 or 64*j >= e-1074.
+ i = ceil((e-1074)/64), 0 <= i <= 16. */
+ int i = (e - 1011) / 64;
+ int f = (e - 1011) & 0x3f;
+ /* The number of fractional bits from m*T[i] is 64-f, thus T[i] should be
+ shifted by f bits to get 64 fractional bits. */
+ uint64_t v0, v1;
+ if (f == 0)
+ {
+ v0 = T[i];
+ v1 = T[i + 1];
+ }
else
- /* Max ULP is 0.501 if xx < 0.01588, otherwise ULP is 0.518. */
- retval = do_sin (a, da);
-
- return (n & 2) ? -retval : retval;
+ {
+ v0 = (T[i] << f) | (T[i + 1] >> (64 - f));
+ v1 = (T[i + 1] << f) | (T[i + 2] >> (64 - f));
+ }
+ /* Computing directly u with 128-bit arithmetic from T[i], T[i+1] and
+ T[i+2] is slower (128-bit arithmetic is emulated). */
+ u128 u = u128_mul (u128_from_u64 (m), u128_from_hl (v0, v1));
+ /* Round r to nearest, where 0x810000000000000 = 2^59 + 2^52. */
+ u = u128_add (u, u128_from_hl (UINT64_C(1) << 48,
+ UINT64_C(0x810000000000000)));
+ /* The next 53 bits of u after the first 15. */
+ double h = u128_low (u128_rshift (u128_lshift (u, 15), 75));
+ *r = h * 0x1p-68 - 0x1p-16;
+ /* Since 15 bits are returned in i and 53 in h, the accuracy is at most
+ 2^-68. */
+ return u128_high (u) >> 49;
}
+/* For each j, 0 <= j < 128, U1[j] contains sh, sl, ch, cl where sh+sl is a
+ double-double approximation of sin(j*pi/2^7) and ch+cl is a double-double
+ approximation of cos(j*pi/2^7). Generated by U1() from sin.sage.
+ There are some symmetries: U1[i][0,1] = U1[128-i][0,1] and
+ U1[i][2,3] = -U1[128-i][2,3], but reducing the size of U1 to the first
+ half to exploit symmetries leads to slower code. */
+static const double U1[128][4] =
+ {
+ { 0x0p+0, 0x0p+0, 0x1p+0, 0x0p+0 },
+ { 0x1.92155f7a3667ep-6, -0x1.b1d63091a013p-64,
+ 0x1.ffd886084cd0dp-1, -0x1.1354d4556e4cbp-55 },
+ { 0x1.91f65f10dd814p-5, -0x1.912bd0d569a9p-61,
+ 0x1.ff621e3796d7ep-1, -0x1.c57bc2e24aa15p-57 },
+ { 0x1.2d52092ce19f6p-4, -0x1.9a088a8bf6b2cp-59,
+ 0x1.fe9cdad01883ap-1, 0x1.521ecd0c67e35p-57 },
+ { 0x1.917a6bc29b42cp-4, -0x1.e2718d26ed688p-60,
+ 0x1.fd88da3d12526p-1, -0x1.87df6378811c7p-55 },
+ { 0x1.f564e56a9730ep-4, 0x1.a2704729ae56dp-59,
+ 0x1.fc26470e19fd3p-1, 0x1.1ec8668ecaceep-55 },
+ { 0x1.2c8106e8e613ap-3, 0x1.13000a89a11ep-58,
+ 0x1.fa7557f08a517p-1, -0x1.7a0a8ca13571fp-55 },
+ { 0x1.5e214448b3fc6p-3, 0x1.531ff779ddac6p-57,
+ 0x1.f8764fa714ba9p-1, 0x1.ab256778ffcb6p-56 },
+ { 0x1.8f8b83c69a60bp-3, -0x1.26d19b9ff8d82p-57,
+ 0x1.f6297cff75cbp-1, 0x1.562172a361fd3p-56 },
+ { 0x1.c0b826a7e4f63p-3, -0x1.af1439e521935p-62,
+ 0x1.f38f3ac64e589p-1, -0x1.d7bafb51f72e6p-56 },
+ { 0x1.f19f97b215f1bp-3, -0x1.42deef11da2c4p-57,
+ 0x1.f0a7efb9230d7p-1, 0x1.52c7adc6b4989p-56 },
+ { 0x1.111d262b1f677p-2, 0x1.824c20ab7aa9ap-56,
+ 0x1.ed740e7684963p-1, 0x1.e82c791f59cc2p-56 },
+ { 0x1.294062ed59f06p-2, -0x1.5d28da2c4612dp-56,
+ 0x1.e9f4156c62ddap-1, 0x1.760b1e2e3f81ep-55 },
+ { 0x1.4135c94176601p-2, 0x1.0c97c4afa2518p-56,
+ 0x1.e6288ec48e112p-1, -0x1.16b56f2847754p-57 },
+ { 0x1.58f9a75ab1fddp-2, -0x1.efdc0d58cf62p-62,
+ 0x1.e212104f686e5p-1, -0x1.014c76c126527p-55 },
+ { 0x1.7088530fa459fp-2, -0x1.44b19e0864c5dp-56,
+ 0x1.ddb13b6ccc23cp-1, 0x1.83c37c6107db3p-55 },
+ { 0x1.87de2a6aea963p-2, -0x1.72cedd3d5a61p-57,
+ 0x1.d906bcf328d46p-1, 0x1.457e610231ac2p-56 },
+ { 0x1.9ef7943a8ed8ap-2, 0x1.6da81290bdbabp-57,
+ 0x1.d4134d14dc93ap-1, -0x1.4ef5295d25af2p-55 },
+ { 0x1.b5d1009e15ccp-2, 0x1.5b362cb974183p-57,
+ 0x1.ced7af43cc773p-1, -0x1.e7b6bb5ab58aep-58 },
+ { 0x1.cc66e9931c45ep-2, 0x1.6850e59c37f8fp-58,
+ 0x1.c954b213411f5p-1, -0x1.2fb761e946603p-58 },
+ { 0x1.e2b5d3806f63bp-2, 0x1.e0d891d3c6841p-58,
+ 0x1.c38b2f180bdb1p-1, -0x1.6e0b1757c8d07p-56 },
+ { 0x1.f8ba4dbf89abap-2, -0x1.2ec1fc1b776b8p-60,
+ 0x1.bd7c0ac6f952ap-1, -0x1.825a732ac700ap-55 },
+ { 0x1.073879922ffeep-1, -0x1.a5a014347406cp-55,
+ 0x1.b728345196e3ep-1, -0x1.bc69f324e6d61p-55 },
+ { 0x1.11eb3541b4b23p-1, -0x1.ef23b69abe4f1p-55,
+ 0x1.b090a581502p-1, -0x1.926da300ffccep-55 },
+ { 0x1.1c73b39ae68c8p-1, 0x1.b25dd267f66p-55,
+ 0x1.a9b66290ea1a3p-1, 0x1.9f630e8b6dac8p-60 },
+ { 0x1.26d054cdd12dfp-1, -0x1.5da743ef3770cp-55,
+ 0x1.a29a7a0462782p-1, -0x1.128bb015df175p-56 },
+ { 0x1.30ff7fce17035p-1, -0x1.efcc626f74a6fp-57,
+ 0x1.9b3e047f38741p-1, -0x1.30ee286712474p-55 },
+ { 0x1.3affa292050b9p-1, 0x1.e3e25e3954964p-56,
+ 0x1.93a22499263fbp-1, 0x1.3d419a920df0bp-55 },
+ { 0x1.44cf325091dd6p-1, 0x1.8076a2cfdc6b3p-57,
+ 0x1.8bc806b151741p-1, -0x1.2c5e12ed1336dp-55 },
+ { 0x1.4e6cabbe3e5e9p-1, 0x1.3c293edceb327p-57,
+ 0x1.83b0e0bff976ep-1, -0x1.6f420f8ea3475p-56 },
+ { 0x1.57d69348cecap-1, -0x1.75720992bfbb2p-55,
+ 0x1.7b5df226aafafp-1, -0x1.0f537acdf0ad7p-56 },
+ { 0x1.610b7551d2cdfp-1, -0x1.251b352ff2a37p-56,
+ 0x1.72d0837efff96p-1, 0x1.0d4ef0f1d915cp-55 },
+ { 0x1.6a09e667f3bcdp-1, -0x1.bdd3413b26456p-55,
+ 0x1.6a09e667f3bcdp-1, -0x1.bdd3413b26456p-55 },
+ { 0x1.72d0837efff96p-1, 0x1.0d4ef0f1d915cp-55,
+ 0x1.610b7551d2cdfp-1, -0x1.251b352ff2a37p-56 },
+ { 0x1.7b5df226aafafp-1, -0x1.0f537acdf0ad7p-56,
+ 0x1.57d69348cecap-1, -0x1.75720992bfbb2p-55 },
+ { 0x1.83b0e0bff976ep-1, -0x1.6f420f8ea3475p-56,
+ 0x1.4e6cabbe3e5e9p-1, 0x1.3c293edceb327p-57 },
+ { 0x1.8bc806b151741p-1, -0x1.2c5e12ed1336dp-55,
+ 0x1.44cf325091dd6p-1, 0x1.8076a2cfdc6b3p-57 },
+ { 0x1.93a22499263fbp-1, 0x1.3d419a920df0bp-55,
+ 0x1.3affa292050b9p-1, 0x1.e3e25e3954964p-56 },
+ { 0x1.9b3e047f38741p-1, -0x1.30ee286712474p-55,
+ 0x1.30ff7fce17035p-1, -0x1.efcc626f74a6fp-57 },
+ { 0x1.a29a7a0462782p-1, -0x1.128bb015df175p-56,
+ 0x1.26d054cdd12dfp-1, -0x1.5da743ef3770cp-55 },
+ { 0x1.a9b66290ea1a3p-1, 0x1.9f630e8b6dac8p-60,
+ 0x1.1c73b39ae68c8p-1, 0x1.b25dd267f66p-55 },
+ { 0x1.b090a581502p-1, -0x1.926da300ffccep-55,
+ 0x1.11eb3541b4b23p-1, -0x1.ef23b69abe4f1p-55 },
+ { 0x1.b728345196e3ep-1, -0x1.bc69f324e6d61p-55,
+ 0x1.073879922ffeep-1, -0x1.a5a014347406cp-55 },
+ { 0x1.bd7c0ac6f952ap-1, -0x1.825a732ac700ap-55,
+ 0x1.f8ba4dbf89abap-2, -0x1.2ec1fc1b776b8p-60 },
+ { 0x1.c38b2f180bdb1p-1, -0x1.6e0b1757c8d07p-56,
+ 0x1.e2b5d3806f63bp-2, 0x1.e0d891d3c6841p-58 },
+ { 0x1.c954b213411f5p-1, -0x1.2fb761e946603p-58,
+ 0x1.cc66e9931c45ep-2, 0x1.6850e59c37f8fp-58 },
+ { 0x1.ced7af43cc773p-1, -0x1.e7b6bb5ab58aep-58,
+ 0x1.b5d1009e15ccp-2, 0x1.5b362cb974183p-57 },
+ { 0x1.d4134d14dc93ap-1, -0x1.4ef5295d25af2p-55,
+ 0x1.9ef7943a8ed8ap-2, 0x1.6da81290bdbabp-57 },
+ { 0x1.d906bcf328d46p-1, 0x1.457e610231ac2p-56,
+ 0x1.87de2a6aea963p-2, -0x1.72cedd3d5a61p-57 },
+ { 0x1.ddb13b6ccc23cp-1, 0x1.83c37c6107db3p-55,
+ 0x1.7088530fa459fp-2, -0x1.44b19e0864c5dp-56 },
+ { 0x1.e212104f686e5p-1, -0x1.014c76c126527p-55,
+ 0x1.58f9a75ab1fddp-2, -0x1.efdc0d58cf62p-62 },
+ { 0x1.e6288ec48e112p-1, -0x1.16b56f2847754p-57,
+ 0x1.4135c94176601p-2, 0x1.0c97c4afa2518p-56 },
+ { 0x1.e9f4156c62ddap-1, 0x1.760b1e2e3f81ep-55,
+ 0x1.294062ed59f06p-2, -0x1.5d28da2c4612dp-56 },
+ { 0x1.ed740e7684963p-1, 0x1.e82c791f59cc2p-56,
+ 0x1.111d262b1f677p-2, 0x1.824c20ab7aa9ap-56 },
+ { 0x1.f0a7efb9230d7p-1, 0x1.52c7adc6b4989p-56,
+ 0x1.f19f97b215f1bp-3, -0x1.42deef11da2c4p-57 },
+ { 0x1.f38f3ac64e589p-1, -0x1.d7bafb51f72e6p-56,
+ 0x1.c0b826a7e4f63p-3, -0x1.af1439e521935p-62 },
+ { 0x1.f6297cff75cbp-1, 0x1.562172a361fd3p-56,
+ 0x1.8f8b83c69a60bp-3, -0x1.26d19b9ff8d82p-57 },
+ { 0x1.f8764fa714ba9p-1, 0x1.ab256778ffcb6p-56,
+ 0x1.5e214448b3fc6p-3, 0x1.531ff779ddac6p-57 },
+ { 0x1.fa7557f08a517p-1, -0x1.7a0a8ca13571fp-55,
+ 0x1.2c8106e8e613ap-3, 0x1.13000a89a11ep-58 },
+ { 0x1.fc26470e19fd3p-1, 0x1.1ec8668ecaceep-55,
+ 0x1.f564e56a9730ep-4, 0x1.a2704729ae56dp-59 },
+ { 0x1.fd88da3d12526p-1, -0x1.87df6378811c7p-55,
+ 0x1.917a6bc29b42cp-4, -0x1.e2718d26ed688p-60 },
+ { 0x1.fe9cdad01883ap-1, 0x1.521ecd0c67e35p-57,
+ 0x1.2d52092ce19f6p-4, -0x1.9a088a8bf6b2cp-59 },
+ { 0x1.ff621e3796d7ep-1, -0x1.c57bc2e24aa15p-57,
+ 0x1.91f65f10dd814p-5, -0x1.912bd0d569a9p-61 },
+ { 0x1.ffd886084cd0dp-1, -0x1.1354d4556e4cbp-55,
+ 0x1.92155f7a3667ep-6, -0x1.b1d63091a013p-64 },
+ { 0x1p+0, 0x0p+0, 0x0p+0, 0x0p+0 },
+ { 0x1.ffd886084cd0dp-1, -0x1.1354d4556e4cbp-55,
+ -0x1.92155f7a3667ep-6, 0x1.b1d63091a013p-64 },
+ { 0x1.ff621e3796d7ep-1, -0x1.c57bc2e24aa15p-57,
+ -0x1.91f65f10dd814p-5, 0x1.912bd0d569a9p-61 },
+ { 0x1.fe9cdad01883ap-1, 0x1.521ecd0c67e35p-57,
+ -0x1.2d52092ce19f6p-4, 0x1.9a088a8bf6b2cp-59 },
+ { 0x1.fd88da3d12526p-1, -0x1.87df6378811c7p-55,
+ -0x1.917a6bc29b42cp-4, 0x1.e2718d26ed688p-60 },
+ { 0x1.fc26470e19fd3p-1, 0x1.1ec8668ecaceep-55,
+ -0x1.f564e56a9730ep-4, -0x1.a2704729ae56dp-59 },
+ { 0x1.fa7557f08a517p-1, -0x1.7a0a8ca13571fp-55,
+ -0x1.2c8106e8e613ap-3, -0x1.13000a89a11ep-58 },
+ { 0x1.f8764fa714ba9p-1, 0x1.ab256778ffcb6p-56,
+ -0x1.5e214448b3fc6p-3, -0x1.531ff779ddac6p-57 },
+ { 0x1.f6297cff75cbp-1, 0x1.562172a361fd3p-56,
+ -0x1.8f8b83c69a60bp-3, 0x1.26d19b9ff8d82p-57 },
+ { 0x1.f38f3ac64e589p-1, -0x1.d7bafb51f72e6p-56,
+ -0x1.c0b826a7e4f63p-3, 0x1.af1439e521935p-62 },
+ { 0x1.f0a7efb9230d7p-1, 0x1.52c7adc6b4989p-56,
+ -0x1.f19f97b215f1bp-3, 0x1.42deef11da2c4p-57 },
+ { 0x1.ed740e7684963p-1, 0x1.e82c791f59cc2p-56,
+ -0x1.111d262b1f677p-2, -0x1.824c20ab7aa9ap-56 },
+ { 0x1.e9f4156c62ddap-1, 0x1.760b1e2e3f81ep-55,
+ -0x1.294062ed59f06p-2, 0x1.5d28da2c4612dp-56 },
+ { 0x1.e6288ec48e112p-1, -0x1.16b56f2847754p-57,
+ -0x1.4135c94176601p-2, -0x1.0c97c4afa2518p-56 },
+ { 0x1.e212104f686e5p-1, -0x1.014c76c126527p-55,
+ -0x1.58f9a75ab1fddp-2, 0x1.efdc0d58cf62p-62 },
+ { 0x1.ddb13b6ccc23cp-1, 0x1.83c37c6107db3p-55,
+ -0x1.7088530fa459fp-2, 0x1.44b19e0864c5dp-56 },
+ { 0x1.d906bcf328d46p-1, 0x1.457e610231ac2p-56,
+ -0x1.87de2a6aea963p-2, 0x1.72cedd3d5a61p-57 },
+ { 0x1.d4134d14dc93ap-1, -0x1.4ef5295d25af2p-55,
+ -0x1.9ef7943a8ed8ap-2, -0x1.6da81290bdbabp-57 },
+ { 0x1.ced7af43cc773p-1, -0x1.e7b6bb5ab58aep-58,
+ -0x1.b5d1009e15ccp-2, -0x1.5b362cb974183p-57 },
+ { 0x1.c954b213411f5p-1, -0x1.2fb761e946603p-58,
+ -0x1.cc66e9931c45ep-2, -0x1.6850e59c37f8fp-58 },
+ { 0x1.c38b2f180bdb1p-1, -0x1.6e0b1757c8d07p-56,
+ -0x1.e2b5d3806f63bp-2, -0x1.e0d891d3c6841p-58 },
+ { 0x1.bd7c0ac6f952ap-1, -0x1.825a732ac700ap-55,
+ -0x1.f8ba4dbf89abap-2, 0x1.2ec1fc1b776b8p-60 },
+ { 0x1.b728345196e3ep-1, -0x1.bc69f324e6d61p-55,
+ -0x1.073879922ffeep-1, 0x1.a5a014347406cp-55 },
+ { 0x1.b090a581502p-1, -0x1.926da300ffccep-55,
+ -0x1.11eb3541b4b23p-1, 0x1.ef23b69abe4f1p-55 },
+ { 0x1.a9b66290ea1a3p-1, 0x1.9f630e8b6dac8p-60,
+ -0x1.1c73b39ae68c8p-1, -0x1.b25dd267f66p-55 },
+ { 0x1.a29a7a0462782p-1, -0x1.128bb015df175p-56,
+ -0x1.26d054cdd12dfp-1, 0x1.5da743ef3770cp-55 },
+ { 0x1.9b3e047f38741p-1, -0x1.30ee286712474p-55,
+ -0x1.30ff7fce17035p-1, 0x1.efcc626f74a6fp-57 },
+ { 0x1.93a22499263fbp-1, 0x1.3d419a920df0bp-55,
+ -0x1.3affa292050b9p-1, -0x1.e3e25e3954964p-56 },
+ { 0x1.8bc806b151741p-1, -0x1.2c5e12ed1336dp-55,
+ -0x1.44cf325091dd6p-1, -0x1.8076a2cfdc6b3p-57 },
+ { 0x1.83b0e0bff976ep-1, -0x1.6f420f8ea3475p-56,
+ -0x1.4e6cabbe3e5e9p-1, -0x1.3c293edceb327p-57 },
+ { 0x1.7b5df226aafafp-1, -0x1.0f537acdf0ad7p-56,
+ -0x1.57d69348cecap-1, 0x1.75720992bfbb2p-55 },
+ { 0x1.72d0837efff96p-1, 0x1.0d4ef0f1d915cp-55,
+ -0x1.610b7551d2cdfp-1, 0x1.251b352ff2a37p-56 },
+ { 0x1.6a09e667f3bcdp-1, -0x1.bdd3413b26456p-55,
+ -0x1.6a09e667f3bcdp-1, 0x1.bdd3413b26456p-55 },
+ { 0x1.610b7551d2cdfp-1, -0x1.251b352ff2a37p-56,
+ -0x1.72d0837efff96p-1, -0x1.0d4ef0f1d915cp-55 },
+ { 0x1.57d69348cecap-1, -0x1.75720992bfbb2p-55,
+ -0x1.7b5df226aafafp-1, 0x1.0f537acdf0ad7p-56 },
+ { 0x1.4e6cabbe3e5e9p-1, 0x1.3c293edceb327p-57,
+ -0x1.83b0e0bff976ep-1, 0x1.6f420f8ea3475p-56 },
+ { 0x1.44cf325091dd6p-1, 0x1.8076a2cfdc6b3p-57,
+ -0x1.8bc806b151741p-1, 0x1.2c5e12ed1336dp-55 },
+ { 0x1.3affa292050b9p-1, 0x1.e3e25e3954964p-56,
+ -0x1.93a22499263fbp-1, -0x1.3d419a920df0bp-55 },
+ { 0x1.30ff7fce17035p-1, -0x1.efcc626f74a6fp-57,
+ -0x1.9b3e047f38741p-1, 0x1.30ee286712474p-55 },
+ { 0x1.26d054cdd12dfp-1, -0x1.5da743ef3770cp-55,
+ -0x1.a29a7a0462782p-1, 0x1.128bb015df175p-56 },
+ { 0x1.1c73b39ae68c8p-1, 0x1.b25dd267f66p-55,
+ -0x1.a9b66290ea1a3p-1, -0x1.9f630e8b6dac8p-60 },
+ { 0x1.11eb3541b4b23p-1, -0x1.ef23b69abe4f1p-55,
+ -0x1.b090a581502p-1, 0x1.926da300ffccep-55 },
+ { 0x1.073879922ffeep-1, -0x1.a5a014347406cp-55,
+ -0x1.b728345196e3ep-1, 0x1.bc69f324e6d61p-55 },
+ { 0x1.f8ba4dbf89abap-2, -0x1.2ec1fc1b776b8p-60,
+ -0x1.bd7c0ac6f952ap-1, 0x1.825a732ac700ap-55 },
+ { 0x1.e2b5d3806f63bp-2, 0x1.e0d891d3c6841p-58,
+ -0x1.c38b2f180bdb1p-1, 0x1.6e0b1757c8d07p-56 },
+ { 0x1.cc66e9931c45ep-2, 0x1.6850e59c37f8fp-58,
+ -0x1.c954b213411f5p-1, 0x1.2fb761e946603p-58 },
+ { 0x1.b5d1009e15ccp-2, 0x1.5b362cb974183p-57,
+ -0x1.ced7af43cc773p-1, 0x1.e7b6bb5ab58aep-58 },
+ { 0x1.9ef7943a8ed8ap-2, 0x1.6da81290bdbabp-57,
+ -0x1.d4134d14dc93ap-1, 0x1.4ef5295d25af2p-55 },
+ { 0x1.87de2a6aea963p-2, -0x1.72cedd3d5a61p-57,
+ -0x1.d906bcf328d46p-1, -0x1.457e610231ac2p-56 },
+ { 0x1.7088530fa459fp-2, -0x1.44b19e0864c5dp-56,
+ -0x1.ddb13b6ccc23cp-1, -0x1.83c37c6107db3p-55 },
+ { 0x1.58f9a75ab1fddp-2, -0x1.efdc0d58cf62p-62,
+ -0x1.e212104f686e5p-1, 0x1.014c76c126527p-55 },
+ { 0x1.4135c94176601p-2, 0x1.0c97c4afa2518p-56,
+ -0x1.e6288ec48e112p-1, 0x1.16b56f2847754p-57 },
+ { 0x1.294062ed59f06p-2, -0x1.5d28da2c4612dp-56,
+ -0x1.e9f4156c62ddap-1, -0x1.760b1e2e3f81ep-55 },
+ { 0x1.111d262b1f677p-2, 0x1.824c20ab7aa9ap-56,
+ -0x1.ed740e7684963p-1, -0x1.e82c791f59cc2p-56 },
+ { 0x1.f19f97b215f1bp-3, -0x1.42deef11da2c4p-57,
+ -0x1.f0a7efb9230d7p-1, -0x1.52c7adc6b4989p-56 },
+ { 0x1.c0b826a7e4f63p-3, -0x1.af1439e521935p-62,
+ -0x1.f38f3ac64e589p-1, 0x1.d7bafb51f72e6p-56 },
+ { 0x1.8f8b83c69a60bp-3, -0x1.26d19b9ff8d82p-57,
+ -0x1.f6297cff75cbp-1, -0x1.562172a361fd3p-56 },
+ { 0x1.5e214448b3fc6p-3, 0x1.531ff779ddac6p-57,
+ -0x1.f8764fa714ba9p-1, -0x1.ab256778ffcb6p-56 },
+ { 0x1.2c8106e8e613ap-3, 0x1.13000a89a11ep-58,
+ -0x1.fa7557f08a517p-1, 0x1.7a0a8ca13571fp-55 },
+ { 0x1.f564e56a9730ep-4, 0x1.a2704729ae56dp-59,
+ -0x1.fc26470e19fd3p-1, -0x1.1ec8668ecaceep-55 },
+ { 0x1.917a6bc29b42cp-4, -0x1.e2718d26ed688p-60,
+ -0x1.fd88da3d12526p-1, 0x1.87df6378811c7p-55 },
+ { 0x1.2d52092ce19f6p-4, -0x1.9a088a8bf6b2cp-59,
+ -0x1.fe9cdad01883ap-1, -0x1.521ecd0c67e35p-57 },
+ { 0x1.91f65f10dd814p-5, -0x1.912bd0d569a9p-61,
+ -0x1.ff621e3796d7ep-1, 0x1.c57bc2e24aa15p-57 },
+ { 0x1.92155f7a3667ep-6, -0x1.b1d63091a013p-64,
+ -0x1.ffd886084cd0dp-1, 0x1.1354d4556e4cbp-55 },
+ };
+
+/* For each j, 0 <= j < 128, U2[j] contains sh, sl, ch, cl where sh+sl is a
+ double-double approximation of sin(j*pi/2^14) and ch+cl is a double-double
+ approximation of cos(j*pi/2^14). Generated by U2() from sin.sage. */
+static const double U2[128][4] =
+ {
+ { 0x0p+0, 0x0p+0, 0x1p+0, 0x0p+0 },
+ { 0x1.921fb51aeb57cp-13, -0x1.a6e1d4916c435p-67,
+ 0x1.ffffff621619cp-1, -0x1.7507dbbbd8fe6p-55 },
+ { 0x1.921fb49ee4ea6p-12, 0x1.e894d744a453ep-66,
+ 0x1.fffffd8858675p-1, -0x1.79f0e54748eabp-55 },
+ { 0x1.2d97c6dc23a75p-11, -0x1.1c27727253849p-66,
+ 0x1.fffffa72c6e9dp-1, 0x1.ffa0e2a0e5c29p-56 },
+ { 0x1.921fb2aecb36p-11, 0x1.876157e566b4cp-65,
+ 0x1.fffff62161a34p-1, -0x1.136dcb1f9b9c4p-57 },
+ { 0x1.f6a79d8965ebap-11, -0x1.a2a951670a396p-65,
+ 0x1.fffff09428963p-1, 0x1.2f505fba9c0bp-55 },
+ { 0x1.2d97c396f8497p-10, -0x1.45cb4cc3d0fb1p-66,
+ 0x1.ffffe9cb1bc62p-1, 0x1.0fe9fa3478ec9p-56 },
+ { 0x1.5fdbb7af33fbbp-10, 0x1.c0c37a5d5101dp-65,
+ 0x1.ffffe1c63b373p-1, 0x1.a50f155e87e56p-55 },
+ { 0x1.921faaee6472ep-10, -0x1.ee52e284a9df8p-64,
+ 0x1.ffffd88586ee6p-1, 0x1.1af64f173ae5bp-55 },
+ { 0x1.c4639d358815ap-10, 0x1.0ffa0e86b4dccp-69,
+ 0x1.ffffce08fef16p-1, 0x1.92e420a03bf59p-58 },
+ { 0x1.f6a78e659d4b6p-10, 0x1.cb8a9b355ac8p-64,
+ 0x1.ffffc250a346ap-1, 0x1.d099c02280c58p-56 },
+ { 0x1.1475bf2fd13e2p-9, -0x1.4ae6ded9797ccp-63,
+ 0x1.ffffb55c73f56p-1, 0x1.ee2ae1596963ap-55 },
+ { 0x1.2d97b6824b087p-9, -0x1.9dae69dd4f97fp-63,
+ 0x1.ffffa72c7105bp-1, -0x1.564ec4a452371p-55 },
+ { 0x1.46b9ad1abb397p-9, -0x1.ac1b1950e9dc6p-64,
+ 0x1.ffff97c09a803p-1, -0x1.961ec991858f1p-56 },
+ { 0x1.5fdba2e9a1066p-9, 0x1.f1ed8abaaa608p-64,
+ 0x1.ffff8718f06e7p-1, 0x1.793938ee3fc9ap-57 },
+ { 0x1.78fd97df7ba51p-9, -0x1.2f2580c9ba856p-63,
+ 0x1.ffff753572dacp-1, -0x1.5df4d689b3227p-57 },
+ { 0x1.921f8becca4bap-9, 0x1.2ba407bcab5b2p-63,
+ 0x1.ffff621621d02p-1, -0x1.6acfcebc82813p-56 },
+ { 0x1.ab417f020c31p-9, 0x1.7fb6c9ae3781ap-65,
+ 0x1.ffff4dbafd5a6p-1, -0x1.d017de84ebc3fp-55 },
+ { 0x1.c463710fc08c9p-9, -0x1.f621bbef801cfp-64,
+ 0x1.ffff38240586p-1, -0x1.f949383d834ep-61 },
+ { 0x1.dd85620666965p-9, 0x1.5a1a4ecd8345ap-65,
+ 0x1.ffff21513a606p-1, 0x1.ee48b39cc31cfp-56 },
+ { 0x1.f6a751d67d871p-9, -0x1.66bdef183ff59p-63,
+ 0x1.ffff09429bf7ap-1, -0x1.cabd3ded13a63p-55 },
+ { 0x1.07e4a038424c1p-8, 0x1.7e6886ed9bec7p-63,
+ 0x1.fffeeff82a5a7p-1, 0x1.6efc1cf23e273p-55 },
+ { 0x1.147596e27d81fp-8, -0x1.bbfe9edba714ap-62,
+ 0x1.fffed571e5989p-1, 0x1.151c0e15503cfp-55 },
+ { 0x1.21068ce230028p-8, 0x1.6ce44ca79798dp-63,
+ 0x1.fffeb9afcdc25p-1, 0x1.32c5af9456b9fp-57 },
+ { 0x1.2d97822f996bcp-8, 0x1.3e5a15ed6aa3ep-62,
+ 0x1.fffe9cb1e2e8dp-1, -0x1.10f44663fd601p-55 },
+ { 0x1.3a2876c2f95cp-8, 0x1.03f5805a36f7ep-63,
+ 0x1.fffe7e78251dep-1, 0x1.89b8834c8800cp-55 },
+ { 0x1.46b96a948f72p-8, -0x1.3fbff884c87dap-65,
+ 0x1.fffe5f0294744p-1, 0x1.5e809bdc855fcp-55 },
+ { 0x1.534a5d9c9b4dp-8, -0x1.8653d3b3f3bf5p-62,
+ 0x1.fffe3e5130ff5p-1, 0x1.8d94f3d6ca2d6p-57 },
+ { 0x1.5fdb4fd35c8cbp-8, -0x1.4b73d73e9b437p-62,
+ 0x1.fffe1c63fad33p-1, 0x1.429d08eb02c47p-55 },
+ { 0x1.6c6c413112d15p-8, -0x1.c66913985b2a8p-63,
+ 0x1.fffdf93af204ep-1, -0x1.4ade22d9f9483p-56 },
+ { 0x1.78fd31adfdbbap-8, -0x1.03bf7bee2893dp-64,
+ 0x1.fffdd4d616aap-1, -0x1.422710e8c8595p-55 },
+ { 0x1.858e21425cecfp-8, -0x1.5af2befb31c3cp-63,
+ 0x1.fffdaf3568d9p-1, 0x1.99c62dc3a22acp-58 },
+ { 0x1.921f0fe670071p-8, 0x1.ab967fe6b7a9bp-64,
+ 0x1.fffd8858e8a92p-1, 0x1.359c71883bcf7p-55 },
+ { 0x1.9eaffd9276ac8p-8, -0x1.558e4e5ccafc7p-62,
+ 0x1.fffd604096326p-1, -0x1.7d6bdd1c1f436p-60 },
+ { 0x1.ab40ea3eb0803p-8, -0x1.7fe2a8e15f257p-67,
+ 0x1.fffd36ec718d7p-1, -0x1.5c59ffcfba7e4p-56 },
+ { 0x1.b7d1d5e35d25dp-8, 0x1.9cfe67f192cd7p-62,
+ 0x1.fffd0c5c7ad3dp-1, -0x1.19d99906d21e9p-55 },
+ { 0x1.c462c078bc41bp-8, 0x1.9f6db9a6ada3cp-62,
+ 0x1.fffce090b21fcp-1, -0x1.0389138f7e5efp-55 },
+ { 0x1.d0f3a9f70d78cp-8, -0x1.a08e48b732df4p-65,
+ 0x1.fffcb389178c4p-1, 0x1.2883b1fe7d578p-56 },
+ { 0x1.dd84925690709p-8, -0x1.0441c939bd6dap-62,
+ 0x1.fffc8545ab352p-1, 0x1.61157c68f984bp-55 },
+ { 0x1.ea15798f84cf7p-8, -0x1.bd41d0fe0c595p-62,
+ 0x1.fffc55c66d36fp-1, -0x1.ab98d6fcf9cd6p-58 },
+ { 0x1.f6a65f9a2a3c6p-8, -0x1.de8c48783f3aep-62,
+ 0x1.fffc250b5daefp-1, -0x1.13b48657081cdp-55 },
+ { 0x1.019ba237602f9p-7, -0x1.2479c7145927dp-61,
+ 0x1.fffbf3147cbb3p-1, -0x1.6a078c1216e21p-55 },
+ { 0x1.07e41402c3701p-7, -0x1.93e58a2a04d27p-67,
+ 0x1.fffbbfe1ca7a8p-1, -0x1.698b82e41cfaep-56 },
+ { 0x1.0e2c852b5eb46p-7, -0x1.9b8495e4ec41dp-61,
+ 0x1.fffb8b73470c8p-1, -0x1.bc4e4be396442p-55 },
+ { 0x1.1474f5ad51d17p-7, -0x1.a0fb850f9330dp-62,
+ 0x1.fffb55c8f2917p-1, 0x1.6af540576eb51p-55 },
+ { 0x1.1abd6584bc9cbp-7, 0x1.21b927d9670ccp-61,
+ 0x1.fffb1ee2cd2a9p-1, -0x1.3ee83959a5f1dp-56 },
+ { 0x1.2105d4adbeecp-7, 0x1.4e6ed5742dcf7p-61,
+ 0x1.fffae6c0d6f9ap-1, -0x1.102fd2cb5b72p-56 },
+ { 0x1.274e43247895ap-7, -0x1.46ca3539434eap-63,
+ 0x1.fffaad6310214p-1, 0x1.b8629443a759ap-55 },
+ { 0x1.2d96b0e509703p-7, -0x1.1e9131ff52dc9p-63,
+ 0x1.fffa72c978c4fp-1, -0x1.22cb000328f91p-55 },
+ { 0x1.33df1deb9152dp-7, 0x1.f5fb935dbf892p-62,
+ 0x1.fffa36f41108bp-1, 0x1.55d1c829905c6p-57 },
+ { 0x1.3a278a3430152p-7, -0x1.2c26d82855518p-63,
+ 0x1.fff9f9e2d9118p-1, 0x1.102f90f3495ep-57 },
+ { 0x1.406ff5bb058f1p-7, 0x1.6e66ff4bcd327p-61,
+ 0x1.fff9bb95d105p-1, 0x1.7fb680db05f83p-55 },
+ { 0x1.46b8607c31993p-7, 0x1.91d1ac2a2ced6p-61,
+ 0x1.fff97c0cf909bp-1, -0x1.b418b1f88cf02p-57 },
+ { 0x1.4d00ca73d40c8p-7, -0x1.fae7469c8dbd1p-61,
+ 0x1.fff93b485146bp-1, -0x1.43e02406fb373p-55 },
+ { 0x1.5349339e0cc25p-7, -0x1.ec016ea8e8f27p-64,
+ 0x1.fff8f947d9e3fp-1, -0x1.2cefd02ebe75cp-59 },
+ { 0x1.59919bf6fb94bp-7, -0x1.1ca7261e51e18p-62,
+ 0x1.fff8b60b930a3p-1, 0x1.97dbe1fdcab9p-56 },
+ { 0x1.5fda037ac05e1p-7, -0x1.ff59bf4b574eep-61,
+ 0x1.fff871937ce2fp-1, -0x1.38dae49f0be32p-57 },
+ { 0x1.66226a257af95p-7, 0x1.3cd7a66dfafc8p-61,
+ 0x1.fff82bdf97986p-1, -0x1.507b1e2913e3bp-57 },
+ { 0x1.6c6acff34b421p-7, 0x1.b03798bbe7197p-63,
+ 0x1.fff7e4efe3558p-1, 0x1.ebe425d873a16p-57 },
+ { 0x1.72b334e051144p-7, 0x1.caf2df425ef35p-62,
+ 0x1.fff79cc460462p-1, -0x1.6c8d94412b92ap-55 },
+ { 0x1.78fb98e8ac4c8p-7, -0x1.555202816f3a5p-61,
+ 0x1.fff7535d0e96bp-1, -0x1.c5727ff41299bp-56 },
+ { 0x1.7f43fc087cc7dp-7, 0x1.00a2a3a85d253p-61,
+ 0x1.fff708b9ee748p-1, -0x1.7ff8f5cefe85ap-60 },
+ { 0x1.858c5e3be264p-7, -0x1.ee9c7105192d8p-62,
+ 0x1.fff6bcdb000dap-1, -0x1.65348e4f5cd16p-57 },
+ { 0x1.8bd4bf7efcff3p-7, 0x1.66640846e6109p-63,
+ 0x1.fff66fc04390dp-1, 0x1.77f5704f2756cp-55 },
+ { 0x1.921d1fcdec784p-7, 0x1.9878ebe836d9dp-61,
+ 0x1.fff62169b92dbp-1, 0x1.5dda3c81fbd0dp-55 },
+ { 0x1.98657f24d0aeap-7, 0x1.11d4d1d1806d2p-61,
+ 0x1.fff5d1d761149p-1, 0x1.e7b86f31e2875p-63 },
+ { 0x1.9eaddd7fc9825p-7, -0x1.5adb5adfd3669p-62,
+ 0x1.fff581093b768p-1, -0x1.3eeee9513ae4cp-55 },
+ { 0x1.a4f63adaf6d3ep-7, -0x1.f838d8dd726dcp-64,
+ 0x1.fff52eff48855p-1, -0x1.514532e82de3fp-57 },
+ { 0x1.ab3e973278849p-7, 0x1.35b145a18353cp-61,
+ 0x1.fff4dbb98873ap-1, 0x1.857663dc92252p-55 },
+ { 0x1.b186f2826e765p-7, -0x1.6b3b32921e88cp-61,
+ 0x1.fff48737fb74ep-1, -0x1.d462b0c1681e7p-58 },
+ { 0x1.b7cf4cc6f88b8p-7, -0x1.32c6a4623533p-62,
+ 0x1.fff4317aa1bd2p-1, -0x1.6a0039355b637p-55 },
+ { 0x1.be17a5fc36a75p-7, 0x1.c404548edfc51p-63,
+ 0x1.fff3da817b814p-1, -0x1.2b464e14730cp-55 },
+ { 0x1.c45ffe1e48ad9p-7, 0x1.4060e4bd32e79p-63,
+ 0x1.fff3824c88f6fp-1, -0x1.ed820f3fe698p-55 },
+ { 0x1.caa855294e82bp-7, 0x1.eca8fa79834dep-66,
+ 0x1.fff328dbca549p-1, -0x1.6ca1af321dc1cp-55 },
+ { 0x1.d0f0ab19680bdp-7, -0x1.e9c612f8a4102p-64,
+ 0x1.fff2ce2f3fd15p-1, -0x1.62ccf8bdb122fp-56 },
+ { 0x1.d738ffeab52ecp-7, -0x1.c110bc5257c8cp-62,
+ 0x1.fff27246e9a52p-1, -0x1.16d6346f3f55fp-59 },
+ { 0x1.dd81539955d2p-7, -0x1.eaf6d880c7f01p-61,
+ 0x1.fff21522c808bp-1, 0x1.a190e2d2eaf6ep-56 },
+ { 0x1.e3c9a62169dcbp-7, 0x1.6666333e35e32p-61,
+ 0x1.fff1b6c2db358p-1, -0x1.f4664a9ad833cp-56 },
+ { 0x1.ea11f77f1136ep-7, -0x1.7a617506aacb8p-62,
+ 0x1.fff157272365bp-1, 0x1.44ef64386476p-57 },
+ { 0x1.f05a47ae6bc91p-7, -0x1.0935bb936be66p-64,
+ 0x1.fff0f64fa0d45p-1, -0x1.ac9acb9bb8d2dp-56 },
+ { 0x1.f6a296ab997cbp-7, -0x1.f2943d8fe7033p-61,
+ 0x1.fff0943c53bd1p-1, -0x1.47399f361d158p-55 },
+ { 0x1.fceae472ba3bcp-7, -0x1.3a08b1804396p-64,
+ 0x1.fff030ed3c5c7p-1, -0x1.2504b1dc047e8p-55 },
+ { 0x1.0199987ff6f89p-6, 0x1.8daccef2e2556p-60,
+ 0x1.ffefcc625aefbp-1, 0x1.fbb0dd6af1603p-59 },
+ { 0x1.04bdbe27aa444p-6, 0x1.0c87a06c6956dp-60,
+ 0x1.ffef669bafb4ep-1, -0x1.b5a4e5318177bp-58 },
+ { 0x1.07e1e32e86f72p-6, -0x1.f40145dde0463p-60,
+ 0x1.ffeeff993aeacp-1, -0x1.99db334be163bp-58 },
+ { 0x1.0b0607929d07ap-6, 0x1.f989b780d54e7p-61,
+ 0x1.ffee975afcd0ep-1, -0x1.2df82b9320ecdp-55 },
+ { 0x1.0e2a2b51fc6cep-6, -0x1.2ca118aaa212fp-61,
+ 0x1.ffee2de0f5a78p-1, 0x1.9daa217acc1bp-58 },
+ { 0x1.114e4e6ab51e2p-6, 0x1.10d53d5e0ffc5p-62,
+ 0x1.ffedc32b25afcp-1, -0x1.bb89d7b0d4487p-64 },
+ { 0x1.147270dad7133p-6, 0x1.8769e00e018p-63,
+ 0x1.ffed57398d2b7p-1, -0x1.0bb0db6384cf3p-55 },
+ { 0x1.179692a072443p-6, 0x1.d40c977f2fe27p-60,
+ 0x1.ffecea0c2c5d2p-1, -0x1.7a22a10e4cb4fp-55 },
+ { 0x1.1abab3b996a9dp-6, -0x1.e21a2ef2391d3p-60,
+ 0x1.ffec7ba303882p-1, 0x1.b209ec7100e1ap-56 },
+ { 0x1.1dded424543cep-6, 0x1.2ecdb3d03a70bp-61,
+ 0x1.ffec0bfe12f0ap-1, 0x1.8b1483b4090edp-56 },
+ { 0x1.2102f3debaf6fp-6, -0x1.45a1ea37e10eap-62,
+ 0x1.ffeb9b1d5adb7p-1, 0x1.d5b363c2f437p-55 },
+ { 0x1.242712e6dad1cp-6, 0x1.0317d8ce1d1b9p-60,
+ 0x1.ffeb2900db8e4p-1, 0x1.18f6a66301d6p-57 },
+ { 0x1.274b313ac3c7ap-6, 0x1.b29e49acf7e7ep-60,
+ 0x1.ffeab5a8954f6p-1, 0x1.0652cfe4cebfap-55 },
+ { 0x1.2a6f4ed885d35p-6, -0x1.5a8a13d8f9966p-60,
+ 0x1.ffea41148866p-1, 0x1.b77e2735c69f9p-55 },
+ { 0x1.2d936bbe30efdp-6, 0x1.b5f91ee371d64p-61,
+ 0x1.ffe9cb44b51a1p-1, 0x1.5b43366df667p-56 },
+ { 0x1.30b787e9d518dp-6, 0x1.b620c940df42ap-60,
+ 0x1.ffe954391bb43p-1, 0x1.ddd5377beef1ap-56 },
+ { 0x1.33dba359824a6p-6, -0x1.6c4020b5f32a8p-61,
+ 0x1.ffe8dbf1bc7dep-1, -0x1.cc391831cbcdp-55 },
+ { 0x1.36ffbe0b4880ep-6, 0x1.4b88026f4e07bp-61,
+ 0x1.ffe8626e97c13p-1, 0x1.cdb27525fcaf7p-56 },
+ { 0x1.3a23d7fd37b96p-6, -0x1.dd9e849a0a5d5p-60,
+ 0x1.ffe7e7afadc94p-1, -0x1.db1225b06b02cp-55 },
+ { 0x1.3d47f12d5ff12p-6, 0x1.add51eab25dd4p-60,
+ 0x1.ffe76bb4fee1ap-1, -0x1.0c43dae9e89c6p-57 },
+ { 0x1.406c0999d1263p-6, -0x1.cf7cbeea1ddcfp-61,
+ 0x1.ffe6ee7e8b56ep-1, 0x1.7ecac48a7b7bcp-58 },
+ { 0x1.439021409b56cp-6, 0x1.81352c74c7ae2p-62,
+ 0x1.ffe6700c53764p-1, -0x1.4f502302afd49p-55 },
+ { 0x1.46b4381fce81bp-6, 0x1.ff9f89fb65be3p-60,
+ 0x1.ffe5f05e578dbp-1, -0x1.b71f7469ecc13p-56 },
+ { 0x1.49d84e357aa66p-6, -0x1.9143373e36698p-61,
+ 0x1.ffe56f7497ecp-1, -0x1.ddf92a8d40b3p-55 },
+ { 0x1.4cfc637fafc48p-6, -0x1.a3541bb15d5bap-60,
+ 0x1.ffe4ed4f14e0ap-1, 0x1.e48478b2f0ba1p-56 },
+ { 0x1.502077fc7ddc5p-6, 0x1.25236a8347d96p-60,
+ 0x1.ffe469edcebbfp-1, 0x1.8fc7557d6bc53p-55 },
+ { 0x1.53448ba9f4eebp-6, 0x1.e6adde30ec695p-61,
+ 0x1.ffe3e550c5cfp-1, -0x1.58fb3ae72192ep-55 },
+ { 0x1.56689e8624fcep-6, -0x1.b967a2d3ee5b3p-61,
+ 0x1.ffe35f77fa6b8p-1, -0x1.a7661b121429ap-57 },
+ { 0x1.598cb08f1e089p-6, 0x1.56f9c34c216b4p-60,
+ 0x1.ffe2d8636ce41p-1, 0x1.b4243168ab5a4p-57 },
+ { 0x1.5cb0c1c2f0142p-6, 0x1.c2c42ac4d436cp-60,
+ 0x1.ffe250131d8cp-1, 0x1.ed2d09d5789d3p-55 },
+ { 0x1.5fd4d21fab226p-6, -0x1.0c0a91c37851cp-61,
+ 0x1.ffe1c6870cb77p-1, 0x1.89aa14768323ep-55 },
+ { 0x1.62f8e1a35f369p-6, -0x1.44ab93e20133fp-60,
+ 0x1.ffe13bbf3abb3p-1, 0x1.6721eee289b1dp-55 },
+ { 0x1.661cf04c1c548p-6, 0x1.3d6cc7ce6ff57p-60,
+ 0x1.ffe0afbba7ecep-1, 0x1.6ecd981464044p-57 },
+ { 0x1.6940fe17f280bp-6, -0x1.84bf8988cc42p-60,
+ 0x1.ffe0227c54a2dp-1, 0x1.eeed1d70e13e2p-55 },
+ { 0x1.6c650b04f1bfep-6, 0x1.53e382471fa0cp-69,
+ 0x1.ffdf940141344p-1, -0x1.a63fc248c2dacp-55 },
+ { 0x1.6f8917112a179p-6, 0x1.b6de0ad6e9445p-60,
+ 0x1.ffdf044a6df8fp-1, -0x1.798cfb498d8b1p-55 },
+ { 0x1.72ad223aab8ddp-6, -0x1.cf17a0ad13b4ap-60,
+ 0x1.ffde7357db499p-1, 0x1.09337deb3ff5ap-59 },
+ { 0x1.75d12c7f8629p-6, -0x1.07d8473495aaep-60,
+ 0x1.ffdde129897f9p-1, 0x1.44e8786dedb6bp-55 },
+ { 0x1.78f535ddc9f04p-6, 0x1.b194ad9b1aa97p-61,
+ 0x1.ffdd4dbf78f52p-1, 0x1.216679a26323dp-55 },
+ { 0x1.7c193e5386eb4p-6, 0x1.725118c2860e7p-63,
+ 0x1.ffdcb919aa053p-1, -0x1.55c1ce37ae6f6p-56 },
+ { 0x1.7f3d45decd222p-6, 0x1.2fe8cfe80809dp-60,
+ 0x1.ffdc23381d0b6p-1, 0x1.00d15f9603fedp-57 },
+ { 0x1.82614c7dac9dbp-6, 0x1.e95f011ac18c6p-63,
+ 0x1.ffdb8c1ad2643p-1, 0x1.e79471744a0cbp-56 },
+ { 0x1.8585522e35674p-6, -0x1.d5a766c5894c1p-60,
+ 0x1.ffdaf3c1ca6cep-1, -0x1.9c0f0834fa422p-56 },
+ { 0x1.88a956ee7788ap-6, 0x1.19dfbd12ff726p-61,
+ 0x1.ffda5a2d05835p-1, 0x1.6dbc405ff8e25p-55 },
+ { 0x1.8bcd5abc830c7p-6, -0x1.f7d609f14a311p-60,
+ 0x1.ffd9bf5c84066p-1, -0x1.35167a6ce828dp-55 },
+ { 0x1.8ef15d9667fdap-6, -0x1.668dc9ba82a7p-60,
+ 0x1.ffd9235046557p-1, -0x1.c3c6e16616fb2p-56 },
+ };
+
+static const double pih = -0x1.921fb54442d18p-13;
+static const double pil = -0x1.1a62633145c07p-67;
+
+/* Argument reduction for the accurate path: return k and r such that
+ x/(2pi) mod 1 = k/2^13 + r/2^128 + eps with |r/2^128| <= 2^-14 and
+ 0 <= eps < 2^-128 + 2^-139 < 2^-127.999. NEG is set to 0 if r >= 0,
+ and to 1 if r < 0. */
+static uint64_t
+reduce_large_acc (u128 *r, int *neg, double x)
+{
+ uint64_t t = asuint64 (x);
+ /* 1007 <= e <= 2046. */
+ int e = (t >> MANTISSA_WIDTH) & 0x7ff;
+ uint64_t m = (UINT64_C(1) << MANTISSA_WIDTH) | get_mantissa (t);
+ /* x = m * 2^(e-1075). T[j] corresponds to T[j]/2^(64*j) thus T[j]*x
+ corresponds to m*T[j]*2^(e-1075-64*j). To get a non-zero fractional
+ value, we need e-1075-64*j < 0, thus 64*j > e-1075 or 64*j >= e-1074.
+ i = ceil((e-1074)/64), -1 <= i <= 16. */
+ int i = -1 + (e - 947) / 64;
+ int f = (e - 1011) & 0x3f;
+ /* Shift the table entries. */
+ uint64_t v0 = (i >= 0) ? T[i] : 0, v1 = T[i + 1], v2 = T[i + 2];
+ if (f != 0)
+ {
+ v0 = (v0 << f) | (v1 >> (64 - f));
+ v1 = (v1 << f) | (v2 >> (64 - f));
+ v2 = (v2 << f) | (T[i + 3] >> (64 - f));
+ }
+ /* m*v0 contributes to 64 bits to the fractional part of x/(2pi), from
+ weight 2^-1 to 2^-64, m*v1 contributes to 53+64 bits from weight 2^-12
+ to 2^-128, m*v2 contributes to 53+64 bits from weight 2^-76 to 2^-192,
+ the ignored part m*(v3+v4+...) contributes to less than 2^-139. */
+ u128 u = u128_mul (u128_from_u64 (m), u128_from_hl (v0, v1));
+ u128 v = u128_mul64 (m, v2);
+ /* Add the contribution of m*v2 from 2^-76 to 2^-128, the ignored part of
+ v contributes to less than 2^-128. */
+ u = u128_add (u, u128_rshift (v, 64));
+ uint64_t k = u128_high (u) >> (64 - 13);
+ /* Ignore the leading 13 bits. */
+ u = u128_from_hl (u128_high (u) & UINT64_C(0x7ffffffffffff), u128_low (u));
+ /* Round k to nearest to have |r/2^128| < 2^-14. */
+ *neg = u128_high (u) >> 50;
+ if (*neg)
+ {
+ /* Add 1 to k and subtract 1/2^13 to r. */
+ k = (k + 1) & ((UINT64_C(1) << 13) - 1);
+ u = u128_sub (u128_from_hl (UINT64_C(1) << 51, 0), u);
+ }
+ *r = u;
+ return k;
+}
+
+/* For 0 <= i <= 32, S1u[i] contains a 128-bit unsigned integer m such that
+ m/2^128 approximates sin(pi*i/2^6) to nearest. The entry for i=32 is
+ capped to 2^128-1. Generated by computeS1u() from sin.sage (truncated to
+ the first 33 entries). */
+static const uint64_t S1u[33][2] =
+ {
+ { 0x0, 0x0 },
+ { 0xc8fb2f886ec09f3, 0x76a17954b2b7c517 },
+ { 0x1917a6bc29b42be1, 0xd8e72d912977ee71 },
+ { 0x259020dd1cc27444, 0xc002a2684781f080 },
+ { 0x31f17078d34c156c, 0x9732300393f33614 },
+ { 0x3e33f2f642be355e, 0x90887712e9dc9663 },
+ { 0x4a5018bb567c16a2, 0xd725d3b9ed35fbaa },
+ { 0x563e69d6ac7f73f8, 0x408fca9cc277fc1f },
+ { 0x61f78a9abaa58b46, 0x98916152cf7eee1c },
+ { 0x6d744027857300ad, 0x9b165cba0c171818 },
+ { 0x78ad74e01bd8ec78, 0x362474f1a105878f },
+ { 0x839c3cc917ff6cb4, 0xbfd79717f2880abf },
+ { 0x8e39d9cd73464364, 0xbba4cfecbff54867 },
+ { 0x987fbfe70b81a708, 0x19cec845ac87a5c6 },
+ { 0xa267992848eeb0c0, 0x3b5167ee359a234e },
+ { 0xabeb49a46764fd15, 0x1becda8089c1a94c },
+ { 0xb504f333f9de6484, 0x597d89b3754abe9f },
+ { 0xbdaef913557d76f0, 0xac85320f528d6d5d },
+ { 0xc5e40358a8ba05a7, 0x43da25d99267326b },
+ { 0xcd9f023f9c3a059e, 0x23af31db7179a4aa },
+ { 0xd4db3148750d1819, 0xf630e8b6dac83e69 },
+ { 0xdb941a28cb71ec87, 0x2c19b63253da43fc },
+ { 0xe1c5978c05ed8691, 0xf4e8a8372f8c5810 },
+ { 0xe76bd7a1e63b9786, 0x125129529d48a92f },
+ { 0xec835e79946a3145, 0x7e610231ac1d6181 },
+ { 0xf1090827b43725fd, 0x67127db35b287316 },
+ { 0xf4fa0ab6316ed2ec, 0x163c5c7f03b718c5 },
+ { 0xf853f7dc9186b952, 0xc7adc6b4988891bb },
+ { 0xfb14be7fbae58156, 0x2172a361fd2a722f },
+ { 0xfd3aabf84528b50b, 0xeae6bd951c1dabbe },
+ { 0xfec46d1e89292cf0, 0x41390efdc726e9ef },
+ { 0xffb10f1bcb6bef1d, 0x421e8edaaf59453e },
+ { 0xffffffffffffffff, 0xffffffffffffffff },
+ };
+
+/* For 0 <= i < 64, S2u[i] contains a 128-bit unsigned integer m such that
+ m/2^128 approximates sin(pi*i/2^12) to nearest. Generated by
+ computeS2u() from sin.sage. */
+static const uint64_t S2u[64][2] =
+ {
+ { 0x0, 0x0 },
+ { 0x3243f655d966c0, 0xc3b0abf2b35a62f8 },
+ { 0x6487eabb991cb6, 0x11ad1d7b5620834a },
+ { 0x96cbdb41258434, 0xc4a32c4560d01e70 },
+ { 0xc90fc5f66525d2, 0x57480f7956b64707 },
+ { 0xfb53a8eb3ec385, 0x328421cf8014d698 },
+ { 0x12d97822f996bc4, 0xf96857b5aa8f6208 },
+ { 0x15fdb4fd35c8caa, 0xd230a30592f25049 },
+ { 0x1921f0fe6700711, 0xab967fe6b7a9b037 },
+ { 0x1c462c078bc41b6, 0x7db6e69ab68f0d10 },
+ { 0x1f6a65f9a2a3c58, 0x85cede1f0314607b },
+ { 0x228e9eb5aa3a2d9, 0x7c11ebc1b33cafb5 },
+ { 0x25b2d61ca12e05d, 0xc2dd9c015a46e767 },
+ { 0x28d70c0f863326c, 0x8e8d6151676ae94d },
+ { 0x2bfb406f580bc10, 0x53205a54588f0ab },
+ { 0x2f1f731d15898f5, 0x556febf4862da970 },
+ { 0x3243a3f9bd8f08c, 0xc3c75f41b6ce7aa8 },
+ { 0x3567d2e64f10929, 0xad8a2d0c1a9e3a8c },
+ { 0x388bffc3c915b22, 0x80c1c97a65cf2291 },
+ { 0x3bb02a732aba3f0, 0xa8493bf9c07f7765 },
+ { 0x3ed452d5732f950, 0x6b5e1380c7e6bddb },
+ { 0x41f878cba1bdc60, 0xbfeba221fb9d05be },
+ { 0x451c9c36b5c4cc3, 0xed3c01c030008bb },
+ { 0x4840bcf7aebdbba, 0xe97857207bc589da },
+ { 0x4b64daef8c3bf4d, 0xafc8f71b8eb233ee },
+ { 0x4e88f5ff4dee562, 0x2617b65f5a2a8f5a },
+ { 0x51ad0e07f3a06df, 0xf9f89fb65be2a455 },
+ { 0x54d122ea7d3bacf, 0x356ef187634a531d },
+ { 0x57f53487eac8977, 0x9fab71e43d71e2b7 },
+ { 0x5b1942c13c6ff80, 0xa9f1c1238fd05d5 },
+ { 0x5e3d4d77727c10d, 0x8ca56cd8d54b97f0 },
+ { 0x6161548b8d59ce2, 0xa58993a76b3f4ffe },
+ { 0x648557de8d99f7e, 0x4e29cf6e5fed0679 },
+ { 0x67a9575173f263a, 0xf1fc3edb7a0f1757 },
+ { 0x6acd52c5413f26d, 0x51b86c83422cbab4 },
+ { 0x6df14a1af683c83, 0x4e68e062eb177e2d },
+ { 0x71153d3394ec722, 0x9c28010f1c93a252 },
+ { 0x74392bf01dcf247, 0x5bcb8fd41cb1096f },
+ { 0x775d163192ace62, 0x9ac20c033d7f5cc3 },
+ { 0x7a80fbd8f532f78, 0xb8654aa824578975 },
+ { 0x7da4dcc7473c03f, 0xb00590e675e4e556 },
+ { 0x80c8b8dd8ad153d, 0x46f0804dae5f13ba },
+ { 0x83ec8ffcc22bfe5, 0x1db725856ff8c284 },
+ { 0x87106205efb61b6, 0xa3f67ad05a5be69e },
+ { 0x8a342eda160bf5a, 0xede5b1068d174bea },
+ { 0x8d57f65a37fd3c2, 0x6aed92d34c17df54 },
+ { 0x907bb867588e342, 0x7c8c5732d89e910b },
+ { 0x939f74e27af8eb2, 0xecc93966728e412d },
+ { 0x96c32baca2ae68b, 0x437b2dd49d5fca3c },
+ { 0x99e6dca6d357dff, 0xf9a60c93317892c4 },
+ { 0x9d0a87b210d7e1f, 0x8a318ba775fd7b04 },
+ { 0xa02e2caf5f4b8ef, 0x5f3d645e787b94f2 },
+ { 0xa351cb7fc30bc88, 0x9b56007d16d4ad5a },
+ { 0xa675640440ae634, 0xbdcd0d6bb4b9cd3e },
+ { 0xa998f61ddd0758a, 0x217954ed6093c44c },
+ { 0xacbc81ad9d29f88, 0x55213c653bfb79b7 },
+ { 0xafe00694866a1b4, 0x4cd34d2751c2e1da },
+ { 0xb30384b39e5d534, 0x6b7029d39efd7682 },
+ { 0xb626fbebeadc1ec, 0x63a95642f565102f },
+ { 0xb94a6c1e7203198, 0xefb8391d83d6da18 },
+ { 0xbc6dd52c3a342eb, 0x5f10bfca3d646401 },
+ { 0xbf9136f64a17ca4, 0xf9530f050886d756 },
+ { 0xc2b4915da89e0b2, 0x35bfac0f965612e2 },
+ { 0xc5d7e4435cfff45, 0xc6718c1dfd2aa612 },
+ };
+
+/* Table C1u is not needed, since cos(x) = sin(pi/2+x) for 0 <= x < pi/2,
+ and cos(x) = -sin(x-pi/2) for pi/2 <= x < pi, thus
+ C1u[i] = S1u[32+i] for 0 <= i < 32, and C1u[i] = -S1u[i-32] for
+ 32 <= i < 64. */
+
+/* For 0 <= i < 64, C2u[i] contains a 128-bit unsigned integer m such that
+ m/2^128 approximates cos(pi*i/2^12) to nearest. Generated by
+ computeC2u() from sin.sage. */
+static const uint64_t C2u[64][2] =
+ {
+ { 0xffffffffffffffff, 0xffffffffffffffff },
+ { 0xfffffb10b0d19f76, 0x491a703231e0a12e },
+ { 0xffffec42c3773235, 0xec9e2e75cb525f2c },
+ { 0xffffd3963882d553, 0x6276b75b91de105e },
+ { 0xffffb10b10e80e95, 0x3031437d7eccb9df },
+ { 0xffff84a14dfbcc6a, 0x858425d8b397dee6 },
+ { 0xffff4e58f17465de, 0x177338053fd93920 },
+ { 0xffff0e31fd699a85, 0x3a11d60588d8b96e },
+ { 0xfffec42c7454926b, 0x38e310779edfec68 },
+ { 0xfffe7048590fddf8, 0xedd8e1034213f22b },
+ { 0xfffe1285aed775d8, 0x96f351efc65556cf },
+ { 0xfffdaae47948bad5, 0xea80aedd6a19710f },
+ { 0xfffd3964bc6275ba, 0x69fff9ae0dedb047 },
+ { 0xfffcbe067c84d725, 0xf3a703b987eca44a },
+ { 0xfffc38c9be717763, 0x928db07a0e70ba36 },
+ { 0xfffba9ae874b563a, 0x8d800bed6653dcba },
+ { 0xfffb10b4dc96dabb, 0xb47903f7a19f8ee2 },
+ { 0xfffa6ddcc439d30a, 0xecc7b9244a48eb19 },
+ { 0xfff9c126447b7424, 0xfbe18032d0016082 },
+ { 0xfff90a91640459a1, 0x90e2d2eaf6da4d1e },
+ { 0xfff84a1e29de8571, 0x8cc193c5d508e13f },
+ { 0xfff77fcc9d755f99, 0x89332d07a713477e },
+ { 0xfff6ab9cc695b5e8, 0x9e4938f661aa140c },
+ { 0xfff5cd8ead6dbbab, 0x66c785e86dfbb75f },
+ { 0xfff4e5a25a8d095b, 0x43366df666fd54ff },
+ { 0xfff3f3d7d6e49c49, 0xdbb49f29fa872a83 },
+ { 0xfff2f82f2bc6d648, 0xe08b96133ecce0bd },
+ { 0xfff1f2a862e77d4e, 0x98a31bcda3def20 },
+ { 0xfff0e343865bbb13, 0x5428ed0647c9e5d1 },
+ { 0xffefca00a09a1cb3, 0x807b6e7a4a723dae },
+ { 0xffeea6dfbc7a9242, 0xccf344c647917821 },
+ { 0xffed79e0e5366e63, 0xf0f7cb05bde024f1 },
+ { 0xffec4304266865d9, 0x5657552366961732 },
+ { 0xffeb02498c0c8f12, 0x9195e99fbca2f10a },
+ { 0xffe9b7b1228061b6, 0x191df31aaa6f7f45 },
+ { 0xffe8633af682b627, 0x3b57790bf77b6b2d },
+ { 0xffe704e71533c508, 0x53aa9423bb0adc21 },
+ { 0xffe59cb58c1526b9, 0x3e71f7d99688082a },
+ { 0xffe42aa66909d2d2, 0xbe28fbec7cfb8a6 },
+ { 0xffe2aeb9ba561f99, 0xf1ed54343fe7be24 },
+ { 0xffe128ef8e9fc17a, 0x7d209f32d42d864e },
+ { 0xffdf9947f4edca6f, 0x8e6ee05573d420 },
+ { 0xffddffc2fca8a970, 0x44bd28b8d85b530a },
+ { 0xffdc5c60b59a29dc, 0x75a8951fc304b914 },
+ { 0xffdaaf212fed72db, 0x4fd8f038449ec436 },
+ { 0xffd8f8047c2f06be, 0x8c9611f0b1d8f023 },
+ { 0xffd7370aab4cc25e, 0x8d3cd437dc7fa9d2 },
+ { 0xffd56c33ce95dc73, 0x45bd035edb0a65f5 },
+ { 0xffd3977ff7bae4e9, 0x664649b4d541b9c5 },
+ { 0xffd1b8ef38cdc433, 0xc42aac754bedcfde },
+ { 0xffcfd081a441ba99, 0x1fd552bf146b4a6 },
+ { 0xffcdde374ceb5f7d, 0x76f487bb853a6989 },
+ { 0xffcbe2104600a0a9, 0x5595ca3f421ae09c },
+ { 0xffc9dc0ca318c18b, 0x11b369083a7a62e5 },
+ { 0xffc7cc2c782c5a76, 0x5c2a6019679e41f },
+ { 0xffc5b26fd99557dd, 0x579207cfe424dcb7 },
+ { 0xffc38ed6dc0ef98b, 0x1c676208aa3be545 },
+ { 0xffc1616194b5d1d3, 0xbc8d54e81d94f831 },
+ { 0xffbf2a101907c4c5, 0x965827f33d906c7c },
+ { 0xffbce8e27ee40754, 0xe0aa07fcb29eef39 },
+ { 0xffba9dd8dc8b1e83, 0xccfed60a91097c48 },
+ { 0xffb848f3489ede86, 0xe907d9a298ab1feb },
+ { 0xffb5ea31da2269e5, 0xbfdfce09aea7ac02 },
+ { 0xffb38194a87a3097, 0xbadfe70a1ef51116 },
+ };
+
+/* Accurate path for |x| >= 2^-16. */
+static double __attribute__ ((noinline, cold))
+sin_large_accurate (double x)
+{
+ u128 r;
+ int neg;
+ uint64_t k = reduce_large_acc (&r, &neg, x);
+
+ /* Replace r by 8*r. */
+ r = u128_lshift (r, 3);
+ u128 u2 = mhUU (r, r), u4 = mhUU (u2, u2);
+ u128 u2h = u128_rshift (u2, 64);
+
+ /* x/(2*pi) mod 1 = k/2^13 + r + eps with |r| <= 2^-14 and
+ 0 <= eps < 2^-127.999 then
+ sin(x) ~ sin(pi*k/2^12 + 2*pi*r)
+ ~ sin(pi*k/2^12)*cos(2*pi*r) + cos(pi*k/2^12)*sin(2*pi*r)
+ Write k = 2^12*s + 2^6*i1 + i2 and t1=pi*i1/2^6, t2 = pi*i2/2^12
+ then sin(pi*k/2^12) = (-1)^s*[sin(t1)*cos(t2)+cos(t1)*sin(t2)]
+ and cos(pi*k/2^12) = (-1)^s*[cos(t1)*cos(t2)-sin(t1)*sin(t2)]. */
+ int sbit = (x > 0) ? 0 : 1;
+ sbit = sbit ^ (k >> 12);
+ int i1 = (k >> 6) & 0x3f, i2 = k & 0x3f;
+
+ /* Approximate |sin(z)| in s1u/2^128, using sin(pi-x) = sin(x). */
+ u128 s1 = u128_load ((i1 <= 32) ? S1u[i1] : S1u[64 - i1]);
+ /* Since cos(x) = sin(x+pi/2), |C1u[i1]| = |S1u[(i1+32) mod 64]|. */
+ u128 c1 = u128_load ((i1 <= 32) ? S1u[32 - i1] : S1u[i1 - 32]);
+ u128 s1u = mhUU (s1, u128_load (C2u[i2]));
+ u128 t = mhUU (c1, u128_load (S2u[i2]));
+ /* s1u/2^128 approximates sin(t1)*cos(t2), and t/2^128 approximates (up
+ to sign) sin(t2)*cos(t1), thus s1u +/- t approximates sin(z=t1+t2), but
+ since sin(z) >= 0 (0 <= z < pi), s1u +/- t >= 0. */
+ s1u = (i1 < 32) ? u128_add (s1u, t) : u128_sub (s1u, t);
+
+ /* Approximate cos(z) in c1u/2^128. */
+ u128 c1u = mhUU (c1, u128_load (C2u[i2]));
+ t = mhUU (s1, u128_load (S2u[i2]));
+ c1u = (i1 < 32) ? u128_sub (c1u, t) : u128_add (c1u, t);
+
+ /* Sr/2^128 approximates |sin(2*pi*r)| and Cr/2^128 approximates
+ cos(2*pi*r). */
+ u128 Sr = evalPS (r, u2, u2h, u4);
+ u128 Cr = evalPC (u2, u2h, u4);
+
+ /* Now combine: sin(x) ~ s1*C + c1*S. */
+ s1u = mhUU (s1u, Cr);
+ c1u = mhUU (c1u, Sr);
+
+ /* s1u/2^128 approximates sin(z)*cos(r) which is always >= 0, while
+ c1u/2^128 approximates cos(z)*sin(r), where cos(z) > 0 for i1 < 32,
+ and cos(z) <= 0 for i1 >= 32, and sign(r) has the sign of r. */
+ if ((i1 < 32) ^ neg)
+ /* cos(z) * r > 0. */
+ s1u = u128_add (s1u, c1u);
+ else if (u128_lt (s1u, c1u))
+ {
+ s1u = u128_sub (c1u, s1u);
+ sbit ^= 1;
+ }
+ else
+ s1u = u128_sub (s1u, c1u);
+ return u128_tod (s1u, sbit);
+}
+
+/* Accurate path for |x| < 2^-16. */
+static inline double
+sin_small_accurate (double x)
+{
+ /* x + (c3h+c3l)*x^3 + c5*x^5 approximates sin(x) on [0,2^-16] with
+ relative error < 2^-112.743, cf sinsmall_acc.sollya, where c3h = c[0],
+ c3l = c[1] and c5 = c[2]. */
+ static const double c[] =
+ {
+ -0x1.5555555555555p-3, -0x1.55554b00de7e8p-57, 0x1.111111110848p-7
+ };
+ double h, l, t, x2h = x * x, x2l = fma (x, x, -x2h);
+ /* Relative error less than ulp(c5*x^4)/ulp(x) ~ 2^-123. */
+ h = c[2] * x2h;
+ /* Relative error less than ulp(c3l*x^2)/ulp(x) ~ 2^-141. */
+ h += c[1];
+ h = fasttwosum (c[0], h, &l);
+ h = muldd (h, l, x2h, x2l, &l);
+ h = muldd (h, l, x, 0, &l);
+ h = fasttwosum (x, h, &t);
+ l += t;
+ return h + l;
+}
+
+/* Fast path for 2^-26 < |x| < 2^31, where sbit is the sign bit of x (0 for
+ x > 0, 1 for x < 0). See the proof of correctness in sin.pdf. */
+static inline double
+sin_moderate (double x, int sbit)
+{
+ double ax = fabs (x);
+ /* |invpi/2^14 - 1/pi| < 2^-55.496. */
+ static const double invpi = 0x1.45f306dc9c883p+12;
+ double k = roundeven_finite (invpi * ax);
+ /* |2^14*(pih + pil) + pi| < 2^-108.041, and rh is exact. */
+ double rh = fma (k, pih, ax), rl = k * pil;
+
+ /* |r| < 2^-13.339 (see sin.pdf). */
+ double r = rh + rl;
+ double r2 = r * r;
+ int64_t j = k;
+ /* Reduction by an odd multiple of pi? */
+ sbit ^= (j >> 14) & 1;
+ int i1 = (j >> 7) & 0x7f, i2 = j & 0x7f;
+ double s1h, s1l, s2h, s2l;
+ s1h = muldd (U1[i1][0], U1[i1][1], U2[i2][2], U2[i2][3], &s1l);
+ s2h = muldd (U2[i2][0], U2[i2][1], U1[i1][2], U1[i1][3], &s2l);
+ double Sh, Sl;
+ Sh = fastsum (s1h, s1l, s2h, s2l, &Sl);
+ double Ch = U1[i1][2] * U2[i2][2] - U1[i1][0] * U2[i2][0];
+
+ /* For |r| <= 2^-13.339, the polynomial r - 0x1.55555553068fp-3 * r^3
+ approximates sin(r) with absolute error < 2^-76.494, and the polynomial
+ -0.5 * r^2 + 0x1.55555553bfd3p-5 * r^4 approximates cos(r)-1 with
+ absolute error < 2^-92.723 (cf sinmoderate.sollya). */
+ double sh = r * (1.0 - 0x1.55555553068fp-3 * r2);
+ double ch = r2 * (-0.5 + 0x1.55555553bfd3p-5 * r2);
+ double fh = Sh, fl = Sl + Sh * ch + Ch * sh;
+ static const double sgn[] = { 1.0, -1.0 };
+ fh = sgn[sbit] * fh;
+ fl = sgn[sbit] * fl;
+ static const double eps = 0x1.dep-64;
+ double lb = fh + (fl - eps), ub = fh + (fl + eps);
+ if (__glibc_likely (ub == lb))
+ return lb;
+ if (ax < 0x1p-16)
+ return sin_small_accurate (x);
+ return sin_large_accurate (x);
+}
+
+/* Fast path for |x| >= 2^31. */
+static double __attribute__ ((noinline))
+sin_large (double x)
+{
+ double ax = fabs (x);
+ double r;
+ /* Now x/(2pi) ~ k + j/2^15 + r with 0 <= r < 2^-15. */
+ uint64_t j = reduce_large (&r, ax);
+ int sbit = (x > 0) ? 0 : 1;
+
+ double r2 = r * r;
+ /* Reduction by an odd multiple of pi? */
+ sbit = sbit ^ (j >> 14);
+ int i1 = (j >> 7) & 0x7f, i2 = j & 0x7f;
+ double s1h, s1l, s2h, s2l;
+ s1h = muldd (U1[i1][0], U1[i1][1], U2[i2][2], U2[i2][3], &s1l);
+ s2h = muldd (U2[i2][0], U2[i2][1], U1[i1][2], U1[i1][3], &s2l);
+ double Sh, Sl;
+ Sh = fastsum (s1h, s1l, s2h, s2l, &Sl);
+ double Ch = U1[i1][2] * U2[i2][2] - U1[i1][0] * U2[i2][0];
+
+ double sh = r * (0x1.921fb54442d18p2 - 0x1.4abbcdb6b26d1p5 * r2);
+ double ch = r2 * (-0x1.3bd3cc9be45dep4 + 0x1.03c1eee483083p6 * r2);
+ double fh = Sh, fl = Sl + Sh * ch + Ch * sh;
+ static const double sgn[] = { 1.0, -1.0 };
+ fh = sgn[sbit] * fh;
+ fl = sgn[sbit] * fl;
+ /* Fails with eps=0x1.7fp-64 and x=0x1.54a9ad28f0a25p+225 (rounding toward
+ zero, no FMA). */
+ static const double eps = 0x1.01p-63;
+ double lb = fh + (fl - eps), ub = fh + (fl + eps);
+ if (__glibc_likely (lb == ub))
+ return lb;
+ return sin_large_accurate (x);
+}
-/*******************************************************************/
-/* An ultimate sin routine. Given an IEEE double machine number x */
-/* it computes the rounded value of sin(x). */
-/*******************************************************************/
-double
SECTION
+double
__sin (double x)
{
- double t, a, da;
- mynumber u;
- int4 k, m, n;
- double retval = 0;
-
- SET_RESTORE_ROUND_53BIT (FE_TONEAREST);
-
- u.x = x;
- m = u.i[HIGH_HALF];
- k = 0x7fffffff & m; /* no sign */
- if (k < 0x3e500000) /* if x->0 =>sin(x)=x */
+ uint64_t t = asuint64 (x);
+ int e = (t >> MANTISSA_WIDTH) & 0x7ff;
+ /* Deal with tiny x to avoid underflow. */
+ if (__glibc_unlikely (e < EXPONENT_BIAS - 26))
{
- math_check_force_underflow (x);
- retval = x;
+ /* For |x| < 2^-26, |sin(x) - x| < 1/2 ulp. */
+ if ((t << 1) == 0)
+ return x;
+ /* The Taylor expansion of sin(x) is x - x^3/6 around zero. There is
+ an underflow when 0 < |x| < 2^-1022 or when |x| = 2^-1022 and
+ rounding towards zero. */
+ return __math_check_uflow_lt (fma (x, -0x1p-54, x), 0x1p-1022);
}
-/*--------------------------- 2^-26<|x|< 0.855469---------------------- */
- else if (k < 0x3feb6000)
- {
- /* Max ULP is 0.548. */
- retval = do_sin (x, 0);
- } /* else if (k < 0x3feb6000) */
-
-/*----------------------- 0.855469 <|x|<2.426265 ----------------------*/
- else if (k < 0x400368fd)
- {
- t = hp0 - fabs (x);
- /* Max ULP is 0.51. */
- retval = copysign (do_cos (t, hp1), x);
- } /* else if (k < 0x400368fd) */
-
-/*-------------------------- 2.426265<|x|< 105414350 ----------------------*/
- else if (k < 0x419921FB)
- {
- n = reduce_sincos (x, &a, &da);
- retval = do_sincos (a, da, n);
- } /* else if (k < 0x419921FB ) */
-
-/* --------------------105414350 <|x| <2^1024------------------------------*/
- else if (k < 0x7ff00000)
- {
- double y[2];
- n = __ieee754_rem_pio2 (x, y);
- retval = do_sincos (y[0], y[1], n);
- }
-/*--------------------- |x| > 2^1024 ----------------------------------*/
- else
- {
- if (k == 0x7ff00000 && u.i[LOW_HALF] == 0)
- __set_errno (EDOM);
- retval = x / x;
- }
-
- return retval;
+ /* |x| < 2^31. */
+ if (__glibc_likely (e < EXPONENT_BIAS + 31))
+ return sin_moderate (x, t >> 63);
+ /* NaN, +Inf and -Inf. */
+ if (__glibc_unlikely (e == 0x7ff))
+ return __math_invalid (x);
+ /* Now |x| >= 2^31. */
+ return sin_large (x);
}
-
#ifndef __sin
libm_alias_double (__sin, sin)
#endif
--
2.53.0
More information about the Libc-alpha
mailing list