Commit Graph

79 Commits

Author SHA1 Message Date
jzmaddock
34a0600394 Quash lots of warnings and fix PR issue
see: https://github.com/boostorg/multiprecision/pull/14
2016-06-05 18:30:41 +01:00
jzmaddock
818073a0f8 Fixes for clang warnings 2016-06-04 15:50:02 +01:00
jzmaddock
816edd2ed6 Update tests for variable precision math. 2016-05-31 10:05:34 +01:00
jzmaddock
8684c4fbcb Fix interval tests for 0 * INF. 2016-05-03 12:31:23 +01:00
jzmaddock
d619a8e3db Fix arithmetic operations that should result in a NaN.
See https://svn.boost.org/trac/boost/ticket/12157.
2016-05-02 18:53:41 +01:00
jzmaddock
aeab24b4fb Fix various conversions from infinities and NaN's.
See: https://svn.boost.org/trac/boost/ticket/12112
2016-04-05 19:32:56 +01:00
jzmaddock
c4e847b9fd Fix handling of NaN's and Infinities in basic arithmetic.
Added more test cases to catch bugs.
See issue: https://svn.boost.org/trac/boost/ticket/12090.
2016-03-24 10:13:01 +00:00
jzmaddock
57333128e8 Allow code and tests to compile without exceptions.
See https://svn.boost.org/trac/boost/ticket/12070.
2016-03-17 11:50:06 +00:00
jzmaddock
d9bd529f71 Fix boost::rational comparison operators.
Add more tests for the above.
2016-03-12 08:54:59 +00:00
jzmaddock
6a15426f2b Basic fix for Oracle C++ in C++11 mode. 2016-03-11 12:21:52 +00:00
John Maddock
a55e2c15a1 Misc minor workarounds for Oracle C++ 2016-03-08 18:00:12 +00:00
jzmaddock
2f635b45ff Fix right shifting of negative integers.
See https://svn.boost.org/trac/boost/ticket/11999.
2016-02-19 19:29:40 +00:00
jzmaddock
f57bd6b31a Add expression template enabled min/max overloads. 2016-02-18 18:37:18 +00:00
jzmaddock
100afbcce8 Suppress some msvc warnings. 2015-09-20 12:00:09 +01:00
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
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
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
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
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
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
John Maddock
87fb76c1be Reorganise bit scanning code.
Add tests for msb function.

[SVN r84972]
2013-07-07 15:29:01 +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
John Maddock
a461ca170a Add lot's of enable_if's to integer only operators to restrict them to integer types (improves error messages).
Update test coverage Makesfile.
Update tests for full coverage.

[SVN r84051]
2013-04-26 08:17:12 +00:00
John Maddock
ff1c93b043 Fix bug(s) that cause variable reuse in function calls to fail.
Add additional test cases.
Fixes #8326.

[SVN r83619]
2013-03-28 11:27:08 +00:00
John Maddock
bfd897f5d8 Fix some more GCC warnings and make compiles faster for slow compilers (Intel)
[SVN r81710]
2012-12-04 19:28:46 +00:00
John Maddock
672cd76754 Refactor test_arithmetic.cpp into lots of small files for reduced dependencies.
Changed use of __forceinline to release builds only.

[SVN r81654]
2012-12-01 16:19:23 +00:00