Commit Graph

340 Commits

Author SHA1 Message Date
jzmaddock
0481ca18ec Change floating point to rational number conversions to be implicit as per https://svn.boost.org/trac/boost/ticket/10082. 2014-06-01 18:43:16 +01:00
jzmaddock
0b8e0e0786 Fix for built in integer types, see https://svn.boost.org/trac/boost/ticket/10073 2014-05-28 13:34:31 +01:00
jzmaddock
4cb3e58b62 Fix compilation of examples, plus Jamfile, plus one comparison bug in cpp_bin_float. 2014-05-05 16:41:46 +01:00
jzmaddock
5a5fb6fbe0 Fix for assignment from string not resetting sign bit, see: https://svn.boost.org/trac/boost/ticket/9936 2014-04-24 09:34:57 +01:00
jzmaddock
125e695280 Fix double_limb_type to make sure it's the widest type on the system 2014-04-14 19:00:34 +01:00
jzmaddock
961a971e2b Ensure Math constants use explicit construct-from-string rather than lexical_cast. 2014-04-02 16:48:35 +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
9eb732b956 Disable some overloads which use rearrangements not suitable for integer types.
See https://svn.boost.org/trac/boost/ticket/9802.
2014-03-26 13:37:04 +00:00
jzmaddock
8b27d6b269 More fixes for GCC versions < 4.8 which require FP_* macros to be cast to int to avoid overload issues in operator==. 2014-03-24 09:11:35 +00:00
jzmaddock
ae9bf079bc Merge branch 'develop' of https://github.com/boostorg/multiprecision into develop 2014-03-21 11:24:57 +00:00
jzmaddock
d82e425293 Tentative fix for gcc-4.7 and earlier failures on some machines but not others. 2014-03-21 11:24:15 +00:00
jzmaddock
00413c9689 Fix constexpr issue with gcc-4.6.x 2014-03-20 17:45:20 +00:00
jzmaddock
3317ee0d4a More fixes for compiling with -ftrapv under gcc 2014-03-09 10:04:38 +00:00
jzmaddock
bdacea2934 Partial fix for https://svn.boost.org/trac/boost/ticket/9740 to allow code to be used with -ftrapv in gcc. 2014-03-08 10:57:01 +00:00
jzmaddock
9bf3b419c1 Minor fixes for Intel C++ on Win32. 2014-02-21 17:29:05 +00:00
jzmaddock
b3b9164bb9 Adjust big_lanczos now we have Sterling's approx in Boost.Math for large digit counts.
Add extra high-precision test for gamma functions.
2014-01-30 09:35:14 +00:00
Christopher Kormanyos
58b0752d12 Trivial clean-up in cpp_dec_float.hpp. 2014-01-27 23:23:36 +01:00
jzmaddock
9a05e24994 Fix for https://svn.boost.org/trac/boost/ticket/9579
Make sure conversion to built in integer does the right thing when the result is in range.
Allow convert_to and conversion operator to work when the target type is another number which does not have an existing implicit/explicit conversion.
2014-01-17 10:04:55 +00:00
jzmaddock
5302b484a4 Add serialization support to cpp_bin_float and document. 2013-12-22 13:35:56 +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
jzmaddock
f552968b21 Tentative fix to allow move-copy from an already moved-from object - see https://svn.boost.org/trac/boost/ticket/9497. 2013-12-21 17:00:16 +00:00
jzmaddock
8fc374c94e Apply fix for https://svn.boost.org/trac/boost/ticket/9336. 2013-12-21 16:34:09 +00:00
Christopher Kormanyos
877851ece4 Update license information. 2013-12-16 21:00:06 +01:00
jzmaddock
a7db4fb2d8 Fix pow and exp, plus numeric_limits min/max values. 2013-12-04 17:15:30 +00:00
jzmaddock
8fc8406008 Fix cpp_bin_float gcc compile.
Fix tests to work as intended.
2013-12-04 17:14:38 +00:00
John Maddock
10ed707a68 Initial merge of cpp_bin_float code from sandbox.
[SVN r86781]
2013-11-21 19:05:42 +00:00
John Maddock
239fd62dbe Add some better error checks to interval construction.
[SVN r86779]
2013-11-21 13:04:20 +00:00
John Maddock
25e5455b92 Fix min/max_exponent values (these should be base 10 not base 2 as before).
[SVN r86778]
2013-11-21 10:31:03 +00:00
John Maddock
68406722d5 Fix type of cast target when casting to allocator.
Add additional type of argument to frexp/ldexp.
Template integer types in float IO conversion routines.
Improve termination condition in asin code.
Fix some compiler errors that can occur in conversion routines.

[SVN r86339]
2013-10-17 15:11:13 +00:00
John Maddock
0a32de0fe6 Fixes for cpp_bin_float
[SVN r86294]
2013-10-13 18:13:47 +00:00
John Maddock
1972871e36 Use memcpy in more places.
Add optimized bitwise operations for unsigned integers.
Fixes #9243.
Refs #9231.

[SVN r86262]
2013-10-12 12:02:11 +00:00
John Maddock
86a3ba299f Optimize copying of allocator-free cpp_int's via memcpy.
Fix consistency of checks for exponents < 0 in powm.
Fixes #9231.
Refs #9236.

[SVN r86258]
2013-10-12 08:19:29 +00:00
John Maddock
7c2727ad61 Enable divide_qr for mixed arguments.
[SVN r86193]
2013-10-07 18:16:19 +00:00
John Maddock
d5323e2618 Fix bug in cpp_int serialization code
[SVN r85595]
2013-09-07 18:16:22 +00:00
John Maddock
9df261700f Fix test failures exposed by changes to Boost.Rational.
[SVN r85585]
2013-09-06 15:43:07 +00:00
John Maddock
331a4e3e2c Fix some invalid comparisons (GCC compiler errors).
[SVN r85573]
2013-09-05 16:08:23 +00:00
John Maddock
45c93d8fa2 Optimise squaring to use mpfr_sqr and mpfi_sqr.
[SVN r85449]
2013-08-24 17:21:28 +00:00
John Maddock
47ed6aca2e Fix some buglets in decimal rounding.
[SVN r85420]
2013-08-22 12:38:19 +00:00
John Maddock
72268f9705 Improve _Quad/__float128 selection logic.
[SVN r85354]
2013-08-15 10:45:49 +00:00
John Maddock
3f405908ad Fix mpl logic for enumerating through typelist.
[SVN r85352]
2013-08-15 10:00:52 +00:00
John Maddock
c8884355c8 Fix std::numeric_limits<>::round_error().
[SVN r85347]
2013-08-14 15:31:48 +00:00
John Maddock
bad2b89ac1 Modify cosine default evaluation code to call the sin code: less code and better precision.
[SVN r85333]
2013-08-13 17:05:54 +00:00
John Maddock
3289ba1741 Fix overflow bug.
[SVN r85314]
2013-08-12 11:58:17 +00:00
John Maddock
749394599b Fix digits10 member for cpp_int's.
[SVN r85312]
2013-08-12 11:08:47 +00:00
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