Merge remote-tracking branch 'bpodrygajlo/fix-rotate_cpx_vector' into integration_2026_w29
fix(phy): use simde_mm_setr_epi16 to initialize alpha_128 in rotate_cpx_vector (#303)
Avoid direct pointer-casting of the SIMD variable alpha_128 to int16_t *
in rotate_cpx_vector(), which is a strict-aliasing violation and can
cause undefined behavior or compiler optimization bugs. Instead, use the
simde_mm_setr_epi16 intrinsic to initialize the vector.
The bug was observed on an arm system, and would lead to
non-deterministic results.
Reviewed-by:
Laurent THOMAS <laurent.thomas@open-cells.com>
Showing
Please register or sign in to comment