Commit graph

16 commits

Author SHA1 Message Date
Bruno BELANYI a382b299b0 abacus: bignum: fix comparison of negative numbers 2022-02-17 10:03:21 +01:00
Bruno BELANYI 171ef10a6d abacus: fix include directories
All checks were successful
continuous-integration/drone/push Build is passing
This cleans up one of my major pain points with the Meson way of doing
things.

The Meson solution to have nice includes would have been to create an
`include/<name>` directory per library I create...
2021-09-01 19:43:02 +02:00
Bruno BELANYI 31dcb91a26 abacus: bignum: add log10 2021-08-23 16:38:25 +02:00
Bruno BELANYI c730705a13 abacus: bignum: add log2 2021-08-23 16:33:05 +02:00
Bruno BELANYI f4f620436c abacus: bignum: add sqrt 2021-08-22 13:58:43 +02:00
Bruno BELANYI 3397bf4310 abacus: bignum: fix order comparisons
This is a pretty big oversight...
2021-08-22 13:55:12 +02:00
Bruno BELANYI 5bc3963317 abacus: bignum: add exponentiation 2021-08-22 13:55:12 +02:00
Bruno BELANYI 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
Bruno BELANYI 7cd0664e60 abacus: bignum: fix carry bug in addition 2021-08-21 01:32:18 +02:00
Bruno BELANYI 4a4b9f361c abacus: bignum: add multiplication 2021-08-21 01:31:48 +02:00
Bruno BELANYI d40c109fb7 abacus: bignum: add input operator 2021-08-21 01:31:48 +02:00
Bruno BELANYI fe01661613 abacus: bignum: add addition & substraction 2021-08-21 01:31:39 +02:00
Bruno BELANYI 6f7e1102db abacus: bignum: add default constructor 2021-08-20 22:20:45 +02:00
Bruno BELANYI ad5092ea8d abacus: bignum: add output operator 2021-08-20 22:20:45 +02:00
Bruno BELANYI 0a5fb471e4 abacus: bignum: add unary operators 2021-08-20 22:20:45 +02:00
Bruno BELANYI 7c1b3d302e tests: unit: add bignum tests 2021-08-20 22:20:45 +02:00