forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4b35408
committed
Use bitwise rotate functions in more places
There were a number of places in the code that used bespoke bit-twiddlingexpressions 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 sonow. Since many potential call sites look more natural with the "left"equivalent, add that function too.Reviewed by Tom Lane and Yugo NagataDiscussion:https://www.postgresql.org/message-id/CAFBsxsH7c1LC0CGZ0ADCBXLHU5-%3DKNXx-r7tHYPAW51b2HK4Qw%40mail.gmail.com1 parentd7a9786 commit4b35408
File tree
9 files changed
+28
-25
lines changed- src
- backend
- executor
- utils
- adt
- cache
- common
- include/port
9 files changed
+28
-25
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
459 | 459 |
| |
460 | 460 |
| |
461 | 461 |
| |
462 |
| - | |
463 |
| - | |
| 462 | + | |
| 463 | + | |
464 | 464 |
| |
465 | 465 |
| |
466 | 466 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1840 | 1840 |
| |
1841 | 1841 |
| |
1842 | 1842 |
| |
1843 |
| - | |
1844 |
| - | |
| 1843 | + | |
| 1844 | + | |
1845 | 1845 |
| |
1846 | 1846 |
| |
1847 | 1847 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
169 |
| - | |
170 |
| - | |
| 169 | + | |
| 170 | + | |
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
| |||
189 | 189 |
| |
190 | 190 |
| |
191 | 191 |
| |
192 |
| - | |
193 |
| - | |
| 192 | + | |
| 193 | + | |
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
| |||
1342 | 1343 |
| |
1343 | 1344 |
| |
1344 | 1345 |
| |
1345 |
| - | |
| 1346 | + | |
1346 | 1347 |
| |
1347 | 1348 |
| |
1348 | 1349 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
41 | 42 |
| |
42 | 43 |
| |
43 | 44 |
| |
| |||
2772 | 2773 |
| |
2773 | 2774 |
| |
2774 | 2775 |
| |
2775 |
| - | |
| 2776 | + | |
2776 | 2777 |
| |
2777 | 2778 |
| |
2778 | 2779 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
1363 | 1364 |
| |
1364 | 1365 |
| |
1365 | 1366 |
| |
1366 |
| - | |
| 1367 | + | |
1367 | 1368 |
| |
1368 | 1369 |
| |
1369 | 1370 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| |||
281 | 282 |
| |
282 | 283 |
| |
283 | 284 |
| |
284 |
| - | |
285 |
| - | |
286 |
| - | |
| 285 | + | |
287 | 286 |
| |
288 | 287 |
| |
289 | 288 |
| |
290 |
| - | |
291 |
| - | |
292 |
| - | |
| 289 | + | |
293 | 290 |
| |
294 | 291 |
| |
295 | 292 |
| |
296 |
| - | |
297 |
| - | |
298 |
| - | |
| 293 | + | |
299 | 294 |
| |
300 | 295 |
| |
301 | 296 |
| |
302 |
| - | |
303 | 297 |
| |
304 | 298 |
| |
305 | 299 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
24 | 24 |
| |
25 | 25 |
| |
26 | 26 |
| |
| 27 | + | |
27 | 28 |
| |
28 | 29 |
| |
29 | 30 |
| |
| |||
44 | 45 |
| |
45 | 46 |
| |
46 | 47 |
| |
47 |
| - | |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
285 | 285 |
| |
286 | 286 |
| |
287 | 287 |
| |
288 |
| - | |
| 288 | + | |
289 | 289 |
| |
290 | 290 |
| |
291 | 291 |
| |
292 | 292 |
| |
293 |
| - | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
294 | 300 |
| |
295 | 301 |
| |
296 | 302 |
|
0 commit comments
Comments
(0)