## C# BigInt: A GNU Multi-Precision Library for .NETThe GNU Multi-Precision Library for .NET is a .NET wrapper (written in C#) of the GNU MP Bignum Library, which is probably the fastest general purpose large number arithmatic library in the world. Below, you can download the wrapper along with a pre-built DLL of GNU MP. ## Features- Wrapper for: big integers (mpz_* functions in GNU MP)
**Operations:**Add, subtract, negate, multiply, divide, modulus, modular inverse, power, power modulus combination, comparisons, left/right bitwise shift, bitwise AND, bitwise OR, bitwise XOR, bitwise complemenet, bit testing, converting to and from byte/sbyte/short/ushort/int/uint/long/ulong/float/double/byte[]/uint[]/string, square root, nth root, perfect square testing, GCD, LCM, Legendre symbol, Jacobi symbol, Kronecker symbol, factorial, binomial, fibonacci, lucas numbers, Millerâ€“Rabin primality testing.- Object-oriented .NET API.
- No need to install Cygwin.
- Strict adherence to the Microsoft .NET naming conventions.
- Operator overloading (you can use +, -, *, /, %, etc for large number arithmatic).
- Overloads for simple types (int, long, double, etc) -- major performance boost.
- C# implementation of simple operations to avoid interop overhead.
## Sample Code (C#)The wrapper consists of a single class called BigInt. The following is sample code that executes as is. It really is that simple :)
## DownloadYou may download the binaries and source code for the .NET wrapper below. Included is also a pre-built DLL of the GNU MP Bignum Library for Windows. - GNU Multi-Precision Library for .NET v0.1.1 Binaries (ZIP)
- GNU Multi-Precision Library for .NET v0.1.1 Source Code (ZIP)
The source code for the C/C++ GNU MP Library DLL may be downloaded from the official GNU MP website and the MinGW website (the windows port). ## LicenseThe GNU Multi-Precision Library for .NET is licensed under the GNU LGPL license subject to the conditions here. Note that the GNU MP Library is also licensed under the GNU LGPL license. |

© 2014 Emil Stefanov

About this Website

About this Website