Stephen Canon
5bbf0e2229
Merge pull request #223 from stephentyrone/require-swift-5.4
...
Move baseline supported tools version to 5.4
2022-04-06 10:00:56 -04:00
Stephen Canon
27f8192a63
Attempt to work around CI misconfiguration by removing Complex Differentiable conformance.
2022-04-06 09:58:40 -04:00
Stephen Canon
c4f8886a11
Move baseline supported tools version to 5.4.
2022-03-05 10:18:13 -05:00
Stephen Canon
4ce74b4235
Merge pull request #220 from stephentyrone/refactor-complex-cmake
...
Update complex cmake for refactoring.
2021-12-16 15:19:39 -05:00
Stephen Canon
445b0da15d
Update complex cmake for refactoring.
2021-12-16 13:38:20 -05:00
Stephen Canon
9596f40d3b
Merge pull request #219 from stephentyrone/refactor-complex
...
Refactor complex
2021-12-16 13:33:55 -05:00
Stephen Canon
d329698498
remove F16/F80 stubs for complex elfns.
2021-12-11 14:57:36 -05:00
Stephen Canon
ba65b0fc77
Refactor Complex module for finer granularity.
2021-12-11 11:19:29 -05:00
Stephen Canon
1939f34fde
Merge pull request #217 from stephentyrone/double-width-testing-right-shift
...
Use DoubleWidth in stochastic rounding right-shift tests.
2021-11-24 11:40:29 -05:00
Stephen Canon
47a233758d
Use DoubleWidth in stochastic rounding right-shift tests.
...
This lets us get rid of Double here, and get more meaningful test coverage for 64b values. Also test 128b to cover double-width itself somewhat.
2021-11-24 11:35:40 -05:00
Stephen Canon
f3365bd0b4
Merge pull request #213 from DanboDuan/main
...
add macOS/arm64 support in the CMake build.
2021-11-18 09:17:22 -05:00
bob
8983be89c7
add arm64 support for M1 Mac
2021-11-17 20:39:39 +08:00
Stephen Canon
f5b33a6c07
Merge pull request #212 from stephentyrone/integer-utils-cleanup
...
Minor cleanups in integer utilities.
2021-11-09 08:08:12 -05:00
Stephen Canon
bfd905c9e4
Minor cleanups in integer utilities.
2021-11-03 13:53:38 -04:00
Stephen Canon
80d758ac5b
Merge pull request #211 from stephentyrone/further-doublewidth-cleanup
...
Clean out some unnecessary stuff in DoubleWidth.
2021-11-03 09:37:41 -04:00
Stephen Canon
48099a09b4
Clean out some unnecessary stuff in DoubleWidth.
2021-11-03 09:33:32 -04:00
Stephen Canon
9e50430d23
Merge pull request #210 from stephentyrone/double-width-comments
...
Expand some comments on DoubleWidth basic properties and inits.
2021-11-03 09:08:24 -04:00
Stephen Canon
cdb092bb31
Expand some comments on DoubleWidth basic properties and inits.
2021-11-03 08:46:34 -04:00
Stephen Canon
84044a8382
Merge pull request #209 from stephentyrone/unnecessary-endian
...
Remove big/little endiant distinction in representation of DoubleWidth
2021-11-03 08:38:28 -04:00
Stephen Canon
db932c9871
Remove big/little endiant distinction in representation of DoubleWidth
...
This doesn't really add anything that we need; we might as well simply pick one.
2021-11-03 08:22:25 -04:00
Stephen Canon
b501ca406c
Merge pull request #197 from benrimmington/experimental
...
Add the `DoubleWidth` type
2021-10-27 15:48:29 -04:00
be0534a3e3
Add the DoubleWidth type
...
Co-authored-by: Nate Cook <natecook@apple.com >
Co-authored-by: Max Moiseev <moiseev@users.noreply.github.com >
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com >
2021-10-27 18:14:10 +01:00
Stephen Canon
c74d817e8d
Merge pull request #208 from markuswntr/two-sum
...
Add `Augmented.sum(_:_:)` aka "twoSum"
2021-10-27 12:27:16 -04:00
Markus Winter
05366d7f4a
Revert names of temporary variables
2021-10-27 08:48:54 +02:00
Markus Winter and Xiaodi Wu
6ec74ec80e
Fix source code formatting
...
Co-authored-by: Xiaodi Wu <13952+xwu@users.noreply.github.com >
2021-10-27 08:28:25 +02:00
Markus Winter
d4a440fd05
Update range of random values in test cases
2021-10-26 16:27:04 +02:00
Markus Winter
f6e5563514
Fix argument ordering in twoSum and add test cases
2021-10-26 15:57:30 +02:00
Markus Winter
8b05d1c8e0
Update comments on the difference of sum(_:_:) and sum(large:small:)
2021-10-21 10:55:24 +02:00
Markus Winter
1e724835bd
Add twoSum to augmented arithmetic
2021-10-20 23:47:27 +02:00
Stephen Canon
f956c239e1
Merge pull request #203 from stephentyrone/rounding
...
Right shift and division with rounding.
2021-10-15 11:40:53 -04:00
Stephen Canon
af5393445b
Add note that integer utilities isn't stable yet.
2021-10-14 15:00:00 -04:00
Stephen Canon
43e1d4d049
Update README.md
...
Added link to `IntegerUtilities` module.
2021-10-14 14:58:28 -04:00
Stephen Canon
9c4bd83ca4
Update README.md
2021-10-14 14:55:27 -04:00
Stephen Canon
b37b64db2e
Update README.md
2021-10-14 14:53:57 -04:00
Stephen Canon
0acd49c55f
Take advantage of GFM footnotes in the README.
2021-10-14 14:53:35 -04:00
Stephen Canon
24d8f51bb3
Add tests for remainder(dividingBy: -1).
2021-10-14 10:39:39 -04:00
Stephen Canon
3eaa0b3b77
Additional documentation for division/shift with rounding
...
Also simplifies check logic for divide with rounding, which is a modest speedup for testing.
2021-10-13 16:44:52 -04:00
Stephen Canon
710ca088d5
Renamed shifted(right:) to shifted(rightBy:).
2021-10-13 11:08:09 -04:00
Stephen Canon
1b3e3f12ed
Merge pull request #207 from markuswntr/patch-1
...
Fix a minor typo in the comments of the sinh decomposition
2021-10-13 10:56:34 -04:00
Markus Winter
63df367680
Fix a typo in the comments of sinh expression
2021-10-13 11:47:45 +02:00
Stephen Canon
501f58252a
Added division with rounding operations.
2021-10-12 17:16:57 -04:00
Stephen Canon
9837c10f9e
Update README.md to refer to 1.0.0 instead of 0.1.0
2021-10-02 12:49:24 -04:00
Stephen Canon
dec7339db4
Renamed RoundingMode.trap to .requireExact
...
Also implemented some basic statistical tests for .stochastic and reorganized code a little bit. The statistical justification of the thresholds for these tests should be explained a bit more, and we should decide on a policy in general for statistical tests that may fail sporadically, but these shouldn't be very noisy for now.
2021-09-28 11:29:10 -04:00
Stephen Canon
cddd5e626d
Re-arrange some things.
2021-09-26 21:54:32 -04:00
Stephen Canon
92eb76200d
Cursory documentation for shifted(right:).
2021-09-26 21:43:02 -04:00
Stephen Canon
eeaf9e384a
More rounding mode documentation.
2021-09-26 21:24:30 -04:00
Stephen Canon
d78c067765
Some documentation work.
2021-09-26 17:05:12 -04:00
Stephen Canon
c124585c19
Skeleton of integer shift with rounding.
...
Fairly correct implementation of right-shift with rounding. Also fairly efficient, though I'm sure I'll find some cases where we're generating uncessary overflow checks upon further inspection. Nonetheless, a decent enough start.
2021-09-26 16:23:58 -04:00
Stephen Canon
caca93c5c6
Merge pull request #202 from RahulBhalley/patch-1
...
Removed number lines for easy clipboard copying.
2021-09-26 16:08:19 -04:00
ਰਾਹੁਲ ਭੇਲੇ
c3806f23ff
Removed number lines for easy clipboard copying.
2021-09-25 15:11:26 +05:30