Commit Graph

373 Commits

Author SHA1 Message Date
jzmaddock
f066d288cd Partly back out previous patch - not all the workarounds were required after all. 2015-02-12 13:32:01 +00:00
jzmaddock
8a7fd7cf1a Fixes for Intel-15 compile failures. 2015-02-12 13:14:10 +00:00
jzmaddock
0cfe21cf1c Fix some more noexcept failures, and tighten up the tests. 2015-02-10 16:51:36 +00:00
jzmaddock
9927d49cb9 Many more fixes and tests for noexcept issues, see https://svn.boost.org/trac/boost/ticket/10990 2015-02-08 18:16:31 +00:00
jzmaddock
33630bc407 Clean up and enhance noexcept support, add tests to validate cpp_int and cpp_rational are performing as expected. See https://svn.boost.org/trac/boost/ticket/10990 2015-02-07 17:54:09 +00:00
jzmaddock
ca1f469772 Assert preconditions that are broken in https://svn.boost.org/trac/boost/ticket/10924 2015-02-06 19:02:37 +00:00
jzmaddock
98ff84b860 Mark some more functions with conditional noexcept support, also simplified/removed some casts which weren't required. 2015-02-06 18:33:58 +00:00
jzmaddock
4340817fd8 If there are no long double functions be very careful where we set the limits as frexp/ldexp called with a value outside the range of a double will return +INF, which then causes cpp_dec_float to go into an infinite loop. Fixes Cygwin GCC issue. See https://svn.boost.org/trac/boost/ticket/10924 2015-02-06 18:32:31 +00:00
jzmaddock
184d9847b0 Fix cygwin build - don't use itrunc on platforms with no long double support. 2015-02-06 18:30:26 +00:00
jzmaddock
7e18be7902 Add missing out-of-line definitions. 2015-02-06 18:29:33 +00:00
jzmaddock
f57ecf8290 Fix type traits dispatching to work with pending new version. 2015-01-29 11:47:32 +00:00
Jürgen Hunold
37815e5dce adjust to move of gcd/lcm from math to integer library 2015-01-23 18:01:34 +01:00
jzmaddock
92748f6327 Add missing #include. 2015-01-19 18:34:00 +00:00
Jürgen Hunold
bc8ce20058 adjust to move of gcd/lcm from math to integer library 2015-01-19 11:06:18 +01:00
jzmaddock
55bbda0c31 Fix rare bug that breaks invariants in exp. 2014-10-09 16:41:21 +01:00
jzmaddock
63f53c48f3 Merge branch 'develop' of https://github.com/boostorg/multiprecision into develop 2014-10-09 16:13:21 +01:00
jzmaddock
761c7c8c38 Fix some C++03 mode failures. 2014-10-09 16:12:56 +01:00
jzmaddock
f2522106f5 Fix case where intmax_t is smaller than long long, also apply gcc-4.6 workaround to Intel which has the same bug (all versions to 15.0). 2014-09-23 19:42:58 +01:00
jzmaddock
cd1e62a4b0 Fix for issue https://svn.boost.org/trac/boost/ticket/10405
Change code snippets in docs to be complete programs to avoid any confusion.
Fix failure caused by change to Boost.Random.
Regenerate docs.
2014-08-29 18:54:09 +01:00
jzmaddock
290c3da308 Fix typos. 2014-07-16 18:16:54 +01:00
jzmaddock
296a95a1a2 Merge branch 'develop' into Issue_10085 2014-06-30 11:53:31 +01:00
jzmaddock
c2c2fd6d79 Enable correct rounding for mpq_rational -> floating point conversions. 2014-06-29 13:30:15 +01:00
jzmaddock
f779941205 Fix warnings and compiler errors, plus rounding error in generic_interconvert.hpp.
Add comments about rounding to gmp.hpp.
Update tests to check mpq_rational.
2014-06-29 10:36:19 +01:00
jzmaddock
3b9399c521 Fix rounding bug in cpp_bin_float - in the case that the remainder is zero, we may still have a tie if the extra bit in the quotient is one. 2014-06-29 10:34:45 +01:00
jzmaddock
6ae735d8d5 Commit test file and improve tests some more. Fix some bugs too! 2014-06-28 17:09:50 +01:00
jzmaddock
66fe81cdbc Update and enhance tests. 2014-06-28 16:27:50 +01:00
jzmaddock
298b0dd5cd Tentative implementation of exactly-rounded rational to float conversions. 2014-06-19 18:28:43 +01:00
jzmaddock
45e242d17d Implement exact base-10 floating point to rational conversion. 2014-06-17 18:20:59 +01:00
jzmaddock
9f9394940a Add scalbn, ilogb, logb and tests and docs. 2014-06-17 08:53:54 +01:00
jzmaddock
261e433a1b Add scalbn and logb functions, plus float->rational generic conversion (base 2 only at present). 2014-06-08 18:55:11 +01:00
jzmaddock
3eec6eb225 Tidy up mangled comments 2014-06-08 18:54:22 +01:00
jzmaddock
1cb97ff2cd Fix definition of checked_cpp_rational.
Add missing "unsigned long" to typelist.
2014-06-07 09:32:28 +01:00
jzmaddock
cb8539fb4d First attempt at issue. 2014-06-06 18:16:34 +01:00
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