Skip to content

Conversation

@ajakubowicz-canva
Copy link
Collaborator

mul_u8x16 and mul_i8x16 are implemented as truncating multiplication, matching neon.
While unit testing this change I noticed that the Fallback level panics on overflow. Opened: https://github.com/raphlinus/fearless_simd/issues/11

A source of inspiration for this implementation was Highway's MulHigh.

Copy link
Collaborator

@LaurenzV LaurenzV left a comment

Choose a reason for hiding this comment

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

Haven't looked into how shuffle works, but seems fine!

@ajakubowicz-canva
Copy link
Collaborator Author

I've added back tests, but kept the tests within bounds as to not exercise overflow logic.
I won't land this until the larger #14 has landed.

@ajakubowicz-canva ajakubowicz-canva force-pushed the ajakubowicz-more-wasm-ops branch from 1b18e2c to 19ad0db Compare June 24, 2025 00:05
@ajakubowicz-canva ajakubowicz-canva merged commit 00dd1b7 into main Jun 24, 2025
6 checks passed
@ajakubowicz-canva ajakubowicz-canva deleted the ajakubowicz-more-wasm-ops branch June 24, 2025 00:15
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.

3 participants