| 274 | } |
| 275 | |
| 276 | MathLib::value MathLib::value::shiftRight(const MathLib::value &v) const |
| 277 | { |
| 278 | if (!isInt() || !v.isInt()) |
| 279 | throw InternalError(nullptr, "Shift operand is not integer"); |
| 280 | MathLib::value ret(*this); |
| 281 | if (v.mIntValue >= MathLib::bigint_bits) { |
| 282 | return ret; |
| 283 | } |
| 284 | ret.mIntValue >>= v.mIntValue; |
| 285 | return ret; |
| 286 | } |
| 287 | |
| 288 | MathLib::biguint MathLib::toBigUNumber(const Token * tok) |
| 289 | { |