Subject: [Boost-bugs] [Boost C++ Libraries] #11364: Multiprecision exclusive OR operator (^) gives incorrect results
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-05-31 21:01:53
#11364: Multiprecision exclusive OR operator (^) gives incorrect results
----------------------------------------+----------------------------
Reporter: Graham Clemow <boostbug@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: multiprecision
Version: Boost Development Trunk | Severity: Problem
Keywords: |
----------------------------------------+----------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11364> 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:18 UTC