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
John Maddock
cdd63adfcd
Fix assignment operations to be safe after a move.
...
Added test cases to catch bug case.
Refs #8667 .
[SVN r84687]
2013-06-08 14:07:21 +00:00
John Maddock
dd420d8d3b
Add tentative support for user-defined-literals.
...
[SVN r84106]
2013-05-02 10:16:57 +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
5126fa8e74
Fix float128 compile error.
...
Add constexpr support to float128.
Add float128 docs and rebuild HTML.
[SVN r84016]
2013-04-22 17:50:55 +00:00
John Maddock
727b4c4643
Fixes to get the float128 tests passing with Intel C++ 13.0.
...
[SVN r83874]
2013-04-13 16:53:01 +00:00
John Maddock
74e46a3306
Initial Intel C++ _Quad support in float128.
...
[SVN r83856]
2013-04-12 09:01:20 +00:00
John Maddock
ba0232fb1e
Fix float128 string formatting.
...
[SVN r83831]
2013-04-10 16:30:13 +00:00
John Maddock
eb267293d7
Refactored build process to improve compile times.
...
Fixed expression-template incompatibility in spherical_harmonic.hpp.
Fixed expression template issues in log1p_expm1_test.hpp and test_cbrt.hpp.
[SVN r83775]
2013-04-06 08:54:04 +00:00
John Maddock
04b1c9e9f0
Initial commit of 128-bit float wrapper
...
[SVN r83713]
2013-04-02 17:26:48 +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
b1a27b8c5c
Fix valgrind errors
...
[SVN r83519]
2013-03-22 16:55:36 +00:00
John Maddock
3aeea98da5
Suppress some msvc warnings.
...
[SVN r83441]
2013-03-15 18:07:05 +00:00
John Maddock
6582c85fd8
Improve uBas integration to allow use of expression templates inside uBas templates.
...
Fixes #8292 .
[SVN r83439]
2013-03-15 17:29:20 +00:00
John Maddock
2a4255861e
Fix operators that operate on unary-negated expressions.
...
Suppress some MSVC specific warnings.
Fix some bugs exposed by above changes and add new test cases.
Fixes #8176 .
[SVN r83227]
2013-03-01 13:15:56 +00:00
John Maddock
bea6a2bdfc
Change boolean context conversion operator so it's not convertible to void*.
...
Fixes #8177 .
[SVN r83162]
2013-02-26 12:43:14 +00:00
John Maddock
5245fd31e2
Fix bug in division of zero.
...
Document and add tests.
Fixes #8160 .
[SVN r83128]
2013-02-24 13:20:46 +00:00
John Maddock
1ef61ef160
Fix bug in subtraction routine that leads to -0 rather than 0.
...
Add test cases.
Fixes #8145 .
[SVN r83103]
2013-02-23 17:22:18 +00:00
John Maddock
4a43b9ef8e
Fix bug in subtraction of a limb_type.
...
Fix bug in division/modulus algorithms that results in incorrect sign when source and destination overlap.
Tweak performance of GCD algorithms.
Add test cases for bug reports.
Fixes #8133 .
Fixes #8126 .
[SVN r83080]
2013-02-22 10:37:36 +00:00
John Maddock
3111e69084
Fix sign of division in cpp_int when the values are small enough to fit in a double_limb_type.
...
Add test cases for above.
Fixes #8126 .
[SVN r83060]
2013-02-21 13:05:41 +00:00
John Maddock
b8f6ed0612
Change to use the unit test framework as the test exec monitor seems to be terminally broken.
...
[SVN r82944]
2013-02-17 08:59:46 +00:00
Christopher Kormanyos
fb748f698d
Refs #8065
...
[SVN r82920]
2013-02-16 10:55:06 +00:00
John Maddock
8ff620de3b
Add debug_adaptor.hpp.
...
Document debug_adaptor and VC++ visualizers.
[SVN r82517]
2013-01-17 12:23:21 +00:00
John Maddock
2b901734b2
Big search and replace name change of adapter -> adaptor.
...
[SVN r82501]
2013-01-15 11:43:27 +00:00
John Maddock
0d4b3d4b02
Add logged adapter.
...
Add docs for logged_adapter and mpfi_float.
[SVN r82499]
2013-01-15 09:25:05 +00:00
John Maddock
97ba7d573f
Fix bug that causes division by single limb to fail when the remainder is zero and the least significant limb of the quotient is 1.
...
Fixes #7878 .
[SVN r82460]
2013-01-12 10:51:46 +00:00
John Maddock
97b0b495a4
Split test_arithmetic_mpfr_50.cpp into two tests for faster compiles / smaller memory usage.
...
[SVN r82431]
2013-01-10 11:25:15 +00:00
John Maddock
42458450be
Add initial support for mpfi interval arithmetic
...
[SVN r82337]
2013-01-03 18:58:43 +00:00
John Maddock
27599ca09e
Apply patch for typos.
...
Regenerate docs.
Fixes #7806 .
[SVN r82073]
2012-12-18 11:28:04 +00:00
John Maddock
08fdb31fa2
Add some optimisation to gcd/lcm/lsb and cpp_int:
...
Use compiler intrinsics where possible for lsb.
Switch to using native integers when the values get small enough for gcd.
Re-run the performance tests and regenerate the docs.
Also change the series evaluation limits to make them depend on the precision in pow.hpp and trig.hpp.
[SVN r81946]
2012-12-14 18:37:27 +00:00
John Maddock
82e82e6b15
Disable debug info for a couple of slower compilers: speeds up the tests somewhat.
...
[SVN r81799]
2012-12-08 17:40:29 +00:00
John Maddock
f1830235bb
Fix inspection report issues.
...
Regenerate docs.
Fix performance test Jamfile.
[SVN r81740]
2012-12-06 13:37:51 +00:00
John Maddock
1b6d4082b4
Change to return test result!!
...
[SVN r81734]
2012-12-06 10:39:59 +00:00