[Boost-bugs] [Boost C++ Libraries] #11648: div infinite loop

Subject: [Boost-bugs] [Boost C++ Libraries] #11648: div infinite loop
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-13 16:15:30


#11648: div infinite loop
------------------------------+----------------------------
 Reporter: chfast@… | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
------------------------------+----------------------------
 Dividing two values of fixed 256-bit unchecked unsigned integer type can
 never finish.

 Type:
 {{{
 using u256 =
 boost::multiprecision::number<boost::multiprecision::cpp_int_backend<256,
 256, boost::multiprecision::unsigned_magnitude,
 boost::multiprecision::unchecked, void>>;
 }}}

 Values:
 {{{
 u256
 a{"0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFBA"};
 u256
 b{"0x1DAE6076B981DAE6076B981DAE6076B981DAE6076B981DAE6076B981DAE6077"};
 }}}

 Full test:
 https://gist.github.com/chfast/9136896f1ee1d214b7a6

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11648>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC