home *** CD-ROM | disk | FTP | other *** search
- ___ _ _ _ _
- | _ |_)__ _ _ _ _ _ _ __ | (_) |__ _ _ __ _ _ _ _ _
- | _ \ / _` | ' \ || | ' \ | | | '_ \ '_/ _` | '_| || |
- |___/_\__, |_||_\_,_|_|_|_| |_|_|_.__/_| \__,_|_| \_, |
- |___/ © Allenbrand Brice |__/ 37.31
-
- ----------------------------------------------------------------------
-
- THE multiprecision integer library !
-
- This library is EMailWare
- EMail: brie.allenbrand@hol.fr
-
- If you have suggestions I'd be happy to answer them.
-
- ----------------------------------------------------------------------
-
- This package contains the library and the protos for C programming.
- YOU MUST HAVE AT LEAST A 68020 AND ENOUGH RAM OR THE LIBRARY WON'T OPEN !!
-
- *)BigNum.library has been written using SAS/6.58. It takes advantage of
- the Amiga system for maximum efficiency.
-
- *)All overflows or division by 0 are managed by the library. (Hope so...)
-
- *)It is easy to Use (yes yes)
-
- *)No Enforcer hits (sure)
-
- ----------------------------------------------------------------------
-
- Now there are two versions :
-
- Big
- ---
-
- *)A BigNum is limited to 450000 digits and the library will need 10 Mo RAM
-
- *)The library will manage 50 BigNums at a time. All the allocations are
- made during the opening of the library for speed-up efficiency.
-
- Small
- -----
-
- *)A BigNum is limited to 130000 digits and the library will need 3 Mo RAM
-
- *)The library will manage 50 BigNums at a time. All the allocations are
- made during the opening of the library for speed-up efficiency.
-
- ----------------------------------------------------------------------
-
- USAGE :
-
- 1) #include <proto/BigNum.h>
-
- 2) struct Library *BigNumBase;
-
- 3) At first, open the library with the common way.
-
- 4) Then declare your BigNum : PtrBigNum x,y,z,u,i,op......
-
- 5) Then INITIALIZE THEM : x=BigNumInit();y=BigNumInit()....
-
- 6) Make your computations......
- .....
- ......
- .....
- 7) After using, FREE THEM or you'll have warning message when you close
- the library. If you forget it, this won't crash the machine or lose
- memory, but it is an efficient way to know if what you've done is
- right
- e.g if you Init 5 BigNums then call BigNumFree(5);
-
- 8) Close the library or you'll lose memory.
-
- Have a look at examples....
-
- ----------------------------------------------------------------------
-
- What's New :
-
- Minor enhancements.
- SAS/C 6.58