Commit Graph

618 Commits

Author SHA1 Message Date
jzmaddock
fdbeedc609 Fix behaviour of fmod for negative divisor.
And add more tests, see https://svn.boost.org/trac/boost/ticket/11641.
2015-09-11 17:13:34 +01:00
jzmaddock
8a84894715 Merge pull request #12 from mclow/develop
Remove use of deprecated macros; use replacements
2015-09-11 08:59:57 +01:00
Marshall Clow
5621a90e45 Remove use of deprecated macros; use replacements 2015-09-10 15:43:35 -07:00
jzmaddock
839385dd1a Fix workaround code. 2015-08-23 18:38:26 +01:00
jzmaddock
8ba486eb3a Make math::tools::digits noexcept when math version is. 2015-08-23 17:49:30 +01:00
jzmaddock
92a56b5dec Add __float128 support to bits_of, correct mpl iterator dereferencing. 2015-08-23 17:48:51 +01:00
jzmaddock
ea7d247018 Qualify call to is_floating_point. 2015-08-23 17:47:28 +01:00
jzmaddock
9e3115f376 Add special case for n == 2. 2015-08-10 12:49:43 +01:00
pabristow
893a4d77d7 changed cpp_dec to cpp_bin 2015-07-25 09:36:34 +01:00
pabristow
75dc0e3c9c Rewrite of max_digits10 section. 2015-07-24 17:59:40 +01:00
jzmaddock
7e457161e6 Fix digits10 to use +3 not +2 which doesn't always add enough. 2015-07-19 17:47:38 +01:00
jzmaddock
9f446081f9 Update history. 2015-06-18 10:50:27 +01:00
jzmaddock
9abf33884b Don't use conditional noexcept with gcc-4.6.x as it causes issues.
See https://svn.boost.org/trac/boost/ticket/11402
2015-06-18 09:08:52 +01:00
jzmaddock
a04bfdb654 Fix definitions of numeric_limits out-of-line members. 2015-06-16 18:40:59 +01:00
jzmaddock
a955881d30 Merge branch 'master' of https://github.com/ahamez/multiprecision into develop 2015-06-09 19:13:23 +01:00
Alexandre Hamez
188f0a7abb Fix exception message 2015-06-09 13:54:59 +02:00
jzmaddock
42c6ad2c8f Fix test failures for special functions. 2015-06-04 13:17:29 +01:00
jzmaddock
1e1f5455fc Split test up again - still too big! 2015-06-04 09:06:14 +01:00
jzmaddock
3d6d5d943a Simplify code so msvc-12 can cope.
Errors only show up in certain complex cases, most notably in Boost.Random's test suite.
2015-06-03 18:52:33 +01:00
jzmaddock
4ed6c3e44b Remove unused typedef. 2015-06-03 18:51:41 +01:00
jzmaddock
2f9faea67d Fix signed/unsigned comparison. 2015-06-03 18:51:14 +01:00
jzmaddock
7f0e3b78c3 Remove unneeded typedef. 2015-06-02 18:27:13 +01:00
jzmaddock
f681020a16 Add missing #include. 2015-06-02 18:25:32 +01:00
jzmaddock
e5b678a673 Fix issue with ambiguous conversions. 2015-06-02 18:07:11 +01:00
jzmaddock
175db1375f Fix typecast. 2015-06-02 13:41:44 +01:00
jzmaddock
ea8586a9cf Fix signed exclusive-bitwise-or to handle carry correctly.
See https://svn.boost.org/trac/boost/ticket/11364.
2015-06-02 09:14:16 +01:00
jzmaddock
d5fd0312a4 Split some tests up. 2015-06-01 19:07:28 +01:00
jzmaddock
18023514cf Add missing test case. 2015-06-01 19:07:02 +01:00
jzmaddock
d711ce23df Fix mixed mode comparison operators.
See https://svn.boost.org/trac/boost/ticket/11328.
And added tests for mixed mode comparisons and other operators.
2015-06-01 18:11:11 +01:00
jzmaddock
7bf2e838cc Fix MSVC analyzer warnings. 2015-05-31 09:18:23 +01:00
jzmaddock
db6a5ed8d4 Update history 2015-05-31 09:17:43 +01:00
jzmaddock
b7e1992b26 Fix right shifting of negative values in cpp_int.
To give the same values as 2's complement representations,
though not the same bit-pattern.
Updated tests.
Fixed assignment from float to not rely on shifting negative values.
2015-05-30 11:39:39 +01:00
jzmaddock
9262fa4884 Stop using run in configure rules:
It breaks testing for some strange reason.
2015-05-18 11:59:25 +01:00
jzmaddock
72bf9b8b43 Merge branch 'develop' of https://github.com/boostorg/multiprecision into develop 2015-05-16 18:59:03 +01:00
jzmaddock
72c817e985 Remove all uses of std::abs.
Sadly it's still not implemented for all integer types on
some platforms, see: https://svn.boost.org/trac/boost/ticket/11311
Plus "unsigned_abs" does what we actually want in most cases - ie
does the right thing when the value is std::numeric_limits<T>::min()
without invoking undefined behavior.
2015-05-16 11:16:11 +01:00
jzmaddock
0151914ee6 Disable testing with external libraries when clang memory-santizer is in effect 2015-05-07 16:25:27 +01:00
jzmaddock
690a177099 Ooops, fix previous commit. 2015-04-25 11:33:41 +01:00
jzmaddock
2b88456016 Add workaround for GCC-5.1.0 numeric_limits.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65883
2015-04-25 11:31:17 +01:00
jzmaddock
c36e15bd29 Fix self assignment bug in mpfr_float
Fixes: https://svn.boost.org/trac/boost/ticket/11193
2015-04-17 08:30:45 +01:00
jzmaddock
2919a6375e Fix digits10 calculation so it gets it correct in the 113-bit precision case. 2015-04-07 18:46:23 +01:00
jzmaddock
b0133661eb Fix digit count for 128-bit quad-float types.
As per discussion here: http://www.exploringbinary.com/7-bits-are-not-enough-for-2-digit-accuracy/comment-page-1/#comment-9358
2015-04-07 17:57:57 +01:00
jzmaddock
4f16c26457 Fix NaN comparisons.
Add tests to verify comparisons of NaN's are unordered.
Fix operators to check for unordered comparisons.
Fixes: https://svn.boost.org/trac/boost/ticket/11159
2015-04-03 09:35:58 +01:00
jzmaddock
d79401c61c Merge pull request #9 from MarcelRaad/patch-1
Suppress MSVC warning
2015-04-02 11:06:14 +01:00
Marcel Raad
17f5ed45c2 Suppress MSVC warning
warning C4244: 'argument': conversion from 'int' to 'char', possible loss of data

This caused the Boost.Units regression tests to fail on MSVC because of warnings-as-errors.
2015-04-02 11:38:48 +02:00
jzmaddock
0de03d129d Replace long long with boost::long_long_type to avoid GCC warnings/errors in pedantic mode.
Fix missing return statements on new long long code.
2015-03-29 17:53:07 +01:00
jzmaddock
3719752df5 Fix conversions from long long to take long sized chunks.
Also fixed some bitmasks, and added feature-detection checks.
2015-03-29 11:34:20 +01:00
jzmaddock
b5c1d0965d Fix build on systems with no <chrono>. 2015-03-26 16:26:48 +00:00
jzmaddock
93d9d00c85 Fix doc typo in history. boost-1.58.0 2015-03-20 18:45:29 +00:00
jzmaddock
913b336ead Previous fix for Intel-15 breaks clang, fix. 2015-03-19 13:32:48 +00:00
jzmaddock
4f6efdb36a Workaround for MSVC that seems not to find the default_ops overload in some situations. 2015-03-19 13:32:47 +00:00