-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Rust BPF: Add support for float and signed division #3102
Comments
Closed
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
stale
bot
added
the
stale
[bot only] Added to stale content; results in auto-close after a week.
label
Apr 20, 2021
stale
bot
removed
the
stale
[bot only] Added to stale content; results in auto-close after a week.
label
Apr 20, 2021
This is related to #17793. |
This issue has been automatically locked since there has not been any activity in past 7 days after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem
The BPF instruction set does not contain a signed-division instruction and Rust's use of floats includes code that attempts to generate one. Either the Rust code needs to be rewritten, the LLVM back-end needs to compensate and lower those operations to something compatible, or BPF must add a new instruction to support it. Currently, floats are mostly disabled in the core libraries.
Proposed Solution
The text was updated successfully, but these errors were encountered: