|
Revision 279, 1.2 kB
(checked in by mp4, 4 years ago)
|
--
|
| Line | |
|---|
| 1 |
These are the bindings and the static library for GMP 4.2 on Windows(The GNU MP Bignum Library) |
|---|
| 2 |
See gmplib.org/ |
|---|
| 3 |
|
|---|
| 4 |
This is in alpha state. All functions that have been tried seem to work. (8 out of many) |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
Files: |
|---|
| 8 |
gmp.h -original header file for gmp used for translation |
|---|
| 9 |
gmp.d -bindings/header for D , very similar to C interface |
|---|
| 10 |
gmpp.d - object oriented interface to mpf (floating point numbers) See examples inside gmpp.d |
|---|
| 11 |
libgmp.lib -static gmp lib made by gcc & objconv (http://agner.org/optimize/#objconv)(coff to omf library converter) |
|---|
| 12 |
squareroot.d - example calculates square root of 2 |
|---|
| 13 |
gmptest.d - another example. |
|---|
| 14 |
dsss.conf - it is possible to build the whole thing throught dsss build |
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
State: |
|---|
| 18 |
No known errors at the moment. Many functions has not been tested. |
|---|
| 19 |
|
|---|
| 20 |
Header file gmp.d: |
|---|
| 21 |
It is not complete. It does not contain the low level positive-integer (i.e. N) routines and inlines. For most purposes, what is done should be enough. |
|---|
| 22 |
|
|---|
| 23 |
Object oriented interface to mpf (floating point numbers) gmpp.d |
|---|
| 24 |
|
|---|
| 25 |
It supports easier way to add/multiply/divide and other operations. |
|---|
| 26 |
e.g. c=((a+b)*e.sqrt).abs+4; |
|---|
| 27 |
writefln(c); |
|---|
| 28 |
Precision can be set by precision variable. |
|---|
| 29 |
E.g. precision=600; // bits |
|---|
| 30 |
a= new mpf(); |
|---|
| 31 |
a=a*2; |
|---|