Modify additional power 2 calculations to use new helper functions
David Rowley <drowley@postgresql.org>
Modify additional power 2 calculations to use new helper functions 2nd pass of modifying various places which obtain the next power of 2 of a number and make them use the new functions added in f0705bb62. In passing, also modify num_combinations(). This can be implemented using simple bitshifting rather than looping. Reviewed-by: John Naylor Discussion: https://postgr.es/m/20200114173553.GE32763%40fetter.org
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/gin/ginfast.c | modified | +3 −9 |
| src/backend/executor/nodeHash.c | modified | +2 −6 |
| src/backend/nodes/list.c | modified | +7 −8 |
| src/backend/statistics/mvdistinct.c | modified | +1 −9 |
| src/backend/utils/adt/arrayfuncs.c | modified | +3 −6 |
Discussion
- Use compiler intrinsics for bit ops in hash 26 messages · 2020-01-14 → 2020-04-08