Implemented project structure
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
Copyright (c) 2008-2025 Stefan Krah. All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGE.
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
|
||||
libmpdec
|
||||
========
|
||||
|
||||
libmpdec is a fast C/C++ library for correctly-rounded arbitrary precision
|
||||
decimal floating point arithmetic. It is a complete implementation of
|
||||
Mike Cowlishaw/IBM's General Decimal Arithmetic Specification. The full
|
||||
specification is available here:
|
||||
|
||||
http://speleotrove.com/decimal/
|
||||
|
||||
|
||||
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 the basis for the decimal module in Python-3.3.
|
||||
|
||||
|
||||
The library has been tested on the following platforms:
|
||||
|
||||
amd64: Linux, FreeBSD, OpenBSD, OpenSolaris, Windows
|
||||
|
||||
ppc64: AIX
|
||||
|
||||
x86: Linux, FreeBSD, OpenBSD, OpenSolaris, Windows
|
||||
|
||||
mips32: Debian
|
||||
|
||||
|
||||
libmpdec++
|
||||
==========
|
||||
|
||||
libmpdec++ is a complete implementation of the General Decimal Arithmetic
|
||||
Specification. libmpdec++ is mostly a header library around libmpdec's
|
||||
C functions.
|
||||
|
||||
The library frees users from manual memory management and has an easy API
|
||||
with inline operators similar to the one in Python's decimal module. Like
|
||||
Python's decimal module, libmpdec++ has a thread local context for inline
|
||||
operators and other functions that use the implicit context.
|
||||
|
||||
In benchmarks the speed is close to libmpdec (about 4% slower due to the
|
||||
copying, destructor overhead and the thread local context).
|
||||
|
||||
libmpdec++ has been tested on 64/32-bit Linux, 64/32-bit FreeBSD and OpenBSD
|
||||
and 64/32-bit Windows.
|
||||
|
||||
|
||||
Contact: Stefan Krah <skrah@bytereef.org>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user