Re:Branchless Rust: Making a Filter 4x Faster by Removing an If
by amluto on Thursday August 06, 2026 @11:23AM
(#49197969)
This particular UB is not one of the subtle cases. You will almost certainly get illegal instruction signals if you mess this up.
Re:Branchless Rust: Making a Filter 4x Faster by Removing an If
by inigyou on Thursday August 06, 2026 @01:44PM
(#49199915)
Is rust UB different from C UB? C UB must be avoided at all costs even if you think you know the actual behavior.
> Executing code compiled with target features that the current thread of execution does not support
I.e. calling AVX512 on Neon architecture.
You need to wrap it in target attributes to even dream of it being safe.