git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 50a38f6) | patch
Modify various power 2 calculations to use new helper functions
Wed, 8 Apr 2020 04:55:03 +0000 (16:55 +1200)
Wed, 8 Apr 2020 04:55:03 +0000 (16:55 +1200)
commit d025cf88ba5a64487ee4a17ef23e8f55b1536606
Modify various power 2 calculations to use new helper functions

First pass of modifying various places that obtain the next power of 2 of
a number and make them use the new functions added in pg_bitutils.h
instead.

This also removes the _hash_log2() function. There are no longer any
callers in core. Other users can swap their _hash_log2(n) call to make use
of pg_ceil_log2_32(n).

Author: David Fetter, with some minor adjustments by me
Reviewed-by: John Naylor, Jesse Zhang
Discussion: https://postgr.es/m/20200114173553.GE32763%40fetter.org
src/backend/access/hash/hashpage.c diff | blob | blame | history
src/backend/access/hash/hashsort.c diff | blob | blame | history
src/backend/access/hash/hashutil.c diff | blob | blame | history
src/backend/utils/hash/dynahash.c diff | blob | blame | history
src/include/access/hash.h diff | blob | blame | history
src/include/lib/simplehash.h diff | blob | blame | history
src/include/port/pg_bitutils.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /