Skip to content

Conversation

neuschaefer
Copy link

The previous change1 to this code left quite a bit of dead code behind, when it switched vm_round from using DIDBR (divide to integer) to FIDBR (load floating-point integer). Simplify the code by removing the remains of the previous implementation.

As a side effect, math.ceil() etc. now execute without crashing in QEMU, which was previously not the case because QEMU doesn't implement DIDBR.

The previous change[1] to this code left quite a bit of dead code
behind, when it switched vm_round from using DIDBR (divide to integer)
to FIDBR (load floating-point integer). Simplify the code by removing
the remains of the previous implementation.

As a side effect, math.ceil() etc. now execute without crashing in QEMU,
which was previously not the case because QEMU doesn't implement DIDBR.

[1]: openresty#177
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant