summaryrefslogtreecommitdiffstats
path: root/Modules/_decimal/libmpdec/mpdecimal.h
Commit message (Collapse)AuthorAgeFilesLines
* bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962)Antoine Pitrou2021-03-301-37/+26
| | | | | Complete the update to libmpdec-2.5.1. Co-authored-by: Stefan Krah <skrah@bytereef.org>
* bpo-41369 Update to libmpdec-2.5.1: new features (GH-21593)Stefan Krah2020-07-221-0/+25
|
* bpo-41302: Fix build with system libmpdec (GH-21481)Felix Yan2020-07-151-6/+0
| | | | | | | Move definition of UNUSED from modified headers of libmpdec to _decimal.c itself. This makes the vendored source closer to the standalone library and fixes build with --with-system-libmpdec. Tested to build fine with either system libmpdec or the vendored one.
* bpo-41100: fix _decimal for arm64 Mac OS (GH-21228)Lawrence D'Anna2020-06-301-0/+3
| | | Patch by Lawrence Danna.
* bpo-40874: Update to libmpdec-2.5.0 (GH-20652)Stefan Krah2020-06-051-54/+43
|
* bpo-35059, libmpdec: Add missing EXTINLINE in mpdecimal.h (GH-10128)Victor Stinner2018-10-261-5/+5
| | | | | | | | | | | | | Declare functions with EXTINLINE: * mpd_del() * mpd_uint_zero() * mpd_qresize() * mpd_qresize_zero() * mpd_minalloc() These functions are implemented with "inline" or "ALWAYS_INLINE", but declared without inline which cause linker error on Visual Studio in Debug mode when using /Ob1.
* include (now) int standard headersBenjamin Peterson2016-09-061-6/+2
|
* Issue #26621: Update libmpdec version and remove unnecessary test case.Stefan Krah2016-03-231-2/+2
|
* Introduce and check for MPD_VERSION_HEX for precise management of buildsStefan Krah2014-08-261-2/+6
| | | | with an external libmpdec.
* Whitespace.Stefan Krah2014-01-041-3/+3
|
* Fix C++ header usage. This __STDC_LIMIT_MACROS scheme can still be subvertedStefan Krah2013-12-141-9/+11
| | | | | by including stdint.h before mpdecimal.h. In that case the only option left is to compile with -D_STDC_LIMIT_MACROS.
* Update copyright. The four year increment is intentional (to save work).Stefan Krah2013-12-081-1/+1
|
* Make a couple of parameters constant.Stefan Krah2013-12-031-7/+7
|
* 1) Prepare libmpdec for the 2.4.0 release. None of the following changes ↵Stefan Krah2013-11-241-35/+59
| | | | | | | | | | | | | | | | | | affects _decimal: o Make all "mpd_t to C integer" conversion functions available in both the 64-bit and the 32-bit versions. o Make all mixed mpd_t/C integer arithmetic functions available in the 32-bit version. o Better handling of __STDC_LIMIT_MACROS for C++ users. o Add struct tags (at the request of C++ users). 2) Check for libmpdec.so.2 if --with-system-libmpdec is used.
* Issue #16753: Define __GNUC_STDC_INLINE__ to an integer (same as gcc).Stefan Krah2012-12-231-1/+1
|
* Issue #16745: The gcc visibility pragma is buggy on OpenIndiana and NetBSD.Stefan Krah2012-12-221-1/+2
|
* Fix Visual Studio build.Stefan Krah2012-12-221-0/+3
|
* Issue #16745: Hide symbols in _decimal.so.Stefan Krah2012-12-221-0/+17
|
* Proactive reliability fix for broken FPUs: The base conversion functionsStefan Krah2012-06-301-5/+5
| | | | | | | | | | use log10() to calculate the size of the output array. The current code has been tested on x86/amd64 (and to a lesser extent on qemu-mips qemu-sparc) and produces sufficiently large values for all inputs tested so far (coefficient sizes of 10**18 - 1 are hard to test exhaustively). The new code does not rely on the correctness of log10() and resizes the output arrays if the allocated space is insufficient.
* Use abort() rather than exit() to appease tools like rpmlint. abort() is usedStefan Krah2012-03-301-1/+1
| | | | | | in libmpdec to prevent undefined behavior if an invalid context is used. This cannot occur for the _decimal module since user input for the context is validated.
* Whitespace.Stefan Krah2012-03-211-7/+7
|
* Issue #7652: Integrate the decimal floating point libmpdec library to speedStefan Krah2012-03-211-0/+800
up the decimal module. Performance gains of the new C implementation are between 12x and 80x, depending on the application.