Use bitwise rotate functions in more places

John Naylor <john.naylor@postgresql.org>

Commit: 4b35408f1ed59dd590f683ae0f015bbaf3b84d3d
Author: John Naylor <john.naylor@postgresql.org>
Date: 2022-02-20T06:22:08Z
Releases: 15.0
Use bitwise rotate functions in more places

There were a number of places in the code that used bespoke bit-twiddling
expressions to do bitwise rotation. While we've had pg_rotate_right32()
for a while now, we hadn't gotten around to standardizing on that. Do so
now. Since many potential call sites look more natural with the "left"
equivalent, add that function too.

Reviewed by Tom Lane and Yugo Nagata

Discussion:
https://www.postgresql.org/message-id/CAFBsxsH7c1LC0CGZ0ADCBXLHU5-%3DKNXx-r7tHYPAW51b2HK4Qw%40mail.gmail.com

Files