| 1 |
/* |
| 2 |
* // Copyright (c) Radzivon Bartoshyk 6/2025. All rights reserved. |
| 3 |
* // |
| 4 |
* // Redistribution and use in source and binary forms, with or without modification, |
| 5 |
* // are permitted provided that the following conditions are met: |
| 6 |
* // |
| 7 |
* // 1. Redistributions of source code must retain the above copyright notice, this |
| 8 |
* // list of conditions and the following disclaimer. |
| 9 |
* // |
| 10 |
* // 2. Redistributions in binary form must reproduce the above copyright notice, |
| 11 |
* // this list of conditions and the following disclaimer in the documentation |
| 12 |
* // and/or other materials provided with the distribution. |
| 13 |
* // |
| 14 |
* // 3. Neither the name of the copyright holder nor the names of its |
| 15 |
* // contributors may be used to endorse or promote products derived from |
| 16 |
* // this software without specific prior written permission. |
| 17 |
* // |
| 18 |
* // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| 19 |
* // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 20 |
* // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 21 |
* // DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| 22 |
* // FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 23 |
* // DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| 24 |
* // SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 25 |
* // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| 26 |
* // OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 |
* // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 |
*/ |
| 29 |
|
| 30 |
/** |
| 31 |
Generated by Sollya: |
| 32 |
```python |
| 33 |
print("[") |
| 34 |
for k in range(128): |
| 35 |
k = RealField(150)(k) * RealField(150).pi() / RealField(150)(64) |
| 36 |
print_double_double("", k.sin()) |
| 37 |
print("];") |
| 38 |
``` |
| 39 |
**/ |
| 40 |
pub(crate) static SINPI_K_PI_OVER_64: [(u64, u64); 128] = [ |
| 41 |
(0x0000000000000000, 0x0000000000000000), |
| 42 |
(0xbc2912bd0d569a90, 0x3fa91f65f10dd814), |
| 43 |
(0xbc3e2718d26ed688, 0x3fb917a6bc29b42c), |
| 44 |
(0x3c513000a89a11e0, 0x3fc2c8106e8e613a), |
| 45 |
(0xbc626d19b9ff8d82, 0x3fc8f8b83c69a60b), |
| 46 |
(0xbc642deef11da2c4, 0x3fcf19f97b215f1b), |
| 47 |
(0xbc75d28da2c4612d, 0x3fd294062ed59f06), |
| 48 |
(0xbc1efdc0d58cf620, 0x3fd58f9a75ab1fdd), |
| 49 |
(0xbc672cedd3d5a610, 0x3fd87de2a6aea963), |
| 50 |
(0x3c65b362cb974183, 0x3fdb5d1009e15cc0), |
| 51 |
(0x3c5e0d891d3c6841, 0x3fde2b5d3806f63b), |
| 52 |
(0xbc8a5a014347406c, 0x3fe073879922ffee), |
| 53 |
(0x3c8b25dd267f6600, 0x3fe1c73b39ae68c8), |
| 54 |
(0xbc6efcc626f74a6f, 0x3fe30ff7fce17035), |
| 55 |
(0x3c68076a2cfdc6b3, 0x3fe44cf325091dd6), |
| 56 |
(0xbc875720992bfbb2, 0x3fe57d69348ceca0), |
| 57 |
(0xbc8bdd3413b26456, 0x3fe6a09e667f3bcd), |
| 58 |
(0xbc70f537acdf0ad7, 0x3fe7b5df226aafaf), |
| 59 |
(0xbc82c5e12ed1336d, 0x3fe8bc806b151741), |
| 60 |
(0xbc830ee286712474, 0x3fe9b3e047f38741), |
| 61 |
(0x3c39f630e8b6dac8, 0x3fea9b66290ea1a3), |
| 62 |
(0xbc8bc69f324e6d61, 0x3feb728345196e3e), |
| 63 |
(0xbc76e0b1757c8d07, 0x3fec38b2f180bdb1), |
| 64 |
(0xbc5e7b6bb5ab58ae, 0x3feced7af43cc773), |
| 65 |
(0x3c7457e610231ac2, 0x3fed906bcf328d46), |
| 66 |
(0xbc8014c76c126527, 0x3fee212104f686e5), |
| 67 |
(0x3c8760b1e2e3f81e, 0x3fee9f4156c62dda), |
| 68 |
(0x3c752c7adc6b4989, 0x3fef0a7efb9230d7), |
| 69 |
(0x3c7562172a361fd3, 0x3fef6297cff75cb0), |
| 70 |
(0xbc87a0a8ca13571f, 0x3fefa7557f08a517), |
| 71 |
(0xbc887df6378811c7, 0x3fefd88da3d12526), |
| 72 |
(0xbc6c57bc2e24aa15, 0x3feff621e3796d7e), |
| 73 |
(0x0000000000000000, 0x3ff0000000000000), |
| 74 |
(0xbc6c57bc2e24aa15, 0x3feff621e3796d7e), |
| 75 |
(0xbc887df6378811c7, 0x3fefd88da3d12526), |
| 76 |
(0xbc87a0a8ca13571f, 0x3fefa7557f08a517), |
| 77 |
(0x3c7562172a361fd3, 0x3fef6297cff75cb0), |
| 78 |
(0x3c752c7adc6b4989, 0x3fef0a7efb9230d7), |
| 79 |
(0x3c8760b1e2e3f81e, 0x3fee9f4156c62dda), |
| 80 |
(0xbc8014c76c126527, 0x3fee212104f686e5), |
| 81 |
(0x3c7457e610231ac2, 0x3fed906bcf328d46), |
| 82 |
(0xbc5e7b6bb5ab58ae, 0x3feced7af43cc773), |
| 83 |
(0xbc76e0b1757c8d07, 0x3fec38b2f180bdb1), |
| 84 |
(0xbc8bc69f324e6d61, 0x3feb728345196e3e), |
| 85 |
(0x3c39f630e8b6dac8, 0x3fea9b66290ea1a3), |
| 86 |
(0xbc830ee286712474, 0x3fe9b3e047f38741), |
| 87 |
(0xbc82c5e12ed1336d, 0x3fe8bc806b151741), |
| 88 |
(0xbc70f537acdf0ad7, 0x3fe7b5df226aafaf), |
| 89 |
(0xbc8bdd3413b26456, 0x3fe6a09e667f3bcd), |
| 90 |
(0xbc875720992bfbb2, 0x3fe57d69348ceca0), |
| 91 |
(0x3c68076a2cfdc6b3, 0x3fe44cf325091dd6), |
| 92 |
(0xbc6efcc626f74a6f, 0x3fe30ff7fce17035), |
| 93 |
(0x3c8b25dd267f6600, 0x3fe1c73b39ae68c8), |
| 94 |
(0xbc8a5a014347406c, 0x3fe073879922ffee), |
| 95 |
(0x3c5e0d891d3c6841, 0x3fde2b5d3806f63b), |
| 96 |
(0x3c65b362cb974183, 0x3fdb5d1009e15cc0), |
| 97 |
(0xbc672cedd3d5a610, 0x3fd87de2a6aea963), |
| 98 |
(0xbc1efdc0d58cf620, 0x3fd58f9a75ab1fdd), |
| 99 |
(0xbc75d28da2c4612d, 0x3fd294062ed59f06), |
| 100 |
(0xbc642deef11da2c4, 0x3fcf19f97b215f1b), |
| 101 |
(0xbc626d19b9ff8d82, 0x3fc8f8b83c69a60b), |
| 102 |
(0x3c513000a89a11e0, 0x3fc2c8106e8e613a), |
| 103 |
(0xbc3e2718d26ed688, 0x3fb917a6bc29b42c), |
| 104 |
(0xbc2912bd0d569a90, 0x3fa91f65f10dd814), |
| 105 |
(0xb331056713b19377, 0xb69f77598338bfdf), |
| 106 |
(0x3c2912bd0d569a90, 0xbfa91f65f10dd814), |
| 107 |
(0x3c3e2718d26ed688, 0xbfb917a6bc29b42c), |
| 108 |
(0xbc513000a89a11e0, 0xbfc2c8106e8e613a), |
| 109 |
(0x3c626d19b9ff8d82, 0xbfc8f8b83c69a60b), |
| 110 |
(0x3c642deef11da2c4, 0xbfcf19f97b215f1b), |
| 111 |
(0x3c75d28da2c4612d, 0xbfd294062ed59f06), |
| 112 |
(0x3c1efdc0d58cf620, 0xbfd58f9a75ab1fdd), |
| 113 |
(0x3c672cedd3d5a610, 0xbfd87de2a6aea963), |
| 114 |
(0xbc65b362cb974183, 0xbfdb5d1009e15cc0), |
| 115 |
(0xbc5e0d891d3c6841, 0xbfde2b5d3806f63b), |
| 116 |
(0x3c8a5a014347406c, 0xbfe073879922ffee), |
| 117 |
(0xbc8b25dd267f6600, 0xbfe1c73b39ae68c8), |
| 118 |
(0x3c6efcc626f74a6f, 0xbfe30ff7fce17035), |
| 119 |
(0xbc68076a2cfdc6b3, 0xbfe44cf325091dd6), |
| 120 |
(0x3c875720992bfbb2, 0xbfe57d69348ceca0), |
| 121 |
(0x3c8bdd3413b26456, 0xbfe6a09e667f3bcd), |
| 122 |
(0x3c70f537acdf0ad7, 0xbfe7b5df226aafaf), |
| 123 |
(0x3c82c5e12ed1336d, 0xbfe8bc806b151741), |
| 124 |
(0x3c830ee286712474, 0xbfe9b3e047f38741), |
| 125 |
(0xbc39f630e8b6dac8, 0xbfea9b66290ea1a3), |
| 126 |
(0x3c8bc69f324e6d61, 0xbfeb728345196e3e), |
| 127 |
(0x3c76e0b1757c8d07, 0xbfec38b2f180bdb1), |
| 128 |
(0x3c5e7b6bb5ab58ae, 0xbfeced7af43cc773), |
| 129 |
(0xbc7457e610231ac2, 0xbfed906bcf328d46), |
| 130 |
(0x3c8014c76c126527, 0xbfee212104f686e5), |
| 131 |
(0xbc8760b1e2e3f81e, 0xbfee9f4156c62dda), |
| 132 |
(0xbc752c7adc6b4989, 0xbfef0a7efb9230d7), |
| 133 |
(0xbc7562172a361fd3, 0xbfef6297cff75cb0), |
| 134 |
(0x3c87a0a8ca13571f, 0xbfefa7557f08a517), |
| 135 |
(0x3c887df6378811c7, 0xbfefd88da3d12526), |
| 136 |
(0x3c6c57bc2e24aa15, 0xbfeff621e3796d7e), |
| 137 |
(0x0000000000000000, 0xbff0000000000000), |
| 138 |
(0x3c6c57bc2e24aa15, 0xbfeff621e3796d7e), |
| 139 |
(0x3c887df6378811c7, 0xbfefd88da3d12526), |
| 140 |
(0x3c87a0a8ca13571f, 0xbfefa7557f08a517), |
| 141 |
(0xbc7562172a361fd3, 0xbfef6297cff75cb0), |
| 142 |
(0xbc752c7adc6b4989, 0xbfef0a7efb9230d7), |
| 143 |
(0xbc8760b1e2e3f81e, 0xbfee9f4156c62dda), |
| 144 |
(0x3c8014c76c126527, 0xbfee212104f686e5), |
| 145 |
(0xbc7457e610231ac2, 0xbfed906bcf328d46), |
| 146 |
(0x3c5e7b6bb5ab58ae, 0xbfeced7af43cc773), |
| 147 |
(0x3c76e0b1757c8d07, 0xbfec38b2f180bdb1), |
| 148 |
(0x3c8bc69f324e6d61, 0xbfeb728345196e3e), |
| 149 |
(0xbc39f630e8b6dac8, 0xbfea9b66290ea1a3), |
| 150 |
(0x3c830ee286712474, 0xbfe9b3e047f38741), |
| 151 |
(0x3c82c5e12ed1336d, 0xbfe8bc806b151741), |
| 152 |
(0x3c70f537acdf0ad7, 0xbfe7b5df226aafaf), |
| 153 |
(0x3c8bdd3413b26456, 0xbfe6a09e667f3bcd), |
| 154 |
(0x3c875720992bfbb2, 0xbfe57d69348ceca0), |
| 155 |
(0xbc68076a2cfdc6b3, 0xbfe44cf325091dd6), |
| 156 |
(0x3c6efcc626f74a6f, 0xbfe30ff7fce17035), |
| 157 |
(0xbc8b25dd267f6600, 0xbfe1c73b39ae68c8), |
| 158 |
(0x3c8a5a014347406c, 0xbfe073879922ffee), |
| 159 |
(0xbc5e0d891d3c6841, 0xbfde2b5d3806f63b), |
| 160 |
(0xbc65b362cb974183, 0xbfdb5d1009e15cc0), |
| 161 |
(0x3c672cedd3d5a610, 0xbfd87de2a6aea963), |
| 162 |
(0x3c1efdc0d58cf620, 0xbfd58f9a75ab1fdd), |
| 163 |
(0x3c75d28da2c4612d, 0xbfd294062ed59f06), |
| 164 |
(0x3c642deef11da2c4, 0xbfcf19f97b215f1b), |
| 165 |
(0x3c626d19b9ff8d82, 0xbfc8f8b83c69a60b), |
| 166 |
(0xbc513000a89a11e0, 0xbfc2c8106e8e613a), |
| 167 |
(0x3c3e2718d26ed688, 0xbfb917a6bc29b42c), |
| 168 |
(0x3c2912bd0d569a90, 0xbfa91f65f10dd814), |
| 169 |
]; |