|
MPIR
and MPFR
(written by Jose Pascoa)
MPIR
is based on
GMP and can run in GMP
compatibility mode. Unlike GMP, MPIR can be compiled for
Windows out-of-the-box.
I built MPIR DLLs and Static Libraries, for 32-bit as P4
(Pentium 4) and
for 64-bit as Core2. This will cover most of the existing Intel
machines up to i7. I am not sure how the included compilations will
behave on AMD processors (they may crash or not, so use
everything at your own
risk).
MPFR is a C library for
multiple-precision floating-point computations with correct
rounding. It works either with GMP or MPIR. Using hints provided
here, and after struggling a bit, I managed to
build 32-bit and 64-bit
MPFR DLLs and Static Libraries for Windows.
To
confirm everything worked as expected I made a full project and
built 32-bit and 64-bit executables to run either dynamically
linked or statically linked.
On
the MPIR-only test, which consists of a Pollard's Rho
factorization, 64-bit executables performed almost twice as fast
as 32-bit executables. This is good news when lots of software
actually run slow when compiled as 64-bit.
If
you are new to the MPIR/GMP/MPFR Open Source multiple precision
packages and want to learn fast how to use them from Visual
Studio, then download the complete project from
HERE,
it is free. It includes the MPIR and MPFR
binaries and static libraries (reason why is about 4 MB).

More
articles here
|