- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit02a2e8b
committed
Modify additional power 2 calculations to use new helper functions
2nd pass of modifying various places which obtain the next powerof 2 of a number and make them use the new functions added inf0705bb.In passing, also modify num_combinations(). This can be implementedusing simple bitshifting rather than looping.Reviewed-by: John NaylorDiscussion:https://postgr.es/m/20200114173553.GE32763%40fetter.org1 parentc018786 commit02a2e8b
File tree
5 files changed
+16
-38
lines changed- src/backend
- access/gin
- executor
- nodes
- statistics
- utils/adt
5 files changed
+16
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
503 | 504 | | |
504 | 505 | | |
505 | 506 | | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
| 507 | + | |
510 | 508 | | |
511 | 509 | | |
512 | 510 | | |
| |||
516 | 514 | | |
517 | 515 | | |
518 | 516 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
| 517 | + | |
524 | 518 | | |
525 | 519 | | |
526 | 520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
831 | 831 | | |
832 | 832 | | |
833 | 833 | | |
834 | | - | |
835 | | - | |
836 | | - | |
| 834 | + | |
837 | 835 | | |
838 | 836 | | |
839 | 837 | | |
| |||
2272 | 2270 | | |
2273 | 2271 | | |
2274 | 2272 | | |
2275 | | - | |
2276 | | - | |
2277 | | - | |
| 2273 | + | |
2278 | 2274 | | |
2279 | 2275 | | |
2280 | 2276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
123 | | - | |
124 | | - | |
| 123 | + | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
160 | 159 | | |
161 | 160 | | |
162 | 161 | | |
163 | | - | |
164 | | - | |
| 162 | + | |
165 | 163 | | |
166 | | - | |
167 | | - | |
168 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
576 | 576 | | |
577 | 577 | | |
578 | 578 | | |
579 | | - | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
586 | | - | |
587 | | - | |
| 579 | + | |
588 | 580 | | |
589 | 581 | | |
590 | 582 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
5313 | 5314 | | |
5314 | 5315 | | |
5315 | 5316 | | |
5316 | | - | |
5317 | | - | |
5318 | | - | |
| 5317 | + | |
5319 | 5318 | | |
5320 | 5319 | | |
5321 | 5320 | | |
| |||
5362 | 5361 | | |
5363 | 5362 | | |
5364 | 5363 | | |
5365 | | - | |
5366 | | - | |
5367 | | - | |
| 5364 | + | |
5368 | 5365 | | |
5369 | 5366 | | |
5370 | 5367 | | |
| |||
0 commit comments
Comments
(0)