Boost C++ Libraries: Ticket #11364: Multiprecision exclusive OR operator (^) gives incorrect results https://svn.boost.org/trac10/ticket/11364 <p> When using multiprecision types such as int128_t the exclusive OR of any pair of values with opposite sign which differ by exactly 2 to the power 32 gives an incorrect zero result. So in the attached example c is incorrect and d is correct. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11364 Trac 1.4.3 Graham Clemow <boostbug@…> Sun, 31 May 2015 21:04:53 GMT attachment set https://svn.boost.org/trac10/ticket/11364 https://svn.boost.org/trac10/ticket/11364 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">Test.cpp</span> </li> </ul> <p> Example program </p> Ticket John Maddock Mon, 01 Jun 2015 18:18:36 GMT <link>https://svn.boost.org/trac10/ticket/11364#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11364#comment:1</guid> <description> <p> Confirmed, investigating. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 02 Jun 2015 08:18:51 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/11364#comment:2 https://svn.boost.org/trac10/ticket/11364#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> <p> Fixed in <a class="ext-link" href="https://github.com/boostorg/multiprecision/commit/ea8586a9cf201be38335bc39260431a8e30478a9"><span class="icon">​</span>https://github.com/boostorg/multiprecision/commit/ea8586a9cf201be38335bc39260431a8e30478a9</a>. </p> Ticket