MPIR (mathematics software)
{{Short description|Multiprecision integer software library}}
{{Infobox software
| name = MPIR: Multiple Precision Integers and Rationals
| screenshot = Cantor-0.1-sage-screenshot.png
| caption = SageMath, a computer algebra system that formerly used MPIR{{Cite web|url=https://trac.sagemath.org/ticket/32549|title = Sage ticket 'Remove package mpir'}}
| developer = William Hart and the MPIR Team
| latest release version = 3.0.0
| latest release date = {{Start date and age|2017|03|01}}
| programming language = C, C++, assembly
| operating system = Cross-platform
| genre = Mathematical software
| license = LGPL
| website = https://web.archive.org/web/20220204054313/http://www.mpir.org/
}}
Multiple Precision Integers and Rationals (MPIR) is an open-source software multiprecision integer library forked from the GNU Multiple Precision Arithmetic Library (GMP) project. It consists of much code from past GMP releases, and some original contributed code.
According to the MPIR-devel mailing list, "MPIR is no longer maintained",{{Cite web|url=https://groups.google.com/g/mpir-devel/c/qTOaOBuS2E4/m/_8AQjEieAAAJ|title = MPIR status and 'raison d'être'}} except for building the old code on Windows using new versions of Microsoft Visual Studio.
According to the MPIR developers, some of the main goals of the MPIR project were:
- Maintaining compatibility with GMP – so that MPIR can be used as a replacement for GMP.
- Providing build support for Linux, Mac OS, Solaris and Windows systems.
- Supporting building MPIR using Microsoft based build tools for use in 32- and 64-bit versions of Windows.
MPIR is optimized for many processors (CPUs). Assembly language code exists for these {{as of|2012|lc=y}}: ARM, DEC Alpha 21064, 21164, and 21264, AMD K6, K6-2, Athlon, K8 and K10, Intel Pentium, Pentium Pro-II-III, Pentium 4, generic x86, Intel IA-64, Core 2, i7, Atom, Motorola-IBM PowerPC 32 and 64, MIPS R3000, R4000, SPARCv7, SuperSPARC, generic SPARCv8, UltraSPARC.
Language bindings
See also
{{Portal|Free and open-source software}}
- Arbitrary-precision arithmetic, data type: bignum
- GNU Multiple Precision Arithmetic Library
- GNU Multiple Precision Floating-Point Reliably (MPFR)
- Class Library for Numbers supporting GiNaC
References
{{Reflist}}
External links
- [https://gmplib.org/ GMP] — official site of GNU Multiple Precision Arithmetic Library
- [https://www.mpfr.org/ MPFR] — official site of GNU Multiple Precision Floating-Point Reliably
{{data types}}
Category:C (programming language) libraries
Category:Computer arithmetic algorithms