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