Synopsis
int8x4 __shsub8(int8x4 val1,
int8x4 val2);
Description
__shsub8 inserts a SHSUB8 instruction. __shsub8 returns the 8-bit signed equivalent of
- res[0] = (val1[0] - val2[0])/2
- res[1] = (val1[1] - val2[1])/2
- res[2] = (val1[2] - val2[2])/2
- res[3] = (val1[3] - val2[3])/2
where [0] is the lower 8 bits and [3] is the upper 8 bits.