void executeIntegerDivide(Executer &executer) { auto rhs = popDoubleDivisor(executer); auto lhs = executer.topDbl(); auto result = lhs / rhs; checkIntegerOverflow(executer, result); executer.setTopIntFromDouble(result); }
void executeCvtInt(Executer &executer) { auto operand = std::round(executer.topDbl()); checkIntegerOverflow(executer, operand); executer.setTopIntFromDouble(operand); }