BMR, Use your Brain, Semi/Semi2k.

This commit is contained in:
Marcel Keller
2019-04-30 17:24:11 +10:00
parent 9cde9548d2
commit b5d8123ae0
214 changed files with 4233 additions and 1550 deletions

View File

@@ -21,17 +21,6 @@ void IntBase::input(istream& s,bool human)
s.read((char*)&a, sizeof(a));
}
void to_signed_bigint(bigint& res, const Integer& x, int n)
{
res = abs(x.get());
bigint& tmp = bigint::tmp = 1;
tmp <<= n;
tmp -= 1;
res &= tmp;
if (x < 0)
res.negate();
}
void Integer::reqbl(int n)
{
if ((int)n < 0 && size() * 8 != -(int)n)