Commit Graph

58 Commits

Author SHA1 Message Date
Timothy Warren
d90b762754 Implement Bigint from implementation for integer types larger than the pointer type 2020-09-11 15:23:42 -04:00
cf262073dd Simplify PortalOrd macro
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-05-05 18:49:19 -04:00
Timothy Warren
e54485f12b Allow comparing size of Bigints, and allow comparing BigInts to number primitives
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-05-05 15:41:27 -04:00
Timothy Warren
3f6071d196 Add no_std support and testing
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-04-16 14:07:12 -04:00
Timothy Warren
bbfada5c0f Add convenience macro for BigInt
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-04-07 13:46:51 -04:00
Timothy Warren
322ccfe78a Game some more test coverage
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-04-03 10:04:12 -04:00
Timothy Warren
b8ab76bbf6 Handle signs and carry overflow addition for multiplication
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-04-02 17:01:55 -04:00
Timothy Warren
faa1f548a0 Some test coverage for sign handling
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-26 11:40:14 -04:00
Timothy Warren
063f6ffa48 Implement sign handling for addition and subtraction
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-24 13:26:00 -04:00
70aa876500 More test coverage
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-13 23:02:27 -04:00
547266e97f Pander to the code coverage tool a bit to further increase coverage
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-13 21:22:25 -04:00
Timothy Warren
a2efcb0198 Increase test coverage of non-biginit stuff
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-13 17:08:43 -04:00
Timothy Warren
e9b125aa7a Increase test coverage
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-13 16:31:37 -04:00
Timothy Warren
f8b91531b9 Partially implement multiplication, code formatting
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-13 14:17:25 -04:00
Timothy Warren
74744095f1 Fix zero subtraction
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-11 14:01:45 -04:00
Timothy Warren
a5b727a156 Test zeros for addition
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-11 13:58:56 -04:00
Timothy Warren
9f60706a9b More tests
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-11 11:16:40 -04:00
Timothy Warren
a8de0cfa88 Add borrowing for subtraction
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-11 10:52:49 -04:00
ae77ede1c0 Partially implement subtraction
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-10 20:46:51 -04:00
Timothy Warren
d0ac326944 Add negation operator for Sign
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-06 12:26:15 -05:00
34a1989925 Tests should not be listed in test coverage report
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-05 21:53:33 -05:00
193a66b19d Implement more From trait mappings, add more docs
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-05 21:29:54 -05:00
Timothy Warren
101a37b6bc Tests and fixes
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-05 16:24:33 -05:00
437dcd34fb Implement NOT operator
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-03-05 09:20:02 -05:00
f352c1aa4e No code coverage for benchmarks
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-03-05 08:32:38 -05:00
Timothy Warren
272b7360f5 Add implementation of sterlings approximation
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-04 16:53:31 -05:00
Timothy Warren
94f39fff07 Start implementations of basic arithmatic operators
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-03-04 16:16:28 -05:00
Timothy Warren
a5e3e88e1e Add proper test for add function
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-03-04 09:19:33 -05:00
Timothy Warren
d5d9730607 First shot at adding bigints
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-03-03 16:33:21 -05:00
Timothy Warren
096373789b Add stein gcd
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-28 17:11:36 -05:00
Timothy Warren
57526e5fed Some minor stuff for bigints
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-02-24 16:30:59 -05:00
Timothy Warren
074f2bf662 Update docs, more tests
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-24 13:49:09 -05:00
Timothy Warren
bf09388604 Attempt to benchmark gcd algorithm
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-02-21 16:33:00 -05:00
Timothy Warren
d4458bae08 More factorial/fibonacci optimizing
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-02-21 13:15:05 -05:00
3624b415ee Use bench tests to optimize factorial and fibonacci functions
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-20 21:26:28 -05:00
Timothy Warren
75fe940ffc Add benchmarks
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-20 17:13:46 -05:00
Timothy Warren
38c2d93c0a Attempt CI coverage report
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-02-20 11:35:04 -05:00
35c99a3ba1 Clean up macros a little bit
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-19 21:52:00 -05:00
4f5dcddcc5 Simplify types for ration impls
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-19 21:23:07 -05:00
3323c2ff23 Add makefile for code coverage operations, increase code coverage
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-19 21:10:53 -05:00
Timothy Warren
cbf66916f9 Reorganize somewhat, add more fraction tests
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-19 16:22:01 -05:00
Timothy Warren
44467df38f Fix another negative fraction condition
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-19 15:07:40 -05:00
Timothy Warren
84656e74c9 Much improvement of addition and subtraction
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-19 14:08:43 -05:00
Timothy Warren
55d2d407e3 Formatting and proper comparision
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-19 09:39:19 -05:00
ba3952206a WIP: Comparision operator tests
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-18 21:29:40 -05:00
46629952a5 Don't re-implement native trait methods, skip broken add test for now
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-18 21:09:49 -05:00
2f8b61dab5 implement operator overloading for comparision operators
Some checks failed
timw4mail/rusty-numbers/pipeline/head There was a failure building this commit
2020-02-18 20:59:58 -05:00
Timothy Warren
caeb1879c4 Allow unsigned or signed input to frac macro
All checks were successful
timw4mail/rusty-numbers/pipeline/head This commit looks good
2020-02-18 16:38:26 -05:00
Timothy Warren
c593e38078 Commit missing import 2020-02-18 10:22:33 -05:00
Timothy Warren
fb92f5c463 Mostly implemented fractions and doc improvements 2020-02-18 10:19:57 -05:00