Dependent Libraries - 6.0 English - PG104

Complex Multiplier LogiCORE IP Product Guide (PG104)

Document ID
PG104
Release Date
2024-11-26
Version
6.0 English

The C model uses the MPIR and MPFR libraries, which are governed by the GNU Lesser General Public License. You can obtain source code for the MPIR and MPFR libraries from guest_resources/gnu. The following pre-compiled version of the MPIR and MPFR libraries are provided with the C model:

  • MPIR 2.6.0
  • MPFR 3.1.2

Because MPIR is a compatible alternative to GMP, the GMP library can be used in place of MPIR. It is possible to use GMP or MPIR libraries from other sources, for example, compiled from source code.

GMP and MPIR in particular, and MPFR to a lesser extend, contain many low-level optimizations for specific processors. The libraries provided are compiled for a generic processor on each platform, using no optimized processor-specific code. These libraries work on any processor, but run more slowly than libraries compiled to use optimized processor-specific code. For the fastest performance, compile libraries from source on the machine on which you run the executables.

Source code and compilation scripts are provided for the versions of MPIR and MPFR that were used to compile the provided libraries. Source code and compilation scripts for any version of the libraries can be obtained from the GMP http://gmplib.org/, MPIR http://www.mpir.org/ and MPFR https://www.mpfr.org/web sites.

Note: If compiling MPIR using its configure script (for example, on Linux platforms), use the --enable-gmpcompat option when running the configure script. This generates a libgmp.so library and a gmp.h header file that provide full compatibility with the GMP library.