BSD Ports

math/gmp 6.3.0 FreeBSD

Free library for arbitrary precision arithmetic

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
03ce372d3e
License
LGPL3
Categories
math, devel
Package size
455.9 KiB, 2578.5 KiB installed

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
FreeBSDmath/gmp6.3.0
OpenBSDdevel/gmp6.3.0p0
NetBSDdevel/gmp6.3.0
DragonFlymath/gmp6.3.0
MidnightBSDmath/gmp6.3.0

Install

Binary package:

pkg install gmp

From the ports tree:

cd /usr/ports/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

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest6.3.06.3.06.2.16.3.06.3.0
FreeBSD:14:quarterly6.3.06.3.0n/a6.3.06.3.0
FreeBSD:15:latest6.3.06.3.0n/a6.3.06.3.0
FreeBSD:15:quarterly6.3.06.3.0n/an/an/a
FreeBSD:16:latest6.3.06.3.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 9
Run dependencies 1
Required by 5222

The first 100 are listed.

Configuration

Options name: math_gmp

OptionDefaultDescription
CPU_OPTSoffEnable assembly optimizations for your CPU
INFOonBuild and/or install GNU info pages
USES
cpe libtool tar:xz pathfix
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

Commit history 1

DateCommitCreditsLog message
03ce372d3e Dimitry Andric math/gmp: fix build after base cd0727ec709b
After base cd0727ec709bb54f8f82104f6113284a15dd3464 ("libc: Add <stdio.h> C23 feature test macro"), math/gmp fails to build with errors similar to: inp_str.c:63:10: warning: call to undeclared function '__gmpz_inp_str_nowhite'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 63 | return mpz_inp_str_nowhite (x, stream, base, c, nread); | ^ ../gmp-impl.h:1782:29: note: expanded from macro 'mpz_inp_str_nowhite' 1782 | #define mpz_inp_str_nowhite __gmpz_inp_str_nowhite | ^ inp_str.c:68:1: error: conflicting types for '__gmpz_inp_str_nowhite' 68 | mpz_inp_str_nowhite (mpz_ptr x, FILE *stream, int base, int c, size_t nread) | ^ …