Commit Graph

215 Commits

Author SHA1 Message Date
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
f4a61d5f47 Add explicit conversion operators and tests to expression templates. 2015-03-12 17:55:13 +00:00
jzmaddock
0cfe21cf1c Fix some more noexcept failures, and tighten up the tests. 2015-02-10 16:51:36 +00:00
jzmaddock
6df6b1c441 Fix tests for case where double_limb_type = __int128. 2015-02-09 17:58:44 +00:00
jzmaddock
9927d49cb9 Many more fixes and tests for noexcept issues, see https://svn.boost.org/trac/boost/ticket/10990 2015-02-08 18:16:31 +00:00
jzmaddock
33630bc407 Clean up and enhance noexcept support, add tests to validate cpp_int and cpp_rational are performing as expected. See https://svn.boost.org/trac/boost/ticket/10990 2015-02-07 17:54:09 +00:00
jzmaddock
63f53c48f3 Merge branch 'develop' of https://github.com/boostorg/multiprecision into develop 2014-10-09 16:13:21 +01:00
jzmaddock
761c7c8c38 Fix some C++03 mode failures. 2014-10-09 16:12:56 +01:00
jzmaddock
bae613e6aa Abort test if there are too many errors 2014-09-23 17:01:14 +01:00
jzmaddock
cd1e62a4b0 Fix for issue https://svn.boost.org/trac/boost/ticket/10405
Change code snippets in docs to be complete programs to avoid any confusion.
Fix failure caused by change to Boost.Random.
Regenerate docs.
2014-08-29 18:54:09 +01:00
jzmaddock
2b86d278e9 Reduce program output. 2014-07-03 10:41:12 +01:00
jzmaddock
c2c2fd6d79 Enable correct rounding for mpq_rational -> floating point conversions. 2014-06-29 13:30:15 +01:00
jzmaddock
f779941205 Fix warnings and compiler errors, plus rounding error in generic_interconvert.hpp.
Add comments about rounding to gmp.hpp.
Update tests to check mpq_rational.
2014-06-29 10:36:19 +01:00
jzmaddock
6ae735d8d5 Commit test file and improve tests some more. Fix some bugs too! 2014-06-28 17:09:50 +01:00
jzmaddock
66fe81cdbc Update and enhance tests. 2014-06-28 16:27:50 +01:00
jzmaddock
45e242d17d Implement exact base-10 floating point to rational conversion. 2014-06-17 18:20:59 +01:00
jzmaddock
9f9394940a Add scalbn, ilogb, logb and tests and docs. 2014-06-17 08:53:54 +01:00
jzmaddock
4b25b2a6c4 Limit max digits to print so stupid libc++ can actually parse the input. 2014-04-11 09:34:10 +01:00
jzmaddock
e7704434d5 Fix PP-logic on test case.
Don't explicitly request gnu++0x mode - it causes conflicts with testers running in c++1y mode.
2014-04-10 18:01:29 +01:00
jzmaddock
e0680a745b Tentative fixes for VC9 failures, plus improve error reporting of failed lexical_casts in test_arithmetic.hpp. 2014-03-27 13:36:23 +00:00
jzmaddock
373fa10e18 Workarounds for VC-12 errors. 2014-03-25 13:10:00 +00:00
jzmaddock
3317ee0d4a More fixes for compiling with -ftrapv under gcc 2014-03-09 10:04:38 +00:00
jzmaddock
bdacea2934 Partial fix for https://svn.boost.org/trac/boost/ticket/9740 to allow code to be used with -ftrapv in gcc. 2014-03-08 10:57:01 +00:00
jzmaddock
9bf3b419c1 Minor fixes for Intel C++ on Win32. 2014-02-21 17:29:05 +00:00
jzmaddock
9d59d0a56c Remove reference to class that doesn't exist!! 2014-02-09 11:38:09 +00:00
jzmaddock
b3b9164bb9 Adjust big_lanczos now we have Sterling's approx in Boost.Math for large digit counts.
Add extra high-precision test for gamma functions.
2014-01-30 09:35:14 +00:00
jzmaddock
5302b484a4 Add serialization support to cpp_bin_float and document. 2013-12-22 13:35:56 +00:00
jzmaddock
787cd1101e Update tests to exercise move-construct/copy better.
Fix exposed bug in tommath backend.
See also https://svn.boost.org/trac/boost/ticket/9497.
2013-12-22 09:57:01 +00:00
jzmaddock
8fc8406008 Fix cpp_bin_float gcc compile.
Fix tests to work as intended.
2013-12-04 17:14:38 +00:00
John Maddock
59d2c0d383 Fix up error rates for cpp_bin_float: these are higher mostly down to less accurate sine and cosine than the competition :-(
[SVN r86786]
2013-11-22 17:13:35 +00:00
John Maddock
10ed707a68 Initial merge of cpp_bin_float code from sandbox.
[SVN r86781]
2013-11-21 19:05:42 +00:00
John Maddock
0a3a504f92 Merge multiprecision changes from Trunk.
[SVN r85681]
2013-09-15 18:04:02 +00:00
John Maddock
635d9aee34 Fix pp-logic.
[SVN r85662]
2013-09-13 16:45:52 +00:00
John Maddock
549eed8c92 TRy and improve error reporting.
[SVN r85650]
2013-09-11 18:14:32 +00:00
John Maddock
10e6f7227d Fix path used to load test data.
[SVN r85642]
2013-09-10 17:40:30 +00:00
John Maddock
1e268d62ef Improve error handling in serialization tests.
[SVN r85619]
2013-09-09 11:52:30 +00:00
John Maddock
07c1027919 Update for Intel 13.1
[SVN r85253]
2013-08-09 12:27:11 +00:00
John Maddock
c5e7d59a73 Add serialization support to float128 and adaptor backends.
Use __float128 via typedefs so recent Intel compilers don't complain.

[SVN r85241]
2013-08-08 17:43:54 +00:00
John Maddock
6ab42a5611 Fix binary archive serialization.
Add rational serialization.

[SVN r85231]
2013-08-07 08:15:51 +00:00
John Maddock
07369c61a2 Improve serialization tests.
[SVN r85219]
2013-08-06 08:08:13 +00:00
John Maddock
7aa0322d97 Fix gcc serialization code, and improve binary serialization.
[SVN r85214]
2013-08-05 15:03:07 +00:00
John Maddock
904b93f22c Add tentative serialization support.
[SVN r85212]
2013-08-05 11:52:07 +00:00
John Maddock
af494a898b Add support for integer square roots.
[SVN r85184]
2013-08-01 17:50:17 +00:00
John Maddock
84b9f86789 Fix gcc-4.8.x warning.
[SVN r85132]
2013-07-23 14:43:17 +00:00
John Maddock
9b7bf3303e Fix mpfi pow function to correctly handle negative base with integer power.
Fixed error handling to not return numeric_limits<>::quiet_NaN if there is no NaN supported.
Fixed default pow implementation to handle integer args up to numeric_limits<uintmax_t>::max().
Fixed error handling in default pow implementation to return NaN for too large exponents (can't tell if they're integers or even or odd) and negative bases.
Fixed array subscript bug in cpp_dec_float.
Greatly increased pow testing.
Fixes #8809.

[SVN r85008]
2013-07-12 16:13:34 +00:00
John Maddock
714b02ccfe Fix bug in eval_pow that causes 0^N to be none-zero.
Fixes #8798.

[SVN r84997]
2013-07-10 16:08:12 +00:00
John Maddock
87fb76c1be Reorganise bit scanning code.
Add tests for msb function.

[SVN r84972]
2013-07-07 15:29:01 +00:00
John Maddock
f2821a0231 Fix left shift operator.
Fixes #8741.

[SVN r84925]
2013-07-01 17:06:12 +00:00
John Maddock
73210bb222 Apply remaining fixes from #8732.
Also adds msb (most significant bit) function to multiprecision.
Fixes #8732.

[SVN r84921]
2013-07-01 15:43:28 +00:00
John Maddock
2a5a4b60f8 Add some typecasts to ensure conversion from negative values proceeds correctly.
Fix masking of values during construction so overflow wraps around in unchecked fixed precision integers.
Add tests for above changes.
Refs #8711.

[SVN r84897]
2013-06-24 10:36:01 +00:00