BSD Ports

math/mpdecimal 4.0.0 MidnightBSD

C/C++ arbitrary precision decimal floating point libraries

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd2
Categories
math

Description

libmpdec is a complete C implementation of the General Decimal Arithmetic Specification. The specification, written by Mike Cowlishaw from IBM, defines a general purpose arbitrary precision data type together with rigorously specified functions and rounding behavior. As described in the scope section of the specification, libmpdec will - with minor restrictions - also conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic, provided that the appropriate context parameters are set.

libmpdec++ is a complete C++ implementation of the General Decimal Arithmetic Specification. libmpdec++ is mostly a header library around libmpdec. The library frees users from manual memory management and has an easy API with inline operators. libmpdec++ has a thread local context for inline operators and other functions that use the implicit context.

In the other systems

SystemPortVersion
MidnightBSDmath/mpdecimal4.0.0
FreeBSDmath/mpdecimal4.0.1
NetBSDmath/mpdecimal4.0.1
DragonFlymath/mpdecimal4.0.0

Install

Binary package:

mport install mpdecimal

From mports:

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

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

RUN_DEPENDS=	mpdecimal>0:math/mpdecimal
LIB_DEPENDS=	libmpdec++.so:math/mpdecimal

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
compiler:c++11-lang gmake
Service scripts
none

Files

Manual pages 3
  • libmpdec(3)
  • libmpdec++(3)
  • mpdecimal(3)
pkg-plist 16
  • include/decimal.hh
  • include/mpdecimal.h
  • lib/libmpdec++.a
  • lib/libmpdec++.so
  • lib/libmpdec++.so.4
  • lib/libmpdec++.so.4.0.0
  • lib/libmpdec.a
  • lib/libmpdec.so
  • lib/libmpdec.so.4
  • lib/libmpdec.so.4.0.0
  • libdata/pkgconfig/libmpdec++.pc
  • libdata/pkgconfig/libmpdec.pc
  • share/man/man3/libmpdec++.3.gz
  • share/man/man3/libmpdec.3.gz
  • share/man/man3/mpdecimal.3.gz
  • share/doc/mpdecimal/COPYRIGHT.txt
distinfo 1
FileSizeSHA256
mpdecimal-4.0.0.tar.gz315325942445c3245b22730fd41a67a7c5c231d11cb1b9936b9c0f76334fb7d0b4468c
Master sites 1
  • https://www.bytereef.org/software/mpdecimal/releases/