48 Commits

Author SHA1 Message Date
ckormanyos b5725b5ba8 Intended to address issue722 2025-07-12 16:01:21 +02:00
ckormanyos 7371ebf77d Patch tests for double-fp 2025-07-07 20:48:23 +02:00
ckormanyos f5d4bbf815 Minor corrections selected C99 edge cases 2025-07-07 19:54:22 +02:00
ckormanyos 600568762c Revert test needing slight backend repairs 2025-07-07 18:33:06 +02:00
ckormanyos cef08fae94 More tests and repair edge case pow 2025-07-07 16:40:20 +02:00
ckormanyos e2a99d6b0d Dedicated test-traits and MSVC easier 2025-06-27 15:28:52 +02:00
ckormanyos 695c3957d1 Address review comments for tests 2025-06-27 14:13:55 +02:00
ckormanyos 748b7511ae Handle recent review comments 2025-06-19 13:28:31 +02:00
Christopher Kormanyos e3e05acd7f Add cpp_double_fp and exercise arithmetic_tests 2023-01-06 08:57:51 +01:00
Matt Borland d85e3f2b34 replace boost::long_long_type and boost::ulong_long_type 2021-11-26 20:29:08 +02:00
jzmaddock 5f419ece9a Test debug/logged_adaptors with nearly everything.
Fix up all the resulting failures.
Fixes: https://github.com/boostorg/multiprecision/issues/329.
2021-06-11 16:52:44 +01:00
Christopher Kormanyos b59a9d9738 [CI SKIP] Weak workaround TLS, hope to get green 2021-01-22 19:27:40 +01:00
jzmaddock cb514e9249 Giant C++11 refactor removing:
BOOST_STATIC_ASSERT
BOOST_STATIC_CONST
boost::enable_if/disable_if
Changed many traits class usages from boost:: to std::.
2021-01-13 14:33:48 +00:00
Christopher Kormanyos b459296cd3 Move the location of a comment. 2020-01-21 22:24:23 +01:00
Christopher Kormanyos ab7b53a7e1 Isolate new tgammaq tests only for use case float128 2020-01-21 06:06:50 +01:00
Christopher Kormanyos 536587e173 Add tests of tgamma for pos/neg reals near origin. 2020-01-20 20:12:51 +01:00
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