Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline InfInt InfInt::operator*(ELEM_TYPE rhs) const
- {
- //PROFINY_SCOPE
- InfInt result = *this;
- ELEM_TYPE factor = rhs < 0 ? -rhs : rhs;
- multiplyByDigit(factor, result.val);
- result.correct();
- result.pos = (result.val.size() == 1 && result.val[0] == 0) ? true : (pos == (rhs >= 0));
- return result;
- get link:https://bit.ly/3mggSkk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement