35 Commits

Author SHA1 Message Date
Matt Borland
01f476d229
Replace 0 as null pointer constant with nullptr 2022-07-11 13:25:22 -07:00
Matt Borland
389b1b8d2d
Fix overflow from implicit type conversion 2022-07-11 12:26:33 -07:00
jzmaddock
d78e4ba6ad Correct conversion operators so they work in non gnu mode.
Use typedefs for __int128 and __float128 throughout.
Remove lexical tommath conversions in favour of "proper" conversion operators.
2022-01-02 10:49:00 +00:00
jzmaddock
897bcb4165 Fix up conversions to and from enum's and add new tests.
Fixes: https://github.com/boostorg/multiprecision/issues/324.
2021-06-04 13:43:58 +01:00
jzmaddock
873079c962 Use noexcept rather than the macros. 2021-01-19 15:42:28 +00:00
jzmaddock
5ed1e9ba0e Big MSVC warning fix.
Also uses if constexpr when available.
2021-01-17 21:15:22 +00:00
jzmaddock
a9b4361c0a Completely remove MPL usage. 2021-01-16 11:22:28 +00:00
jzmaddock
771985f06b Finish off removing pretty much all of type_traits usage. 2021-01-14 19:25:54 +00:00
jzmaddock
8bb54d07fd Remove most boost.type_traits usage. 2021-01-14 17:05:14 +00: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
jzmaddock
05d2d09bfd Remove tons of C++03 workarounds. 2021-01-11 21:42:50 +00:00
jzmaddock
0a245647e2 constexpr: Tweak C++14 detection to eliminate early clang versions.
Update appveyor.yml.
Add docs and examples.
2019-08-26 12:53:15 +01:00
jzmaddock
7b0b6c3820 Fix non-constexpr function 2019-08-19 11:47:12 +01:00
jzmaddock
7d62a03128 constexpr: Add C++14 constexpr support to the front end.
Begin testing with arithmetic_backend.
2019-08-17 20:06:45 +01:00
jzmaddock
877753246f clang-format: apply new format to (almost) everything. 2019-07-15 18:25:17 +01:00
Tinko Bartels
8740e3863b Replace broken links. 2019-04-23 08:51:47 +02:00
jzmaddock
bbe819f803 Conversion of between unsigned ints should be truncating. 2018-05-16 21:26:08 +01:00
jzmaddock
cd3ee9e096 Merge branch 'develop' into complex
# Resolved Conflicts:
#	test/test_arithmetic.hpp
2018-03-12 18:35:38 +00:00
jzmaddock
496ce3dbac complex/mpc: add hashing support, fix up a few gcc compile failures.
Add hashing support to concept checks and fix up most of the failures bar one obscure one.
2018-03-11 19:10:37 +00:00
jzmaddock
bd13b140e0 arithmetic_backend: use integer::gcd. 2018-03-09 19:12:39 +00:00
jzmaddock
b35f1c8f61 Multiprecision.Integer conversions: Enforce uniform error handling when converting out-of-range narrowing integer conversions.
See https://svn.boost.org/trac10/ticket/13109
2017-12-30 09:34:35 +00: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
57333128e8 Allow code and tests to compile without exceptions.
See https://svn.boost.org/trac/boost/ticket/12070.
2016-03-17 11:50:06 +00:00
jzmaddock
e7bbae7477 Fix multiple definitions that occur when using STLPort. 2015-03-02 12:27:05 +00:00
John Maddock
bfd897f5d8 Fix some more GCC warnings and make compiles faster for slow compilers (Intel)
[SVN r81710]
2012-12-04 19:28:46 +00:00
John Maddock
672cd76754 Refactor test_arithmetic.cpp into lots of small files for reduced dependencies.
Changed use of __forceinline to release builds only.

[SVN r81654]
2012-12-01 16:19:23 +00:00
John Maddock
8ae04c68a6 Merge multiprecision from sandbox.
[SVN r81417]
2012-11-18 18:56:59 +00:00
John Maddock
6dfcc7e526 Big search and replace change of name for the ExpressionTemplates template parameter to class number.
[SVN r80418]
2012-09-06 09:50:47 +00:00
John Maddock
e2ef393c23 Big search and replace rename, removing mp_ prefix.
[SVN r79932]
2012-08-08 18:14:50 +00:00
John Maddock
8807532ee4 Added explicit conversion operators.
Moved some files into /detail/

[SVN r79926]
2012-08-08 16:12:33 +00:00
John Maddock
7a7a287def Fix C++11 compiler issues
[SVN r79861]
2012-08-04 10:59:56 +00:00
John Maddock
2fb7c1a044 Fix Linux x64 C++0x build issues.
[SVN r79854]
2012-08-02 17:14:17 +00:00
John Maddock
8a54889f35 Update comparison operators for better efficiency.
Rework delaunay performance test to use less disk space.

[SVN r79848]
2012-08-02 12:27:00 +00:00
John Maddock
c79fb41526 Rework comparison operators - note that existing backends are made less efficient by this at present.
[SVN r79823]
2012-07-31 18:14:14 +00:00
John Maddock
36847e4e0b Add delaunay performance test case.
Rework rvalue reference support for better performance.
Rework default operators for better performance.

[SVN r79802]
2012-07-30 15:23:51 +00:00