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

Add support for signed division and modulo instructions #540

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

dthaler
Copy link
Contributor

@dthaler dthaler commented Nov 20, 2023

See BPF_SDIV and BPF_SMOD in https://datatracker.ietf.org/doc/html/draft-ietf-bpf-isa
These are some of the cpu=v4 instructions recently added to BPF.

Fixes #523

@coveralls
Copy link

Coverage Status

coverage: 89.569% (+0.5%) from 89.08%
when pulling b489c79 on dthaler:sdivmod
into ef234a6 on vbpf:main.

@elazarg elazarg merged commit 5924439 into vbpf:main Nov 23, 2023
13 checks passed
@dthaler dthaler deleted the sdivmod branch November 23, 2023 00:35
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.

Add support for signed DIV and MOD operations
3 participants