Re: [fpc-pascal] Super Large Integer Math Calculations (fwd)

2017-07-11 Thread Michael Van Canneyt



On Tue, 11 Jul 2017, nore...@z505.com wrote:


On 2017-07-09 04:36, Michael Van Canneyt wrote:

Forwarded at request of fra...@rhost.it:



On Fri, 7 Jul 2017, nore...@z505.com wrote:

For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine, 
why can't the math be broken down into peices the way a human does it 
on paper, and then theoretically any number can be added and 
subtracted, even if it is beyond 32/64 bit?


An alternative unit in i386 assembler and base 2^32 for big integers:
http://spazioinwind.libero.it/frm/software/bigint.zip

Here there is also a floating-point multiprecision unit up to 5000 
digits:

http://spazioinwind.libero.it/frm/software/mpcalc-7.4.zip

Franco


Would be good to put this on github so I don't forget about it when I 
need it (upcoming projects in Math require some massively large numbers 
to work with)..


Franco is not using Github for this?


It is even on the FPC ftp server; see contrib directory.

Michael.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Super Large Integer Math Calculations (fwd)

2017-07-09 Thread Michael Van Canneyt


Forwarded at request of fra...@rhost.it:



On Fri, 7 Jul 2017, nore...@z505.com wrote:

For integers beyond 64 bit, or even beyond 32 bit on a 64 bit machine, why 
can't the math be broken down into peices the way a human does it on paper, 
and then theoretically any number can be added and subtracted, even if it is 
beyond 32/64 bit?


An alternative unit in i386 assembler and base 2^32 for big integers:
http://spazioinwind.libero.it/frm/software/bigint.zip

Here there is also a floating-point multiprecision unit up to 5000 digits:
http://spazioinwind.libero.it/frm/software/mpcalc-7.4.zip

Franco
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal