The MASM Forum

General => The Laboratory => Topic started by: tenkey on January 17, 2023, 04:00:09 AM

Title: 64-bit bignums
Post by: tenkey on January 17, 2023, 04:00:09 AM
I found 64-bits to be wonderful for multiprecision division. I haven't yet coded Collatz or Fibonacci for my bignum package. A little inconvenient because I make the caller responsible for all memory management.
Title: Re: 64-bit bignums
Post by: jack on January 17, 2023, 05:34:06 AM
hello tenkey
would you post an example using your routines?
Title: Re: 64-bit bignums
Post by: tenkey on January 19, 2023, 07:51:46 AM
I'm currently working on a Fibonacci demo.
Title: Re: 64-bit bignums
Post by: jack on January 19, 2023, 08:49:44 AM
 :thup:
Title: Re: 64-bit bignums
Post by: tenkey on February 02, 2023, 06:27:43 AM
Fibonacci example.

It uses over-allocation of bignum buffers to make it easy to reuse them. Not used are some wrapper functions which have not been tested yet. The wrapper functions make things slower, but the auto-allocation relieves you from calculating the memory needs of temporary buffers and result buffers.
Title: Re: 64-bit bignums
Post by: HSE on February 15, 2023, 01:04:08 AM
 :thumbsup: Very interesting.