diff options
author | B. Watson <yalhcru@gmail.com> | 2016-01-14 17:59:58 -0500 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2016-01-14 17:59:58 -0500 |
commit | 06f2620ead18279afdd2501c3fef409252aa7ea0 (patch) | |
tree | 2ce3735ef6d39d973c270dd7bce161449c8ab7c7 /bigtest.c | |
parent | f004009a5e52f617ef1f11639a1b810f687ffe2f (diff) | |
download | taipan-06f2620ead18279afdd2501c3fef409252aa7ea0.tar.gz |
big_copy() API for bignum
Diffstat (limited to 'bigtest.c')
-rw-r--r-- | bigtest.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -23,6 +23,8 @@ int main(void) { unsigned long got; bignum(a); bignum(b); + bignum(c); + bignum(zero) = BIG_0; ulong_to_big(1234L, a); ulong_to_big(10L, b); @@ -30,6 +32,9 @@ int main(void) { // printf("got %lu, mag %d\n", got, i); for(i = 0; i < 11; i++) { cprintfancy_big(a); + big_copy(c, zero); + big_copy(c, a); + cprintfancy_big(c); big_mul(a, a, b); } |