Advertisement
sissou123

Untitled

Dec 14th, 2020
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. inline InfInt InfInt::operator*(ELEM_TYPE rhs) const
  2. {
  3.     //PROFINY_SCOPE
  4.     InfInt result = *this;
  5.     ELEM_TYPE factor = rhs < 0 ? -rhs : rhs;
  6.     multiplyByDigit(factor, result.val);
  7.     result.correct();
  8.     result.pos = (result.val.size() == 1 && result.val[0] == 0) ? true : (pos == (rhs >= 0));
  9.     return result;
  10. get link:https://bit.ly/3mggSkk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement