-
Notifications
You must be signed in to change notification settings - Fork 92
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
base: main
Are you sure you want to change the base?
SIMD-0174: SBPF arithmetics improvements #174
Conversation
a0328f7
to
42ba0ff
Compare
This proposal introduces wide multiplication, signed division and explicit sign | ||
extension to SBPF. |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
.
No description provided.