Commit graph

12 commits

Author SHA1 Message Date
3397bf4310 abacus: bignum: fix order comparisons
This is a pretty big oversight...
2021-08-22 13:55:12 +02:00
5bc3963317 abacus: bignum: add exponentiation 2021-08-22 13:55:12 +02:00
4e3d53ecd4 abacus: bignum: add division & modulo
Like the C language, the `%` operator is rather the remainder, such that
`(a/b)*b + (a%b) = a`.

I still call it modulo though...
2021-08-22 13:55:12 +02:00
7cd0664e60 abacus: bignum: fix carry bug in addition 2021-08-21 01:32:18 +02:00
4a4b9f361c abacus: bignum: add multiplication 2021-08-21 01:31:48 +02:00
d40c109fb7 abacus: bignum: add input operator 2021-08-21 01:31:48 +02:00
fe01661613 abacus: bignum: add addition & substraction 2021-08-21 01:31:39 +02:00
6f7e1102db abacus: bignum: add default constructor 2021-08-20 22:20:45 +02:00
ad5092ea8d abacus: bignum: add output operator 2021-08-20 22:20:45 +02:00
0a5fb471e4 abacus: bignum: add unary operators 2021-08-20 22:20:45 +02:00
7c1b3d302e tests: unit: add bignum tests 2021-08-20 22:20:45 +02:00
5b57981af7 abacus: bootstrap build system 2021-08-20 22:20:45 +02:00