Commit Graph

4466 Commits

Author SHA1 Message Date
Jeroen van Rijn
fbebf4bc4e big: Add Python implementation of LCM. 2021-09-07 14:17:14 +02:00
Jeroen van Rijn
abb15ddb38 big: Implement isqrt in Python for the tests. 2021-09-07 13:55:37 +02:00
Jeroen van Rijn
4db5683011 big: CI print Python3 version. 2021-09-07 13:31:12 +02:00
Jeroen van Rijn
c4ec459d28 bit: Force Python3 for CI. 2021-09-07 13:26:34 +02:00
Jeroen van Rijn
86cfb2ea82 big CI: Set relative path to Odin. 2021-09-07 13:22:44 +02:00
Jeroen van Rijn
0605a9f239 big: Run tests under CI. 2021-09-07 13:17:47 +02:00
Jeroen van Rijn
11c298775e Merge pull request #1131 from Kelimion/bigint
big: Split tests into their own package.
2021-09-07 12:15:11 +02:00
Jeroen van Rijn
b8de25c864 Merge branch 'master' into bigint 2021-09-07 12:07:03 +02:00
Jeroen van Rijn
008048e199 big: Move tests into their own package. 2021-09-07 12:06:58 +02:00
Jeroen van Rijn
fd256002b3 Merge pull request #1130 from Kelimion/bigint
big: Remove `core:fmt` usage + Add a little demo to examples/demo.
2021-09-06 23:35:57 +02:00
Jeroen van Rijn
48bfce2efc demo: Fix typo. 2021-09-06 23:32:32 +02:00
Jeroen van Rijn
5619b349be big: Remove core:fmt usage + Add a little demo to examples/demo. 2021-09-06 23:26:19 +02:00
Jeroen van Rijn
b0edac58b9 Merge pull request #1128 from Kelimion/semicolons
compress: Update BSD-3 license + remove semicolons from compressed ex…
2021-09-06 21:37:09 +02:00
Jeroen van Rijn
2c13315e72 compress: Update BSD-3 license + remove semicolons from compressed example. 2021-09-06 21:33:40 +02:00
gingerBill
0434281f73 Strip semicolons; Make odin strip-semicolon replace .. with ..= if used as a binary operator 2021-09-06 20:15:59 +01:00
gingerBill
3bf005bfc5 Remove redundant semicolons from comments 2021-09-06 20:05:41 +01:00
gingerBill
adcb39ef29 Update tag line 2021-09-06 19:52:36 +01:00
gingerBill
3ebfaf5f4c Update README.md 2021-09-06 19:50:08 +01:00
gingerBill
97a1147537 Correct fix to heap_allocator_proc in compiler 2021-09-06 19:34:44 +01:00
gingerBill
b63d49aafa Merge pull request #1112 from odin-lang/optional-semicolons
Optional Semicolons
2021-09-06 19:29:08 +01:00
Jeroen van Rijn
db8f0874bd Merge pull request #1127 from Kelimion/examples
examples: Add `libc` to `examples/all`.
2021-09-06 18:45:44 +02:00
Jeroen van Rijn
3ac12a4edf examples: Add libc to examples/all. 2021-09-06 18:42:26 +02:00
gingerBill
f5615b204c Minor fix to heap_allocator_proc in common_memory.cpp 2021-09-06 16:50:13 +01:00
gingerBill
2800d4b8d0 Merge branch 'master' into optional-semicolons 2021-09-06 16:46:57 +01:00
gingerBill
bc15ce302c Add dummy docs for intrinsics.syscall on Linux and Darwin 2021-09-06 15:49:51 +01:00
gingerBill
31f779f1a4 intrinsics.alloca now returns [^]u8 2021-09-06 15:45:05 +01:00
gingerBill
a3a891a7f4 Add intrinsics.is_package_imported(<string>) 2021-09-06 15:41:09 +01:00
Jeroen van Rijn
b31a24e5e8 Merge pull request #1126 from Kelimion/bigint
Add `internal_int_(pack, unpack)`.
2021-09-06 13:02:50 +02:00
Jeroen van Rijn
de5d897b5c Add internal_int_(pack, unpack). 2021-09-06 12:57:48 +02:00
Jeroen van Rijn
7db0c50e63 Merge pull request #1124 from Kelimion/bigint
big: Add ASCII file import/export.
2021-09-05 15:54:01 +02:00
Jeroen van Rijn
3faac14d62 big: Add ASCII file import/export. 2021-09-05 15:50:23 +02:00
Jeroen van Rijn
b2fa4ec675 Merge pull request #1123 from Kelimion/bigint
big: Add Extended Euclidean algorithm.
2021-09-05 14:07:14 +02:00
Jeroen van Rijn
f33d0725db big: Add Extended Euclidean algorithm. 2021-09-05 14:03:02 +02:00
Jeroen van Rijn
b45842c33f Merge pull request #1122 from Kelimion/bigint
big: Add `internal_random_prime`.
2021-09-05 10:41:50 +02:00
Jeroen van Rijn
1f5ce91ae2 big: Add internal_random_prime. 2021-09-05 10:40:35 +02:00
Jeroen van Rijn
d7627744da Merge pull request #1121 from Kelimion/bigint
big: Add `internal_int_prime_next_prime`.
2021-09-04 16:43:43 +02:00
Jeroen van Rijn
f2c5c26f2c big: Add internal_int_prime_next_prime. 2021-09-04 16:31:05 +02:00
Jeroen van Rijn
6d07bd3299 Merge pull request #1119 from Kelimion/bigint
big: Add Lucas-Selfridge primality test
2021-09-04 00:04:22 +02:00
Jeroen van Rijn
52da5b8724 big: Default to Frobenius-Underwood. It's 10% faster than Lucas-Selfridge. 2021-09-03 23:54:54 +02:00
Jeroen van Rijn
b1ed7fc6b9 big: Add Lucas-Selfridge. 2021-09-03 23:54:54 +02:00
gingerBill
e3809f5c1b Allow comparisons of any if reflect.equal if including_indirect_array_recursion is enabled 2021-09-03 15:52:47 +01:00
gingerBill
4b7dcc1513 Merge branch 'master' of https://github.com/odin-lang/Odin 2021-09-03 15:49:35 +01:00
gingerBill
c9f4fdc856 Update reflect.equal to support more types 2021-09-03 15:49:29 +01:00
Jeroen van Rijn
8178a2e7ce Merge pull request #1118 from Kelimion/bigint
big: Fix internal_int_mod for inputs with opposite signs.
2021-09-03 14:52:35 +02:00
Jeroen van Rijn
70e12f7a1c big: Fix internal_int_mod for inputs with opposite signs.
This threw off Frobenius-Underwood.
2021-09-03 14:50:26 +02:00
gingerBill
11ae87cc2f Add including_indirect_array_recursion argument to reflect.equal 2021-09-03 12:00:43 +01:00
gingerBill
b0f1b1ca16 Merge branch 'master' of https://github.com/odin-lang/Odin 2021-09-03 11:02:38 +01:00
gingerBill
7ed4f01d02 Add reflect.equal and reflect.not_equal 2021-09-03 11:02:31 +01:00
Jeroen van Rijn
07f7d14d2c Merge pull request #1117 from Kelimion/bigint
big: Add Frobenius-Underwood, Miller-Rabin and primality testing.
2021-09-03 01:39:58 +02:00
Jeroen van Rijn
eecc786bd2 big: Add Frobenius-Underwood. 2021-09-03 01:25:18 +02:00