|
3 | 3 | Changelog
|
4 | 4 | =========
|
5 | 5 |
|
| 6 | +Version 4.0.0 |
| 7 | +------------- |
| 8 | + |
| 9 | +general |
| 10 | +~~~~~~~ |
| 11 | + |
| 12 | + **sync soversion and major_version** |
| 13 | + |
| 14 | + - The added number formatting feature requires an ABI change, hence the |
| 15 | + increase to SOVERSION=4. |
| 16 | + |
| 17 | + - Packagers outside of the Linux distributions sometimes use the major |
| 18 | + version number as the equivalent of SOVERSION on their platforms and |
| 19 | + have an incorrect SOVERSION for 2.5.1, which requires SOVERSION=3. |
| 20 | + |
| 21 | + - While SOVERSION is not required to match the major version number |
| 22 | + (example: glibc), mpdecimal will from now on take the path of least |
| 23 | + resistance and always use SOVERSION=MPD_MAJOR_VERSION. |
| 24 | + |
| 25 | + - The jump to 4.0.0 should also remind users that a C++ library is |
| 26 | + available. |
| 27 | + |
| 28 | +build/install |
| 29 | +~~~~~~~~~~~~~ |
| 30 | + |
| 31 | + **features** |
| 32 | + |
| 33 | + - Support for out-of-tree build. |
| 34 | + |
| 35 | + - Support for pkg-config. |
| 36 | + |
| 37 | + - Unix: support for Loongson. |
| 38 | + |
| 39 | + - Unix: support for CheriBSD. |
| 40 | + |
| 41 | + - Compilers: support for icx, icpx, ibm-clang_r, ibm-clang++_r, CompCert, |
| 42 | + clang-cl and emscripten. |
| 43 | + |
| 44 | + - Windows: support for MSYS2/MinGW. |
| 45 | + |
| 46 | + - MSVC: the build now uses /O2 /DNDEBUG. |
| 47 | + |
| 48 | + - MSVC: new arm64/arm32 cross build scripts. |
| 49 | + |
| 50 | + - AIX: the shared libraries are now installed as versioned objects, e.g., |
| 51 | + shr4.o, shr4_64.o. |
| 52 | + |
| 53 | + - New ``./configure`` switches: |
| 54 | + |
| 55 | + ``--enable-static``: enable/disable the build of the static libraries |
| 56 | + (default: enabled). |
| 57 | + |
| 58 | + ``--enable-pc``: enable/disable the install of the pkgconfig files |
| 59 | + (default: enabled). |
| 60 | + |
| 61 | + ``--enable-doc``: enable/disable the install of the documentation |
| 62 | + (default: enabled). |
| 63 | + |
| 64 | + - New ``./configure`` behavior: |
| 65 | + |
| 66 | + On multilib platforms like AIX that default to 32-bit the 64-bit build can |
| 67 | + be forced with a single ``./configure MACHINE=uint128`` (ibm-clang, gcc) |
| 68 | + or ``./configure MACHINE=ansi64`` (xlc) rather than explicitly setting |
| 69 | + ``CFLAGS``, ``LDFLAGS``, ``CXXFLAGS`` and ``LDXXFLAGS``. |
| 70 | + |
| 71 | + Note that on most other (multilib) platforms the default is 64-bit and the |
| 72 | + optimal configuration is chosen by just using ``./configure``. |
| 73 | + |
| 74 | + - New man pages direct users to the mpdecimal-doc package or the online |
| 75 | + HTML documentation. |
| 76 | + |
| 77 | + **tests** |
| 78 | + |
| 79 | + - The C++ tests now automatically skip a small number of bignum tests if |
| 80 | + the std::thread stack size (which cannot be altered) is less than 512K. |
| 81 | + |
| 82 | + For all other tests a thread stack size of roughly 50K is sufficient. |
| 83 | + |
| 84 | + - Files in the tests/testdata_dist directory have been significantly |
| 85 | + abbreviated in order to facilitate testing on slower platforms. The |
| 86 | + tests take 5s on a modern x86_64 platform. |
| 87 | + |
| 88 | + The previous tests have been moved to the separate mpdecimal-testdata |
| 89 | + package (replace tests/testdata_dist with the renamed mpdecimal-testdata |
| 90 | + directory). |
| 91 | + |
| 92 | + **toolchain issues** |
| 93 | + |
| 94 | + - AIX: The preferred C/C++ compilers are ibm-clang_r and ibm-clang_r++. |
| 95 | + g++ has sporadic C++11 threading issues that only show up in long running |
| 96 | + programs (or short ones with a sufficient number of repetitions): |
| 97 | + |
| 98 | + https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98390 |
| 99 | + |
| 100 | + If you only use libmpdec (``--disable-cxx``), gcc and xlc are very stable. |
| 101 | + |
| 102 | + **changed** |
| 103 | + |
| 104 | + - The ``--enable-profile`` configure option has been removed due to fragile |
| 105 | + integration with a sequence like ``make && make install``. The new method |
| 106 | + is ``make profile && make install``. |
| 107 | + |
| 108 | + **removed** |
| 109 | + |
| 110 | + - The prebuilt HTML documentation is now in the separate mpdecimal-doc |
| 111 | + package, which gives distributions that reject prebuilt documentation |
| 112 | + the option to disregard it and use the new man pages. |
| 113 | + |
| 114 | +libmpdec |
| 115 | +~~~~~~~~ |
| 116 | + |
| 117 | + **features** |
| 118 | + |
| 119 | + - Add the "z" format specifier (coerce negative zeros to positive). |
| 120 | + |
| 121 | + - In extremely rare cases the transcendental functions (exp, ln, log10) did |
| 122 | + not set the Subnormal/Underflow flags. The reason is that in the case of |
| 123 | + an exponent boundary the Ziv correction loop for correct rounding requires |
| 124 | + very few iterations to arrive at the correctly rounded result, but may |
| 125 | + need many more iterations to arrive at the correct flags. |
| 126 | + |
| 127 | + In these cases, Subnormal/Underflow is not very informative, so the status |
| 128 | + quo was to skip the extra iterations. |
| 129 | + |
| 130 | + Version 4.0.0 now specializes exponent boundary cases and uses up to five |
| 131 | + additional iterations to set Subnormal/Underflow. The refactored code has |
| 132 | + no speed penalty on average; in fact, in the deccheck tests (random tests |
| 133 | + with a bias towards corner cases) it is slightly faster. |
| 134 | + |
| 135 | + No cases have been found where more than two additional iterations are |
| 136 | + required, but they may exist. |
| 137 | + |
| 138 | + **reliability fixes** |
| 139 | + |
| 140 | + - mpd_qset_string_exact(), mpd_qset_i64_exact() and mpd_qset_u64_exact() |
| 141 | + can now be called with a nonzero status. Previously, the functions |
| 142 | + could return NaN/Invalid_operation in that case. |
| 143 | + |
| 144 | + This is listed under "reliability fixes" since there is no possible |
| 145 | + scenario under which these functions would legitimately be called with |
| 146 | + a nonzero status. |
| 147 | + |
| 148 | +libmpdec++ |
| 149 | +~~~~~~~~~~ |
| 150 | + |
| 151 | + **features** |
| 152 | + |
| 153 | + - Add input validation for Decimal.shiftl(), Decimal.shiftr() and |
| 154 | + Decimal::ln10(). |
| 155 | + |
6 | 156 |
|
7 | 157 | Version 2.5.1
|
8 | 158 | -------------
|
|
0 commit comments