|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| doc/ | | 04-Jul-2025 | - | 160 | 129 |
| libmpdec/ | | 04-Jul-2025 | - | 23,487 | 16,511 |
| libmpdec++/ | | 04-Jul-2025 | - | 2,420 | 1,668 |
| tests/ | | 04-Jul-2025 | - | 8,174 | 6,261 |
| tests++/ | | 04-Jul-2025 | - | 7,128 | 5,502 |
| vcbuild/ | | 04-Jul-2025 | - | 661 | 486 |
| Android.bp | D | 04-Jul-2025 | 1.2 KiB | 51 | 44 |
| CHANGELOG.txt | D | 04-Jul-2025 | 14.6 KiB | 481 | 296 |
| COPYRIGHT.txt | D | 04-Jul-2025 | 1.3 KiB | 24 | 20 |
| INSTALL.txt | D | 04-Jul-2025 | 2.9 KiB | 96 | 79 |
| LICENSE | D | 04-Jul-2025 | 37.3 KiB | 748 | 608 |
| METADATA | D | 04-Jul-2025 | 477 | 18 | 16 |
| MODULE_LICENSE_BSD | D | 04-Jul-2025 | 0 | | |
| Makefile.in | D | 04-Jul-2025 | 4.3 KiB | 162 | 128 |
| OWNERS | D | 04-Jul-2025 | 51 | 2 | 1 |
| README.txt | D | 04-Jul-2025 | 1.5 KiB | 54 | 30 |
| config.guess | D | 04-Jul-2025 | 49.4 KiB | 1,804 | 1,577 |
| config.h.in | D | 04-Jul-2025 | 3.3 KiB | 112 | 77 |
| config.sub | D | 04-Jul-2025 | 34.5 KiB | 1,896 | 1,706 |
| configure | D | 04-Jul-2025 | 204.1 KiB | 6,843 | 5,599 |
| configure.ac | D | 04-Jul-2025 | 32.8 KiB | 1,111 | 999 |
| install-sh | D | 04-Jul-2025 | 15 KiB | 542 | 352 |
README.txt
1
2
3libmpdec
4========
5
6libmpdec is a fast C/C++ library for correctly-rounded arbitrary precision
7decimal floating point arithmetic. It is a complete implementation of
8Mike Cowlishaw/IBM's General Decimal Arithmetic Specification. The full
9specification is available here:
10
11http://speleotrove.com/decimal/
12
13
14libmpdec will - with minor restrictions - also conform to the IEEE 754-2008
15Standard for Floating-Point Arithmetic, provided that the appropriate context
16parameters are set.
17
18libmpdec is the basis for the decimal module in Python-3.3.
19
20
21The library has been tested on the following platforms:
22
23 amd64: Linux, FreeBSD, OpenBSD, OpenSolaris, Windows
24
25 ppc64: AIX
26
27 x86: Linux, FreeBSD, OpenBSD, OpenSolaris, Windows
28
29 mips32: Debian
30
31
32libmpdec++
33==========
34
35libmpdec++ is a complete implementation of the General Decimal Arithmetic
36Specification. libmpdec++ is mostly a header library around libmpdec's
37C functions.
38
39The library frees users from manual memory management and has an easy API
40with inline operators similar to the one in Python's decimal module. Like
41Python's decimal module, libmpdec++ has a thread local context for inline
42operators and other functions that use the implicit context.
43
44In benchmarks the speed is close to libmpdec (about 4% slower due to the
45copying, destructor overhead and the thread local context).
46
47libmpdec++ has been tested on 64/32-bit Linux, 64/32-bit FreeBSD and OpenBSD
48and 64/32-bit Windows.
49
50
51Contact: Stefan Krah <skrah@bytereef.org>
52
53
54