This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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: