aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2021-07-15 23:34:02 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2021-08-11 20:59:50 +0200
commit18dda6ff9d8f67f259bafbcdfe5fd5286f5a45fa (patch)
tree4b90b3bcbf9888b34399a9ec2250a04942b5f35f /src/main.cpp
parent7afc367275d763e4780899e99fa354ad0662e03a (diff)
Start of core:math/bigint
We have: - `init` to create a new `Int` - `init(from_integer)` to create a new `Int` and set it to `from_integer`. - `set(Int, from_integer)` to set an `Int` to `from_integer` - `add(dest, a, b)` to add `a` and `b` into `dest`. - `sub(dest, a, b)` to subtract `b` from `a` and put the result in `dest`. And a few helper functions, like: - `is_zero`, `is_negative`, ... - `grow`, `shrink`, `clear`, `zero`
Diffstat (limited to 'src/main.cpp')
0 files changed, 0 insertions, 0 deletions