BSD Ports

math/gmp 6.3.0 MidnightBSD

Free library for arbitrary precision arithmetic

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
lgpl3
Categories
math, devel

Description

GMP is a free library for arbitrary precision arithmetic, operating on signed integers, rational numbers, and floating point numbers. There is no limit to the precision except the ones implied by the available memory in the machine GMP runs on. GMP has a rich set of functions, and the functions have a regular interface.

GMP is designed to be as fast as possible, both for small operands and for huge operands. The speed is achieved by using fullwords as the basic arithmetic type, by using fast algorithms, with carefully optimized assembly code for the most common inner loops for a lot of CPUs, and by a general emphasis on speed (instead of simplicity or elegance).

GMP is believed to be faster than any other similar library. The advantage for GMP increases with the operand sizes for certain operations, since GMP in many cases has asymptotically faster algorithms.

In the other systems

SystemPortVersion
MidnightBSDmath/gmp6.3.0
FreeBSDmath/gmp6.3.0
OpenBSDdevel/gmp6.3.0p0
NetBSDdevel/gmp6.3.0
DragonFlymath/gmp6.3.0
HardenedBSDmath/gmp6.3.0
GhostBSDmath/gmp6.3.0
OPNsensemath/gmp6.3.0

Install

Binary package:

mport install gmp

From mports:

cd /usr/mports/math/gmp && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	gmp>0:math/gmp
LIB_DEPENDS=	libgmp.so:math/gmp

Dependencies

Configuration

Options name: math_gmp

OptionDefaultDescription
CPU_OPTSoffEnable assembly optimizations for your CPU
USES
cpe libtool makeinfo tar:xz
Service scripts
none

Files

pkg-plist 12
  • include/gmp.h
  • include/gmpxx.h
  • lib/libgmp.a
  • lib/libgmp.so
  • lib/libgmp.so.10
  • lib/libgmp.so.10.5.0
  • lib/libgmpxx.a
  • lib/libgmpxx.so
  • lib/libgmpxx.so.4
  • lib/libgmpxx.so.4.7.0
  • libdata/pkgconfig/gmp.pc
  • libdata/pkgconfig/gmpxx.pc
distinfo 1
FileSizeSHA256
gmp-6.3.0.tar.xz2.094196e+06a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898
Master sites 1
  • GNU