|
|
@@ -103,7 +103,6 @@ namespace math { namespace detail {
|
|
|
|
|
|
data_type shift10(data_type const & data, int32_t places) {
|
|
|
int32_t shift = places / SEG_DIGITS;
|
|
|
- if (places < 0) { --shift; }
|
|
|
int64_t const pow = powers[places - (shift * SEG_DIGITS)];
|
|
|
size_t const bnd = data.size();
|
|
|
data_type rval(size_t((int32_t)bnd + shift) + 1);
|
|
|
@@ -114,10 +113,6 @@ namespace math { namespace detail {
|
|
|
rval[o] += int32_t(product - (overflow * OVER_SEG));
|
|
|
rval[o+1] += int32_t(overflow);
|
|
|
}
|
|
|
- if (shift < 0) {
|
|
|
- // TODO rounding
|
|
|
- rval.erase(rval.begin(), rval.begin()-shift);
|
|
|
- }
|
|
|
if (rval.back() == 0 && rval.size() > 1) { rval.pop_back(); }
|
|
|
return rval;
|
|
|
}
|