Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/multiprecision/cpp_int/divide.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
470 const cpp_int_backend<MinBits2, MaxBits2, SignType2, Checked2, Allocator2>& a, | 470 const cpp_int_backend<MinBits2, MaxBits2, SignType2, Checked2, Allocator2>& a, |
471 signed_limb_type& b) | 471 signed_limb_type& b) |
472 { | 472 { |
473 cpp_int_backend<MinBits1, MaxBits1, SignType1, Checked1, Allocator1> r; | 473 cpp_int_backend<MinBits1, MaxBits1, SignType1, Checked1, Allocator1> r; |
474 bool s = a.sign() != (b < 0); | 474 bool s = a.sign() != (b < 0); |
475 divide_unsigned_helper(&result, a, static_cast<limb_type>(std::abs(b)), r); | 475 divide_unsigned_helper(&result, a, static_cast<limb_type>(boost::multiprecision::detail::unsigned_abs(b)), r); |
476 result.sign(s); | 476 result.sign(s); |
477 } | 477 } |
478 | 478 |
479 template <unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1, unsigned MinBits2, unsigned MaxBits2, cpp_integer_type SignType2, cpp_int_check_type Checked2, class Allocator2> | 479 template <unsigned MinBits1, unsigned MaxBits1, cpp_integer_type SignType1, cpp_int_check_type Checked1, class Allocator1, unsigned MinBits2, unsigned MaxBits2, cpp_integer_type SignType2, cpp_int_check_type Checked2, class Allocator2> |
480 BOOST_MP_FORCEINLINE typename enable_if_c<!is_trivial_cpp_int<cpp_int_backend<MinBits1, MaxBits1, SignType1, Checked1, Allocator1> >::value && !is_trivial_cpp_int<cpp_int_backend<MinBits2, MaxBits2, SignType2, Checked2, Allocator2> >::value >::type | 480 BOOST_MP_FORCEINLINE typename enable_if_c<!is_trivial_cpp_int<cpp_int_backend<MinBits1, MaxBits1, SignType1, Checked1, Allocator1> >::value && !is_trivial_cpp_int<cpp_int_backend<MinBits2, MaxBits2, SignType2, Checked2, Allocator2> >::value >::type |