Commit Graph

32 Commits

Author SHA1 Message Date
pabristow
86a7142d96 Edits to satisfy the picky inspect.exe program, now passing local tests using MSVC 14.2, except for six cpp_int*serial*.txt testdata files missing licence. 2019-08-14 18:02:10 +01:00
jzmaddock
877753246f clang-format: apply new format to (almost) everything. 2019-07-15 18:25:17 +01:00
jzmaddock
3772428c1b Correct mpfr lgamma to return correct sign when requested.
Found while testing 1F1.
2019-03-21 20:16:02 +00:00
jzmaddock
8d281cc47f Apply "Assignment Preserves Precision of Source".
APPoS for short, throughout the library including in mixed precision arithmetic which should now always promote to the highest precision of any of the arguments.
2018-09-06 20:37:56 +01:00
jzmaddock
68ea8d6a40 Multiprecision: split up test_sf_import_c99.cpp some more to avoid over-large object files. 2017-12-30 18:11:31 +00:00
jzmaddock
1d19b31132 Multiprecision: begin to fix VC12 failures from last series of commits.... still one to go. 2017-12-27 19:38:08 +00:00
jzmaddock
8d04a03850 Multiprecision: Fix msvc-14.1 C++17 warnings. 2017-12-26 19:22:21 +00:00
jzmaddock
a4b198e1b7 Multiprecision.cpp_bin_float: Fix errors in exponent usage when exponent type is a long long.
See https://svn.boost.org/trac10/ticket/13264.
Fix previously unsupported situation: conversion of narrow cpp_bin_float to wider integer type.
See https://svn.boost.org/trac10/ticket/13301.
Improve test coverage for cpp_bin_floats with large exponent types, and/or dynamic allocators.
Fix issue in numeric_limits::max() that caused a complement of a signed integer number to be taken when the allocator is dynamic.
Fix heuristic in exp() function that caused a crazy number of iterations to be taken when the exponent was very large.
2017-12-26 17:54:41 +00:00
jzmaddock
d2ed3f881a Change expected value from logb(NaN) to largest/smallest value of the exponent type. 2017-06-12 09:11:13 +01:00
jzmaddock
4c36616841 CI: Fix some remaining issues:
* Build with --hash as otherwise command line gets too long on Windows machines.
* Disable tests that generate object files too large for gcc on windows.
* Split cpp_dec_float tests up a bit to reduce object file size.
* Use boost::int46_t not ::int64_t in test case.
* Disable test_arithmetic_backend_concept.cpp with original mingw32 which has issues fixed in mingw64.
2017-06-04 19:36:59 +01:00
jzmaddock
f4dceca5dc Disable some float128 tests when running under older gcc versions -
no point in testing for old bugs in libquadmath.
2017-03-03 09:20:58 +00:00
jzmaddock
e108817e69 C99 tests: disable one more mpfr case fixed in recent releases. 2017-01-31 19:56:31 +00:00
jzmaddock
9341113864 C99 test: don't test buggy mpfr versions. 2017-01-31 19:54:49 +00:00
jzmaddock
7deabbe0d4 Previous commit was incomplete. 2017-01-31 19:46:26 +00:00
jzmaddock
c99bb4d418 Fix tests use of min/max types and correct type for the exponent of the number. 2017-01-31 19:41:35 +00:00
jzmaddock
6139de5732 Add MPFR version info to test. 2017-01-31 19:21:51 +00:00
jzmaddock
c0df5b6747 Change ilogb to consistently return the minimum value of the exponent type
(which may be either narrower or wider than the int return type specified in C99).
Change transcendental code which uses ilogb for loop termination, to check for
a minimal value return to correctly handle the case that the value has gone to zero.
See https://svn.boost.org/trac/boost/ticket/12625
2016-12-03 08:50:38 +00:00
jzmaddock
26ceb6ef38 Get cpp_dec_float, float128, and mpfr passing the C99 annex F tests.
See https://svn.boost.org/trac/boost/ticket/12581.
2016-12-02 17:54:36 +00:00
jzmaddock
138a9055e2 Big commit to bring things into line with C99 Annex F.
See https://svn.boost.org/trac/boost/ticket/12581.
2016-11-30 19:00:55 +00: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
9f5b8ab4ad Fix for libstdc++ bug 2016-09-19 19:10:02 +01:00
jzmaddock
87ae4edc75 C99: trivial test for comparison functions. 2016-09-18 18:36:18 +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
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
00fc161f3c C99: Fix regression failures in new code.
Test for negative interactions with std:: functions.
2016-09-04 10:21:28 +01:00
jzmaddock
963c150746 Add fdim support. 2016-08-10 19:03:00 +01:00
jzmaddock
e6fab45edf Add missing test file. 2016-08-06 19:12:51 +01:00