Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

s390x: simplify ceil/floor code #246

Open
wants to merge 1 commit into
base: v2.1-agentzh
Choose a base branch
from

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