Drop uint 256 not operator

All the other operators are integer or bit operations, and this is unused
apart from tests.
This commit is contained in:
Ben Woosley 2018-06-05 02:10:50 -07:00
parent 0de7cc848e
commit 2acd1d6716
No known key found for this signature in database
GPG key ID: 4D8CA4BA18040906
2 changed files with 0 additions and 15 deletions

View file

@ -64,14 +64,6 @@ public:
explicit base_uint(const std::string& str);
bool operator!() const
{
for (int i = 0; i < WIDTH; i++)
if (pn[i] != 0)
return false;
return true;
}
const base_uint operator~() const
{
base_uint ret;

View file

@ -198,13 +198,6 @@ BOOST_AUTO_TEST_CASE( shifts ) { // "<<" ">>" "<<=" ">>="
BOOST_AUTO_TEST_CASE( unaryOperators ) // ! ~ -
{
BOOST_CHECK(!ZeroL);
BOOST_CHECK(!(!OneL));
for (unsigned int i = 0; i < 256; ++i)
BOOST_CHECK(!(!(OneL<<i)));
BOOST_CHECK(!(!R1L));
BOOST_CHECK(!(!MaxL));
BOOST_CHECK(~ZeroL == MaxL);
unsigned char TmpArray[32];