
|
84794 packages online
|
|
 |
|
dev/c/bignum.lha |
|
No screenshot available
|
|
*************************************************************************
Routines to do Big Number Arithmetic. These are multi-precision, unsigned
natural numbers (0, 1, 2, ...).
Released to the public domain by Clifford Rhodes, June 15, 1995, with
no guarantees of any sort as to accuracy or fitness of use.
Each int in the Big Number array will hold a digit up to MODULUS - 1.
Choosing 10000 makes testing easy because each digit contains 4 decimal
places.
The Big Number is contained in a structure that has a length, nlen, and
an array, n[], of unsigned shorts to hold the 'digits'. The most
significant digit of the big number is at n[0]. The least significant
digit is at n[nlen - 1];
*************************************************************************
The Amiga 68k/PPC version comes with both, makefiles for 68k and PPC,
and test programs for both CPUs.
Note, that the test program doesn't seem to do anything useful as
far as user interaction is concerned: it just tests its internal
routines and then waits for a key to be pressed.
(Originally it would have run in an endless loop, but due to a missing
kbhit() function it's now just a single loop.)
If someone has need for large unsigned numbers (or likes to extend
this to signed numbers) - well...
--
ARK, 29/May/2000
|
Contents of dev/c/bignum.lha
PERMSSN UID GID PACKED SIZE RATIO CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 659 1369 48.1% -lh5- 2732 May 29 2000 bignum/bignum.h
[generic] 748 1414 52.9% -lh5- ca29 May 29 2000 bignum/bignum.readme
[generic] 1548 6056 25.6% -lh5- b20f May 29 2000 bignum/bignum1.c
[generic] 1769 6726 26.3% -lh5- 7c77 May 29 2000 bignum/bignum2.c
[generic] 8412 13156 63.9% -lh5- a9f3 May 29 2000 bignum/bigtest
[generic] 1541 4900 31.4% -lh5- c206 May 29 2000 bignum/bigtest.c
[generic] 19120 41796 45.7% -lh5- 23c3 May 29 2000 bignum/bigtest.elf
[generic] 388 831 46.7% -lh5- 1cbf May 29 2000 bignum/bigtest.info
[generic] 47 47 100.0% -lh0- c9bc May 29 2000 bignum/include/conio.h
[generic] 43 59 72.9% -lh5- cbdc May 29 2000 bignum/minmax.h
[generic] 151 238 63.4% -lh5- bdda May 29 2000 bignum/SCOPTIONS
[generic] 134 323 41.5% -lh5- 1137 May 29 2000 bignum/smakefile
[generic] 119 274 43.4% -lh5- bcdc May 29 2000 bignum/smakefile68k
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 13 files 34679 77189 44.9% May 30 2000
|
|
|
 |
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |