pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Modify additional power 2 calculations to use new helper functio
Date: Wed, 08 Apr 2020 06:31:10 +0000
Message-ID: <E1jM4Ew-00051s-JG@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/02a2e8b442002a698336954633b0ccc4e30061e6

Modified Files
--------------
src/backend/access/gin/ginfast.c    | 12 +++---------
src/backend/executor/nodeHash.c     |  8 ++------
src/backend/nodes/list.c            | 15 +++++++--------
src/backend/statistics/mvdistinct.c | 10 +---------
src/backend/utils/adt/arrayfuncs.c  |  9 +++------
5 files changed, 16 insertions(+), 38 deletions(-)



Message-ID: <E1jM4Ew-00051s-JG@gemulon.postgresql.org>
Permalink:  ../E1jM4Ew-00051s-JG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jM4Ew-00051s-JG@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org
  Subject: Re: pgsql: Modify additional power 2 calculations to use new helper functio
  In-Reply-To: <E1jM4Ew-00051s-JG@gemulon.postgresql.org>
  References: <E1jM4Ew-00051s-JG@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox