John Maddock
b640732abd
Add additional template parameter to mpfr_float_backend to allow stack-based floats.
...
[SVN r81135]
2012-11-01 19:01:08 +00:00
John Maddock
645fe8865c
Add tests for checked ints and fix failures.
...
Make negating an unsigned int an error, and fix resulting test failures.
Change allocator defaults to be void when the allocator is not actually required.
[SVN r81070]
2012-10-27 17:48:33 +00:00
John Maddock
a857186cb4
Big "blow it away and start again" refactoring of cpp_int.
...
Adds support for runtime checking, enumerated template params, fixed precision with allocator, and no "hidden" template parameters.
[SVN r81054]
2012-10-24 16:00:05 +00:00
John Maddock
5256e108a1
Fix Intel -x64 failures.
...
[SVN r80609]
2012-09-20 18:21:07 +00:00
John Maddock
4f2738fd6f
Add traits class to determine default ExpressionTemplate parameter value.
...
Add support for fused-multiply-add/subtract.
Optimise temporary usage when the LHS also appears on the RHS.
[SVN r80607]
2012-09-20 16:04:02 +00:00
John Maddock
dd7ee60431
Fix GCC C++11 mode failures.
...
Tidy up TODO list.
[SVN r80577]
2012-09-18 16:47:03 +00:00
John Maddock
fc1cda1f62
Largely cosmetic change - add two new template params to cpp_dec_float - one for the exponent type, and one for an optional allocator.
...
[SVN r80431]
2012-09-07 08:31:49 +00:00
John Maddock
6dfcc7e526
Big search and replace change of name for the ExpressionTemplates template parameter to class number.
...
[SVN r80418]
2012-09-06 09:50:47 +00:00
John Maddock
ce3354335c
Allow mixed precision binary operations.
...
Add tests for basic mixed precision usage.
[SVN r80394]
2012-09-04 08:20:26 +00:00
John Maddock
c7230f94ff
Extra test cases for more complete coverage.
...
Added test coverage makefile.
Fixed errors from extra test cases.
Rename a few traits.
[SVN r80328]
2012-08-31 11:57:55 +00:00
John Maddock
1e00790703
Rename mp_number_archetype.
...
Update docs with explicit conversion info.
Regenerate docs.
[SVN r80261]
2012-08-27 12:30:53 +00:00
John Maddock
d9901b5144
Fix remaining GCC C++11 failures.
...
Fix buggy test cases.
[SVN r80166]
2012-08-24 11:08:44 +00:00
John Maddock
b892e3f5ab
Big breaking change - make lossy construction explicit.
...
[SVN r80058]
2012-08-16 08:13:51 +00:00
John Maddock
6fe80f07de
Much improved concept docs.
...
Regenerate docs.
Make some cpp_int specific routines generic instead.
Changed divide-by-zero to be an overflow error.
[SVN r79952]
2012-08-10 08:37:37 +00:00
John Maddock
e2ef393c23
Big search and replace rename, removing mp_ prefix.
...
[SVN r79932]
2012-08-08 18:14:50 +00:00
John Maddock
8807532ee4
Added explicit conversion operators.
...
Moved some files into /detail/
[SVN r79926]
2012-08-08 16:12:33 +00:00
John Maddock
8a54889f35
Update comparison operators for better efficiency.
...
Rework delaunay performance test to use less disk space.
[SVN r79848]
2012-08-02 12:27:00 +00:00
John Maddock
c79fb41526
Rework comparison operators - note that existing backends are made less efficient by this at present.
...
[SVN r79823]
2012-07-31 18:14:14 +00:00
John Maddock
281c667b71
Update frontend to allow direct construction of backend.
...
Improve construction times for cpp_int from integers.
Allow constexpr construction.
Allow fixed precision cpp_int's with small bit counts.
[SVN r79692]
2012-07-23 08:57:44 +00:00
John Maddock
19ee491c55
Add noexcept support/markup where possible.
...
[SVN r79331]
2012-07-07 11:16:28 +00:00
John Maddock
f09ead8e37
Some file renaming and fixes from Steven Watanabe's comments.
...
[SVN r79141]
2012-06-27 18:25:10 +00:00
John Maddock
ebd7502fdc
Enhance pow and powm tests.
...
Quash some warnings.
Fix the IO tests on GCC.
[SVN r78423]
2012-05-11 17:19:13 +00:00
John Maddock
d4a2c46ac6
Update examples, reorganise docs, temporarily remove HTML before rebuilding.
...
Enhance test cases, including enabling loopback testing on cpp_dec_float io.
[SVN r77948]
2012-04-13 15:38:28 +00:00
John Maddock
ead32b9563
Squash some MSVC level 4 compiler warnings.
...
[SVN r77623]
2012-03-29 09:12:08 +00:00
John Maddock
4c6065717b
Add a few more integer specific bit-fiddling functions.
...
Fix some bugs in cpp_int left shift code.
Document some missing backend API's, and update docs.
[SVN r77583]
2012-03-27 11:45:01 +00:00
John Maddock
6ead744223
Fix fixed precision ints to work with non obvious bit counts.
...
[SVN r77473]
2012-03-22 11:54:15 +00:00
John Maddock
8433c69175
Disable expression templates for fixed precision types.
...
Restrict integer functions to integer types.
Improve Miller Rabin performance by filtering out small primes etc.
Improve Miller Rabin tests.
Change mp_int to tom_int to avoid conflict with global ::mp_Int type.
[SVN r77471]
2012-03-22 10:29:30 +00:00
John Maddock
24cff33935
Update Miller Rabin test to use small prime filtering.
...
Add some new integer type operations.
Update performance tests to match.
[SVN r77451]
2012-03-21 09:19:57 +00:00
John Maddock
d82fa61c81
Mostly remove references to fixed_int.
...
Update docs.
[SVN r77335]
2012-03-14 18:23:44 +00:00
John Maddock
7bed8d02f9
Add support for disabling expression templates via a second template parameter to mp_number.
...
Begin to update docs to reflect new cpp_int code.
[SVN r77323]
2012-03-13 18:30:18 +00:00
John Maddock
5caa15f798
Reorganisation: rename methods "eval_foo" rather than "foo" to avoid conflict with classes of the same name (GCC bug).
...
Move backends into sub-namespaces to avoid namespace pollution.
[SVN r77312]
2012-03-12 09:18:44 +00:00
John Maddock
5500ad3ea8
Add support for fixed precision and unsigned cpp_int's.
...
[SVN r77260]
2012-03-08 10:34:37 +00:00
John Maddock
bea3707326
Add initial version of an arbitrary precision integer type.
...
Hook up some more fixed_int tests.
[SVN r77141]
2012-02-29 13:05:51 +00:00
John Maddock
8d6dedf4b0
Complete renaming of cpp_float to cpp_dec_float.
...
Rebuild docs.
[SVN r77037]
2012-02-16 09:36:26 +00:00
John Maddock
380d627359
Big search and replace: change cpp_float to cpp_dec_float.
...
Also fix up some numeric_limits test failures.
[SVN r77032]
2012-02-15 13:09:45 +00:00
John Maddock
d69424adad
Fix bug in fixed_int::convert_to with negative numbers.
...
Fix bug in fixed_int shift operator when shifting by 0.
Add preliminary gcd/lcm support for integer types.
Add static asserts to floating-point only functions.
[SVN r76706]
2012-01-26 10:11:10 +00:00
John Maddock
a97c3bd896
Update docs to include fixed_int.hpp.
...
Remove 64-bit versions of fixed_int typedefs - better to use boost::int64_t instead.
[SVN r76433]
2012-01-12 13:56:22 +00:00
John Maddock
db83a1c4ad
Tentative rename of packed_cpp_int to fixed_int.
...
[SVN r76428]
2012-01-12 11:55:09 +00:00
John Maddock
30310e4a52
Another Boost.Rational fix.
...
Add tentative version of a fixed width, bit-packed 2's complement integer type.
[SVN r76234]
2011-12-30 18:21:08 +00:00
John Maddock
d7578f242c
Add numerator/denominator accessor functions to rational_adapter.hpp.
...
Define predefined rational number type for libtommath.
Add rational number specific tests to test_arithmetic.cpp.
Document rational_adapter and related stuff, regenerate docs.
[SVN r76130]
2011-12-24 13:13:16 +00:00
John Maddock
b9ea00966f
Fix modulus operations for negative numbers that should yield zero results (and update tests to match).
...
Fix boost::rational comparison operator support.
Fix GCC failures in test_rational_io.cpp.
Add adapter for rational types.
[SVN r76128]
2011-12-24 10:07:32 +00:00
John Maddock
a2dc3b968c
Fix remaining Boost.Rational support issues and add rational number IO test.
...
[SVN r76121]
2011-12-23 17:13:29 +00:00
John Maddock
fdcc1a5034
Document libtommath support, add error checking to tommath bitwise operators.
...
[SVN r75746]
2011-11-30 12:08:59 +00:00
John Maddock
ecead4525a
Suppress MSVC warnings in tests.
...
Add support for std::ios_base::fmtflags in string formatting.
Fix the errors that result from above change!
[SVN r75586]
2011-11-21 09:52:32 +00:00
John Maddock
050ae32c44
Add initial libtommath support.
...
Fix use of noexcept.
Remove dead files.
[SVN r75505]
2011-11-16 09:40:05 +00:00
John Maddock
c8eda6845e
Search and replace - rename mp_float cpp_float.
...
[SVN r75453]
2011-11-12 13:15:33 +00:00
John Maddock
6372f8b638
Get mp_float passing all the tests, fix some bugs in acos and atan implementations.
...
[SVN r75166]
2011-10-29 11:57:54 +00:00
John Maddock
b0ac20f391
Add port of e_float as a backend.
...
[SVN r75129]
2011-10-27 12:43:41 +00:00
John Maddock
c34e9f654f
Big search and replace namespace and class renaming: get rid of last references to "big_number" and "real".
...
[SVN r75093]
2011-10-23 11:23:13 +00:00
John Maddock
b8a60ca6ca
Rename "big_number*" to "mp_number*".
...
[SVN r74671]
2011-10-03 17:15:55 +00:00