Define PACK_S8x4_32x1

Define Documentation

PACK_S8x4_32x1(v0, v1, v2, v3)

definition to pack four 8 bit values.

Byte lanes are masked and shifted in uint32_t so a negative value never feeds a signed left shift (UB); masking before the shift keeps the same bits the old shift-then-mask form kept. Bit-identical for every input. Deliberate divergence from upstream ARM-software/CMSIS-NN, which still carries the signed-shift form — do not paste the upstream text back on a sync (issue #357).