gmp
« Back to VersTracker
Description:
GNU multiple precision arithmetic library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: arithmetic mathematics library precision cryptography
Install: brew install gmp
About:
GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating-point numbers. It features highly optimized assembly code for many CPU architectures, making it exceptionally fast for complex mathematical computations. The library is widely used as a backend for languages and tools requiring high-precision math.
Key Features:
  • Arbitrary precision integers, rationals, and floats
  • Highly optimized assembly for multiple CPU architectures
  • C and C++ APIs with comprehensive documentation
Use Cases:
  • Cryptography and security applications requiring large integers
  • Scientific computing and high-precision simulations
  • Implementing language interpreters with big number support
Alternatives:
  • MPFR – Focuses specifically on floating-point arithmetic with correct rounding, often used alongside GMP for enhanced precision.
  • Boost.Multiprecision – C++ template library that can use GMP as a backend, providing a more modern C++ interface.
Version History
Detected Version Rev Change Commit
Sep 10, 2025 6:38pm 0 VERSION_BUMP c4929b59
Sep 16, 2024 8:13pm 0 VERSION_BUMP 51c89914