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
Christopher Kormanyos
726b2ffc32
Proper copyright information + foundations for cpp_bin_float.
...
[SVN r83395]
2013-03-10 11:04:09 +00:00
John Maddock
90bebe9ab4
Include config.hpp
...
[SVN r83358]
2013-03-08 11:46:52 +00:00
Christopher Kormanyos
81d0ea8776
Preliminary preparations for cpp_bin_float. Moved the rebind and dynamic_array structures from cpp_dec_float.hpp to separate files in /detail.
...
[SVN r83335]
2013-03-06 21:26:01 +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
Christopher Kormanyos
d590f8baca
Remove an unreachable code block from pow2(). Add an optimization to eval_ldexp().
...
[SVN r83207]
2013-02-28 19:58:21 +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
04e971893b
Better fix for #8160 .
...
Refs #8160 .
[SVN r83153]
2013-02-25 16:32:59 +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
Christopher Kormanyos
fb748f698d
Refs #8065
...
[SVN r82920]
2013-02-16 10:55:06 +00:00
John Maddock
869e98ac84
Fix raise_rounding_error to return the correct result (and type) when an error occurs.
...
Fixes #7905 .
[SVN r82885]
2013-02-14 18:20:03 +00:00
John Maddock
14b230d251
Get rid of MSVC C4996 warnings.
...
Fixes #8036 .
[SVN r82839]
2013-02-12 18:58:23 +00:00
John Maddock
1037731caa
Fix cast to void
...
[SVN r82661]
2013-01-28 17:38:11 +00:00
John Maddock
5018162072
Reorder static assertions for better error messages.
...
[SVN r82610]
2013-01-25 17:45:03 +00:00
John Maddock
c5dee8ee69
Fix gcc build failures and warnings
...
[SVN r82604]
2013-01-25 12:49:55 +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
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
3f7e4906df
Add static asserts on ExponentType requirements.
...
Document requirements better.
Regenerate docs.
[SVN r82046]
2012-12-17 13:11:01 +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
f607597c85
Update mpfr.hpp to use MPFR native constants when used with Boost.Math.
...
[SVN r81871]
2012-12-12 13:18:06 +00:00
John Maddock
a7d4edc769
Tweak GCD for better performance.
...
[SVN r81810]
2012-12-09 16:41:53 +00:00
John Maddock
75cab8836d
Allow detail::canonical to be used with enum types.
...
Review all noexcept specifications - and remove quite a few that we (probably) can't guarantee.
Change example workaround for non-C++11 compilers.
[SVN r81809]
2012-12-09 15:24:07 +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
1991d878aa
Fix some more GCC warnings.
...
[SVN r81655]
2012-12-01 18:06:24 +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
Christopher Kormanyos
5f14980691
Improved cpp_dec_float::extract_parts to handle sizeof(double) exceeding 8 bytes.
...
[SVN r81638]
2012-11-30 20:22:10 +00:00
John Maddock
9c7f52ec7f
Suppress GCC warning.
...
[SVN r81634]
2012-11-30 16:29:17 +00:00
John Maddock
477fec65e1
TRy and disable some VC11 warnings.
...
[SVN r81529]
2012-11-25 18:01:46 +00:00
John Maddock
3523e32a6c
Fix for aliasing bug.
...
[SVN r81526]
2012-11-25 11:50:54 +00:00
John Maddock
b9b28eefa7
Fix for gcc-4.4.x: rvalue reference support in gcc-4.4 isn't good enough for our use cases.
...
[SVN r81510]
2012-11-24 18:28:04 +00:00
John Maddock
114aeb386b
Simply enable_if usage in cpp_int_backend: try to fix Intel-11 failures.
...
Improve test_cpp_int.cpp.
Improve config tests.
[SVN r81487]
2012-11-22 17:21:01 +00:00
John Maddock
d6feeb290d
Small optimisation for integer modulus.
...
[SVN r81477]
2012-11-22 09:56:47 +00:00
Marshall Clow
03af4f817c
Remove usage of deprecated macros
...
[SVN r81467]
2012-11-21 21:32:26 +00:00
John Maddock
09f3928f5a
Fix clang failures
...
[SVN r81464]
2012-11-21 17:54:50 +00:00
John Maddock
cbb9e41226
Try and fix some Clang failures.
...
Also remove noexcept specifications from cpp_dec_float: calls to lexical_cast deep in the call tree, make it pretty much impossible to analyse by hand.
[SVN r81427]
2012-11-19 18:18:51 +00:00
John Maddock
3168afc5ec
Misc minor fixes for VC9.
...
[SVN r81423]
2012-11-19 13:30:33 +00:00
John Maddock
d38ad7997d
Fix misplaced use of typename.
...
[SVN r81422]
2012-11-19 12:27:53 +00:00
John Maddock
8ae04c68a6
Merge multiprecision from sandbox.
...
[SVN r81417]
2012-11-18 18:56:59 +00:00
John Maddock
4071dd8d59
Fix missing number constructor.
...
Fix is_explicitly_convertible to take account of the generic conversions.
Change sf_performance to use multiple files so we can actually compile the thing!
Minor doc updates.
Suppress some more warnings.
[SVN r81324]
2012-11-13 17:12:19 +00:00
John Maddock
3430188795
Add overloads of the integer-only functions which work with native integer types.
...
Ensure powm promotes fixed precision types to avoid numeric overflow.
Allow the Miller-Rabin code to be used by native integers.
Fix Miller Rabin tests to actually return the test result!
Fix some bugs in cpp_int unsigned arithmetic, and ensure the Miller Rabin and random number code can be safely used with checked fixed precision integers.
[SVN r81269]
2012-11-09 18:55:19 +00:00
John Maddock
a9bcf67b4b
Fix errors resulting from incorrect noexcept specifications and no numeric_limits support for __int128
...
[SVN r81211]
2012-11-05 19:05:31 +00:00
John Maddock
e3deed1fdf
Optimize cpp_int multiplication with precision extension.
...
Turn off some warnings.
[SVN r81200]
2012-11-05 12:36:25 +00:00
John Maddock
e599ca723c
Fix missing typename.
...
[SVN r81169]
2012-11-04 12:08:37 +00:00