You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 22, 2021. It is now read-only.
I was making a toy SIMD library in Rust which only operates on 128 bits (like in WebAssembly), where each type for the lanes would implement a trait for their associated instructions. I hit the roadblock of mul as I didn't see a way to implement this trait for i8/u8 (except maybe extracting each lane and multiplying them manually, but that kinda defeats the point)
You can try using i16x8.extmul_low_i8x16 + i16x8.extmul_high_i8x16 + i8x16.narrow_i16x8_{s,u}, that's 3 instructions, which will be better than extracting individual lanes.
Is there a reason why
i8x16.mul
is not included? I find it a bit odd, sincei16x8.mul
,i32x4.mul
, andi64x2.mul
exist. Is there something I'm missing?The text was updated successfully, but these errors were encountered: