Remove switch statements in vector8_shift_{left,right}.

In commit ec8719ccbf, I added switch statements with all expected
shift counts to vector8_shift_{left,right} because vshlq_n_u32()
and vshrq_n_u32() require integer literals.  But we can use
vshlq_u32() instead for both cases, which does not require an
integer literal, thereby avoiding the need for the switch
statements.  This compiles to the same machine code on newer
versions of popular compilers.

Reviewed-by: John Naylor <[email protected]>
Discussion: https://postgr.es/m/akWxkA-mszMm57cV%40nathan

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/763ee7ea00b02592b5fb9572d77b82a1f6f052b9

Modified Files
--------------
src/include/port/simd.h | 29 +++--------------------------
1 file changed, 3 insertions(+), 26 deletions(-)

Reply via email to