aboutsummaryrefslogtreecommitdiff
path: root/core/math/big
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused code in `internal_random_prime`Feoramund2024-05-281-3/+0
|
* fix a couple of -vet-style failures after ↵Laytan2024-05-093-5/+5
| | | | f54977336b27c32eab52b77d94e7b1610f4350cf
* Fix `big.internal_random_prime` with `Second_MSB_On`Feoramund2024-04-151-0/+14
|
* Add `#no_broadcast` procedure parameter to disallow automatic array ↵gingerBill2024-03-211-1/+1
| | | | programming broadcasting on procedure arguments
* Expose internal invmod and int_exponent_mod with more consistent namingEd Yu2024-03-122-2/+6
|
* Fix typo in big.internal_invmodJeroen van Rijn2024-03-082-3416/+3359
| | | | Fixes #3253
* For invmod, b has to be > 1, fix a logic typoEd Yu2024-03-041-3/+3
|
* math.big constants were no longer initializeddev-2024-03Jeroen van Rijn2024-03-031-1/+6
| | | | Fixes #3243
* Replace `core:*` to `base:*` where appropriategingerBill2024-01-288-10/+10
|
* Fix missing clamp in core:math/big random.Jeroen van Rijn2023-11-271-1/+1
|
* Partial pseudo-revertgingerBill2023-10-021-4/+8
|
* Minor cleanups to the core librarygingerBill2023-09-302-2/+2
|
* Use `or_break` and `or_continue` where appropriate in the core librarygingerBill2023-09-301-8/+4
|
* Rename bitwise operations to `bit_or` etcgingerBill2023-09-281-8/+8
|
* Replace `x in &y` Use `&v in y` syntax through core & vendor for ↵gingerBill2023-06-263-6/+6
| | | | `switch`/`for` statements
* Use positional and named arguments within the core librarygingerBill2023-06-211-1/+1
|
* Add parentheses around `or_return` uses in an unary expressiongingerBill2023-04-271-6/+6
|
* Merge pull request #1544 from FancyKillerPanda/build_ignoregingerBill2022-11-032-3/+1
|\ | | | | Changed `//+ignore` to `//+build ignore` and emit a warning for unknown tags
| * Changed //+ignore to //+build ignore.FancyKillerPanda2022-02-242-3/+1
| |
* | fix some typoscui fliter2022-08-051-1/+1
|/ | | | Signed-off-by: cui fliter <imcusg@gmail.com>
* Add `#partial [Enum]Type{...}` support to check for missing enumerated array ↵gingerBill2022-02-051-0/+1
| | | | fields
* Correct `#sparse` usage and error messagesgingerBill2022-02-051-1/+1
|
* Improve docs_writer.cppgingerBill2022-01-173-25/+24
|
* Simplify docs to hide the copyrightgingerBill2022-01-1711-37/+47
|
* [math/big] Rename `internal_int_shl_digit` to `_private_int_shl_leg`.Jeroen van Rijn2021-12-113-129/+96
| | | | | Same for the SHR variant. These are pure implementation details to shift by a leg/word at a time. Prevent accidental usage.
* Fix `rat_set_f64`gingerBill2021-12-111-5/+5
|
* Merge pull request #1358 from Kelimion/big_math_fixJeroen van Rijn2021-12-091-0/+5
|\ | | | | [math/big] Return 0, .Integer_Underflow if T = unsigned and bigint is negative.
| * [math/big] Return 0, .Integer_Underflow if trying to get a negative number ↵Jeroen van Rijn2021-12-091-0/+5
| | | | | | | | to an unsigned int.
* | Merge branch 'master' of https://github.com/odin-lang/OdingingerBill2021-12-092-27/+48
|\|
| * [math/big] Fix int_set and int_get.Jeroen van Rijn2021-12-092-31/+51
| |
* | Add utility procedures to get low valuesgingerBill2021-12-091-0/+29
| |
* | Minor style changegingerBill2021-12-091-5/+5
|/
* Fix bugs in big.Rat caused by typosgingerBill2021-12-071-3/+3
|
* Implement `ldexp` and `frexp` in native OdingingerBill2021-11-161-1/+1
|
* `big.Rat` (Experimental)gingerBill2021-10-295-14/+614
|
* Correct math/biggingerBill2021-09-082-7/+2
|
* Strip semicolons in core which were missinggingerBill2021-09-082-4/+10
|
* Move math/big tests under `tests/`.Jeroen van Rijn2021-09-073-1159/+0
|
* big: Add Python implementation of LCM.Jeroen van Rijn2021-09-072-19/+44
|
* big: Implement isqrt in Python for the tests.Jeroen van Rijn2021-09-072-4/+24
|
* bit: Force Python3 for CI.Jeroen van Rijn2021-09-071-3/+3
|
* big CI: Set relative path to Odin.Jeroen van Rijn2021-09-071-3/+4
|
* big: Run tests under CI.Jeroen van Rijn2021-09-071-2/+2
|
* big: Move tests into their own package.Jeroen van Rijn2021-09-075-403/+401
|
* big: Remove `core:fmt` usage + Add a little demo to examples/demo.Jeroen van Rijn2021-09-065-179/+102
|
* compress: Update BSD-3 license + remove semicolons from compressed example.Jeroen van Rijn2021-09-061-2/+2
|
* Merge branch 'master' into optional-semicolonsgingerBill2021-09-0614-349/+3199
|\
| * Add `internal_int_(pack, unpack)`.Jeroen van Rijn2021-09-064-19/+141
| |
| * big: Add ASCII file import/export.Jeroen van Rijn2021-09-053-13/+84
| |
| * big: Add Extended Euclidean algorithm.Jeroen van Rijn2021-09-052-2/+85
| |