Commit Graph

1243 Commits

Author SHA1 Message Date
John Maddock
10077c1a0c Fix exact sqrt's.
[SVN r85255]
2013-08-09 17:44:48 +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
Paul A. Bristow
16f091f3cd fully qualified enable_if and disable_if with boost:: to resolve ambiguity with Boost.Test on MSVC.
[SVN r85239]
2013-08-08 13:22:56 +00:00
John Maddock
6ab42a5611 Fix binary archive serialization.
Add rational serialization.

[SVN r85231]
2013-08-07 08:15:51 +00:00
John Maddock
8879d0cbc1 Fix deserialization when limb size is larger than that of the original archive.
[SVN r85220]
2013-08-06 08:30:33 +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
8d6ac4e631 Add missing serialization file
[SVN r85213]
2013-08-05 12:22:53 +00:00
John Maddock
904b93f22c Add tentative serialization support.
[SVN r85212]
2013-08-05 11:52:07 +00:00
John Maddock
86e42b0a19 Add missing parameter name.
[SVN r85205]
2013-08-04 08:19:13 +00:00
John Maddock
af494a898b Add support for integer square roots.
[SVN r85184]
2013-08-01 17:50:17 +00:00
John Maddock
d885506c9f Round mpfr floats towards zero when converting to an integer to match what built in floats do.
[SVN r85174]
2013-07-30 07:57:02 +00:00
John Maddock
fd86f0cda7 Fix type of std::string::find_first_not_of to suppress warnings.
[SVN r85135]
2013-07-23 17:07:27 +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
0bca8d4794 Change return type to reference to passed argument.
[SVN r84998]
2013-07-10 16:08:57 +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
34c4edb35a Document msb function.
Add docs for integer overloads of multiprecision non-member operations.
Regenerate docs.

[SVN r84981]
2013-07-08 12:35:22 +00:00
John Maddock
8b4c3e0f38 enable intrinsics for more compilers
[SVN r84975]
2013-07-07 16:49:36 +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
a90c5af5ae Update history and regenerate docs.
[SVN r84939]
2013-07-02 09:29:23 +00:00
John Maddock
cbf8fd9cc9 Correct output of small-integer types.
Fixes #8745.

[SVN r84928]
2013-07-01 18:14:14 +00:00
John Maddock
f2821a0231 Fix left shift operator.
Fixes #8741.

[SVN r84925]
2013-07-01 17:06:12 +00:00
John Maddock
573f35f5a9 Change to use std::string::size_type rather than unsigned.
Fixes #8748.

[SVN r84922]
2013-07-01 15:47:11 +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
3b8f3a84ba Remove some unused typedefs: fixes some gcc-4.8 warnings
[SVN r84904]
2013-06-25 17:48:04 +00:00
John Maddock
22b76da209 Add missing #include
[SVN r84898]
2013-06-24 12:08:20 +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
74d3d5d726 Fix MPFI constant initialization.
[SVN r84866]
2013-06-21 17:41:40 +00:00
John Maddock
e064bea8a9 Make unary + operator return by value - we can generate dangling references otherwise.
[SVN r84863]
2013-06-21 15:58:03 +00:00
John Maddock
61796abed2 Merge fixes for from Trunk.
Fixes #8692.
Fixes #8670.
Fixes #8667.

[SVN r84799]
2013-06-15 17:38:45 +00:00
John Maddock
d9d57d3b02 Update change history, regenerate docs.
[SVN r84797]
2013-06-15 16:58:25 +00:00
John Maddock
5303c9556a Fix bug in shift operator that doesn't always normalise when we should.
[SVN r84795]
2013-06-15 16:11:37 +00:00
John Maddock
fb2460c5d2 Add some noexcept specs to gmp_int.
[SVN r84777]
2013-06-14 12:42:36 +00:00
John Maddock
46aad8e4c2 Apply patch from #8692.
Refs #8692.

[SVN r84763]
2013-06-13 16:21:59 +00:00
John Maddock
ad76df9f77 Change type of string index to std::string::difference_type.
[SVN r84729]
2013-06-10 15:32:34 +00:00
John Maddock
d073af87c5 Fix for 0 % N giving wrong answer in cpp_int.
Refs #8670.

[SVN r84716]
2013-06-09 16:18:38 +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
d69a31d737 Merge doc typo fix.
[SVN r84536]
2013-05-28 08:21:15 +00:00
John Maddock
3ee4005731 Fix typos.
[SVN r84535]
2013-05-28 07:54:58 +00:00
John Maddock
122d4c5a36 Merge doc changes (History update).
[SVN r84298]
2013-05-16 12:22:29 +00:00
John Maddock
567f0604af Update doc history, regenerate.
[SVN r84297]
2013-05-16 12:11:54 +00:00
John Maddock
5f0de18066 Merge changes from trunk - support for __float128 and user-defined literals.
[SVN r84295]
2013-05-16 10:16:32 +00:00
John Maddock
5bb72becad Add docs for user-defined literals.
Regenerate docs.

[SVN r84235]
2013-05-11 16:12:47 +00:00
John Maddock
eede16de82 Fix sizeof usage: fixes gcc-4.8.0 and clang failures.
[SVN r84220]
2013-05-10 12:20:22 +00:00
John Maddock
4a8d87954f Fix __float128 test case, update messages from LInpack benchmark.
[SVN r84219]
2013-05-10 12:19:14 +00:00
John Maddock
e444848287 Merge fix for undefined behaviour/typo.
[SVN r84111]
2013-05-02 16:16:46 +00:00
John Maddock
1ac5e234e0 Fix undefined behaviour.
[SVN r84107]
2013-05-02 11:50:46 +00:00
John Maddock
dd420d8d3b Add tentative support for user-defined-literals.
[SVN r84106]
2013-05-02 10:16:57 +00:00