remove switch statement in vector8_shift_{left,right} - Mailing list pgsql-hackers

From Nathan Bossart
Subject remove switch statement in vector8_shift_{left,right}
Date
Msg-id akWxkA-mszMm57cV@nathan
Whole thread
List pgsql-hackers
In commit ec8719ccbf, I added a switch statement with all expected shift
counts for vector8_shift_{left,right} because AArch64's vshlq_n_u32 and
vshrq_n_u32 require an integer literal.  I discovered that we can use
vshlq_u32 instead for both cases, which avoids the need for the switch
statement and compiles to the same machine code on recent gcc/clang.

-- 
nathan

pgsql-hackers by date:

Previous
From: Sami Imseih
Date:
Subject: Re: Add pg_stat_kind_info system view
Next
From: Ewan Young
Date:
Subject: Re: REPACK CONCURRENTLY fails on tables with generated columns