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

SIMD-0174: SBPF arithmetics improvements #174

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Lichtso
Copy link
Contributor

@Lichtso Lichtso commented Sep 6, 2024

No description provided.

Comment on lines +16 to +17
This proposal introduces wide multiplication, signed division and explicit sign
extension to SBPF.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's specify which SBPF version this will be released in.


A new instruction class product, quotient and remainder (PQR) is introduced:

- the `UHMUL64` instruction (opcode `0x36` and `0x3E`) produces the 64 MSBs of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an impl note for UHMUL64_IMM: imm is sign extended to 64-bits.

Practically speaking, this means that to do 64x64=128 bit umul one should use UHMUL64_REG.

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.

4 participants