Commit Graph

743 Commits

Author SHA1 Message Date
jzmaddock
83e48c5c9f Fix standalone versions of itrunc and lltrunc.
Fixes: https://github.com/boostorg/multiprecision/issues/509
2023-02-08 18:50:51 +00:00
jzmaddock
eb5525e282 Fix potentially uninitialized storage when parsing octal strings.
Fixes https://github.com/boostorg/multiprecision/issues/526
2023-02-05 12:01:41 +00:00
Christopher Kormanyos
b1b447a6f2 Improve sin() / cos() tests in CI 2023-01-22 14:42:27 +01:00
jzmaddock
792a091f4c Add ARM64 and s390x testing. (#519) 2023-01-17 12:22:47 +00:00
jzmaddock
09386741e2 Correct test configuration.
Add copyright and licence notices to new files.
2023-01-14 09:22:36 +00:00
jzmaddock
7bf1dd06bb Add forward declaration header.
Also fixes logged_adaptor.
Fixes: https://github.com/boostorg/multiprecision/issues/516
Fixes: https://github.com/boostorg/multiprecision/issues/508
2023-01-13 18:37:17 +00:00
Christopher Kormanyos
759a10266c Non-functional adaptions prepare double-float 2023-01-03 10:07:08 +01:00
Matt Borland
6ed58f929c Require C++14 Support 2022-12-27 14:48:30 +01:00
Matt Borland
857a50f0db Add missing copyright notice 2022-12-20 11:55:14 +01:00
jzmaddock
e90303d124 Add missing contains_self overload.
Needed for powm.
Fixes https://github.com/boostorg/multiprecision/issues/506.
2022-12-02 16:56:04 +00:00
Matt Borland
91de027e9f Group tests to speed up GHA runs 2022-10-16 13:09:03 -07:00
jzmaddock
1098e1b08c Correct gcc-12 mingw failures. 2022-10-11 17:52:13 +01:00
jzmaddock
12eb00ff47 Modify git_issue_488.cpp test to C++11. 2022-08-29 18:41:35 +01:00
jzmaddock
a965851173 Correct import_bits when importing just the leading bits from each value.
Add test case.
Fixes https://github.com/boostorg/multiprecision/issues/488.
2022-08-29 17:47:38 +01:00
Matt Borland
87579e39fd Add C++14 sized deallocation 2022-07-11 12:45:06 -07:00
Matt Borland
b19681d692 Fix unused variable warning 2022-07-11 12:44:45 -07:00
Matt Borland
a7c9d05aa5 Suppress non-ISO type warnings in constexpr testing 2022-07-11 12:39:49 -07:00
Matt Borland
ec0481ec7b Fix macro error 2022-07-11 12:30:36 -07:00
Matt Borland
9e424ff5a5 Suppress non-ISO type warnings 2022-07-11 12:21:16 -07:00
jzmaddock
804641e9ef Correct search and replace SNAFU in test case. 2022-07-02 19:36:41 +01:00
jzmaddock
7e677e83eb Fix conflict between cstdfloat.hpp and multiprecision. (#474)
* Tentatively fix conflict between cstdfloat.hpp and multiprecision.

* Add missing struct to new code path.

* Reconfigure again for cstdfloat.hpp interop.

* Add missing #includes to float128.hpp.
Make constexpr __float128 arithmetic tests behave the same way, irrespective of whether numberic_limits is specialized for that type.

* Make tests conditional on BOOST_HAS_FLOAT128
2022-06-17 18:37:06 +01:00
jzmaddock
7e72fb9350 Add missing file. 2022-06-04 17:53:53 +01:00
jzmaddock
7645043aa6 Fix input streaming for trailing delimiters.
Fixes https://github.com/boostorg/multiprecision/issues/468.
2022-06-04 16:00:01 +01:00
Matt Borland
2a2cb93875 Remove from CI run and add missing header 2022-05-28 16:47:39 -07:00
Matt Borland
b30cfbb5dd Fix for issue #464 2022-05-28 08:54:44 -07:00
jzmaddock
b63b6fe7fe Add enhanced tests for rational number construct and assign.
Fix the errors that result in rational_adaptor and gmp.
2022-04-28 17:59:47 +01:00
jzmaddock
7e8d2aee20 Merge pull request #418 from mborland/math_standalone
Math standalone
2022-02-28 17:48:30 +00:00
Matt Borland
78e2be1a6d Conditionally disable math usage in default_ops 2022-02-22 11:43:03 +01:00
jzmaddock
0251625d98 Disable fixed-precision tests for msvc-14.1 and earlier.
It doesn't perform bankers rounding for double IO which breaks all our tests.
2022-02-12 16:48:33 +00:00
jzmaddock
685302681b Add missing test case. 2022-02-11 18:25:13 +00:00
Matt Borland
cb537aa47a Add standalone implementation of lltrunc 2022-02-11 14:38:21 +01:00
jzmaddock
485fa7c9ae Fix output at zero decimal precision and fixed formatting...
To output rounded to nearest integer.
Add new tests.
Fixes: https://github.com/boostorg/multiprecision/issues/416
Fixes: https://github.com/boostorg/multiprecision/issues/388
2022-02-11 10:13:16 +00:00
Christopher Kormanyos
a57d0c7d43 [ck skip] Merge branch 'develop' into try_to_get_gcc5_back_in_ci 2022-02-02 11:56:49 +01:00
Christopher Kormanyos
33adaa160c [ci skip] clean the test code under observation 2022-02-02 11:41:52 +01:00
Christopher Kormanyos
35e1c29dab Repair the use of static_assert 2022-02-02 10:18:06 +01:00
Christopher Kormanyos
35b0bd7047 Try repair test_cpp_rational (not just g++-5) 2022-02-02 09:58:44 +01:00
Christopher Kormanyos
421778741c Revise timer and print debug points in test 2022-02-02 09:00:39 +01:00
Christopher Kormanyos
41acf076e2 Repair timer constexpr-ness again 2022-02-01 23:22:27 +01:00
Christopher Kormanyos
d3f70d9131 Remember #include <chrono> in reworked timer 2022-02-01 22:53:50 +01:00
Christopher Kormanyos
8810158a36 Complete rework or timer.hpp 2022-02-01 20:15:37 +01:00
jzmaddock
a8ab907e20 Ensure remainder has correct sign when the result is zero.
Also ensure float128 specializations of eval_signbit are actually called.
Change return type of signbit to bool to match std::signbit and update docs.
Add test case.
Fixes https://github.com/boostorg/multiprecision/issues/426.
2022-02-01 19:02:02 +00:00
Christopher Kormanyos
ab4068978e Be safer with obvious float artifacts (if any) 2022-02-01 18:49:04 +01:00
Christopher Kormanyos
376ffc4279 Try repair syntax on running test_cpp_rational(s) 2022-02-01 14:49:50 +01:00
Christopher Kormanyos
fa69ae1f2b Resolve g++-5 tests for FP except search 2022-02-01 13:19:44 +01:00
jzmaddock
1b345f5c78 Add missing linker options to standalone tests.
Fixes linker errors when building with -std=gnu++XX and new test_arithmetic.hpp version.
2022-01-24 18:19:04 +00:00
jzmaddock
150cf95712 Stop relying on if constexpr in new test case. 2022-01-23 09:17:37 +00:00
jzmaddock
4bfdc1bae1 Fix some mpq rational arithmetic errors:
Multiplication by zero should not proceed via gcd.
Multiplication by scalar should be restricted to integer types (not floats).
Add some more tests to catch these cases.
2022-01-22 18:34:09 +00:00
Matt Borland
2e067d2d76 Disable lexical_cast in standalone mode 2022-01-08 09:47:05 +02:00
Matt Borland
c7cbbbd840 Fix macro error from rebase 2022-01-07 14:10:30 +02:00
Matt Borland
50957704b3 Revert "Revert "Merge pull request #403 from mborland/standalone_fixes""
This reverts commit 04b327b24f.
2022-01-06 20:37:43 +02:00