Skip to content
Library that exposes to .NET (through P-Invoke and .NET types) all of the functionality of the GNU MP Library.
C# Smalltalk
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Updated documentation. Jan 20, 2018

Welcome to the GMP Native Interface for .NET Library

The GMP Native Interface for .NET Library exposes to .NET (through P-Invoke and .NET types) all of the functionality of the GNU MP Library (version 6.1.2). It automatically loads at runtime the 32-bit or 64-bit GNU MP library that matches the current CPU architecture, thus allowing building Visual Studio Projects for AnyCPU, x86, or x64. It is based on the GNU MP "fat" build which automatically detects the current CPU type, and selects any available assembly language code optimization for that CPU, thus providing optimal performance.


  • On-line help is available here.


The GMP Native Interface for .NET library can be installed in your Visual Studio solution or project with this NuGet package.

Latest Build

The build file includes the compiled library and the help file (.chm) ready to be included in your project. The x86 and x64 folders contain the compiled GNU MP Library and must be copied to the same folder as the Math.Gmp.Native.dll library. The library targets the .NET Framework 4.0, so it can be used with all newer versions of the .NET Framework. For other builds, see the Releases page.

NOTE: On some systems, the content of the ZIP file may be blocked. To unblock it, right click on the ZIP file, select Properties, and click on the Unblock button, if it is present.

Making a Donation

You can make a donation to support this project by clicking on the PayPal Donate button below. PayPal guarantees your privacy and security. I will not receive any details about your payment other than the amount, and your name.

PayPal - The safer, easier way to pay online!

Thanks to those who have made a donation. This is much appreciated!


You can’t perform that action at this time.