Commit Graph

537 Commits

Author SHA1 Message Date
jzmaddock
059cb63649 Prevent double rounding when converting to a denormalized float.
See https://svn.boost.org/trac/boost/ticket/12527.
2016-11-05 17:20:26 +00:00
jzmaddock
e3d125c8c7 Fixes for msvc-12.0 test failures. 2016-10-27 18:34:52 +01:00
jzmaddock
ed43204e92 Fix ceil cpp_bin_float to return signed zero when coming up from below.
Also fixes same issue in round/trunc.
See https://svn.boost.org/trac/boost/ticket/12525.
2016-10-26 18:48:53 +01:00
jzmaddock
5a5612c0a9 Fix sign of result when subtraction yields zero.
See https://svn.boost.org/trac/boost/ticket/12524.
2016-10-26 17:55:31 +01:00
jzmaddock
ef0ef9b515 Fix conversion to floating point types when the exponent value would overflow an int.
See https://svn.boost.org/trac/boost/ticket/12512
2016-10-24 18:48:09 +01:00
jzmaddock
75dc2ebb33 Switch floating point types to be zero initialized when default constructed.
This is now consistent between types, and matches what explicitly initialized built in types do.
See https://svn.boost.org/trac/boost/ticket/12500.
2016-10-23 19:12:56 +01:00
jzmaddock
1c2ecb6f6e Fix iostream parsing error, see https://svn.boost.org/trac/boost/ticket/12488 2016-10-23 18:10:55 +01:00
jzmaddock
cfeefc8330 Change calls to generic_interconvert to use ADL. 2016-10-17 18:40:43 +01:00
jzmaddock
4859528993 Fix mpfi conversions and tests. 2016-10-17 18:02:38 +01:00
jzmaddock
ea357ba6f6 Complete floating point conversion tests.
Allow float->int explicit conversions.
Remove float->int convert-fial tests.
Add enable_if restrictions on op= operators so explicit conversions don't inadvertently take place.
2016-10-12 19:52:28 +01:00
jzmaddock
fb9503920a Add more interconversion tests and fix resulting failures. 2016-10-03 18:01:16 +01:00
jzmaddock
956402a841 Add missing return statement. 2016-09-28 19:39:13 +01:00
jzmaddock
7fc5843361 All calls to explicit conversions where the target type is a "number" should use the same code as assignment to "number". 2016-09-28 19:38:47 +01:00
jzmaddock
cd20cf7db4 Merge branch 'develop' into c99
# Resolved Conflicts:
#	doc/html/boost_multiprecision/indexes/s01.html
#	doc/html/boost_multiprecision/indexes/s02.html
#	doc/html/boost_multiprecision/indexes/s03.html
#	doc/html/boost_multiprecision/indexes/s04.html
#	doc/html/index.html
#	include/boost/multiprecision/detail/default_ops.hpp
2016-09-23 09:01:56 +01:00
jzmaddock
328ea5738c C99: Fix some GCC test failures. 2016-09-22 19:04:56 +01:00
jzmaddock
105b324d9d Document eval_pow2,
Optimise default eval_pow2 for integer args.
2016-09-22 11:05:38 +01:00
jzmaddock
19e41b0155 Add exp2 support. 2016-09-22 10:53:06 +01:00
jzmaddock
d624d3fd94 C99: add scalbln, rinmt and tgamma. 2016-09-18 18:29:00 +01:00
jzmaddock
d25834c52f C99: Add support for remainder and remquo. 2016-09-18 17:34:48 +01:00
jzmaddock
b2108867c7 Fix for cpp_int conversions. 2016-09-15 19:08:38 +01:00
jzmaddock
e1f3e4989f C99: Add nextafter and nexttoward 2016-09-09 19:39:04 +01:00
jzmaddock
67e0dc15ee C99: Add log1p and log2 support. 2016-09-08 18:42:20 +01:00
jzmaddock
5b7f9f1a03 C99: Add support for lgamma, lrint and llrint. 2016-09-07 18:18:31 +01:00
jzmaddock
de84bd4902 C99: Add support for number comparison functions plus hypot. 2016-09-07 11:51:55 +01:00
jzmaddock
cbe145a7cb C99: Fix location and namespaces of function overloads 2016-09-04 18:51:24 +01:00
jzmaddock
00fc161f3c C99: Fix regression failures in new code.
Test for negative interactions with std:: functions.
2016-09-04 10:21:28 +01:00
jzmaddock
e1b66e8e7e C99: Initial fma support. 2016-09-02 16:48:37 +01:00
jzmaddock
6e3f814cec Fix bug in self assignment of complex expression templates.
Fixes https://svn.boost.org/trac/boost/ticket/12408.
2016-08-27 18:27:54 +01:00
jzmaddock
95a414c089 Fix spelling typo. 2016-08-20 09:49:36 +01:00
jzmaddock
339818c018 Fix compiler errors when converting from cpp_int's to cpp_bin_float's
As reported on the mailing list.
Also adds new test case.
2016-08-17 18:12:41 +01:00
jzmaddock
d5edf41235 Disable some overloads for VC12 and earlier - for some reason the compiler can't cope with them :( 2016-08-11 10:26:11 +01:00
jzmaddock
963c150746 Add fdim support. 2016-08-10 19:03:00 +01:00
jzmaddock
e266a5ad51 Fix up float128 preliminary C99 support 2016-08-07 14:08:28 +01:00
jzmaddock
45132937ec Fix GCC test failures in new C99 code. 2016-08-06 19:22:54 +01:00
jzmaddock
38117c2ad1 Begin adding C99 floating-point support. 2016-08-06 19:09:22 +01:00
jzmaddock
a9c40598a1 Merge branch 'modf' into develop
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2016-08-04 13:15:27 +01:00
jzmaddock
2f0782a112 Fix some Intel and C++03 test failures 2016-07-27 09:42:25 +01:00
John Maddock
0492ba22bb Merge branch 'develop' of https://github.com/boostorg/multiprecision into develop 2016-07-26 16:57:34 +00:00
John Maddock
3d18f5002f Fix remaining Solaris test failures. 2016-07-26 16:57:28 +00:00
jzmaddock
7ebd9dfd9b Fix fencepost error in rational->float conversion.
Add some test cases for the issue.
Fixes https://svn.boost.org/trac/boost/ticket/12327.
2016-07-25 18:57:39 +01:00
jzmaddock
028a0f7e30 Fix some big-endian misconceptions.
Not all constructors are available when we're not little-endian.
2016-07-23 19:06:22 +01:00
jzmaddock
7bf131d7af Update ublas support for latest ublas develop. 2016-07-22 19:10:06 +01:00
jzmaddock
9f43e1c88e Correct conversion to signed integer.
Add tests for integer round-trip.
Fixes: https://svn.boost.org/trac/boost/ticket/12343.
2016-07-22 17:54:40 +01:00
jzmaddock
3ed352297a Add back operator void conversion operators for gcc-4.7 2016-07-14 19:30:50 +01:00
jzmaddock
0e82dcbe11 Switch to new Boost.Config macros for thread_local detection. 2016-07-04 18:42:40 +01:00
jzmaddock
059c6d940f Fix macro name in previous commit. 2016-06-29 18:08:10 +01:00
jzmaddock
a251d3c974 Fix clang thread_local detection. 2016-06-27 19:42:48 +01:00
jzmaddock
c7e29b02ff Test and allow MSVC compiled code to be used with /RTC1 /RTCc etc. 2016-06-16 13:07:10 +01:00
jzmaddock
0b7591dd3a Add workaround for MPIR issue in gmp.hpp.
MPIR signature of mpf_get_d_2exp differs from GMP.
2016-06-07 19:14:31 +01:00
jzmaddock
a2174c950e Add workaround for non-SFINAE-expression compilers.
Gets conversions from expression templates working in these cases.
2016-06-07 18:24:29 +01:00