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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 754ca99) | patch
Add basic support for using the POPCNT and SSE4.2s LZCNT opcodes
2019年2月13日 19:10:06 +0000 (16:10 -0300)
2019年2月13日 19:10:06 +0000 (16:10 -0300)
commit 711bab1e4d19b5c9967328315a542d93386b1ac5
Add basic support for using the POPCNT and SSE4.2s LZCNT opcodes

These opcodes have been around in the AMD world since 2007, and 2008 in
the case of intel. They're supported in GCC and Clang via some __builtin
macros. The opcodes may be unavailable during runtime, in which case we
fall back on a C-based implementation of the code. In order to get the
POPCNT instruction we must pass the -mpopcnt option to the compiler. We
do this only for the pg_bitutils.c file.

David Rowley (with fragments taken from a patch by Thomas Munro)

Discussion: https://postgr.es/m/CAKJS1f9WTAGG1tPeJnD18hiQW5gAk59fQ6WK-vfdAKEHyRg2RA@mail.gmail.com
13 files changed:
config/c-compiler.m4 diff | blob | blame | history
configure diff | blob | blame | history
configure.in diff | blob | blame | history
src/Makefile.global.in diff | blob | blame | history
src/backend/access/heap/visibilitymap.c diff | blob | blame | history
src/backend/lib/bloomfilter.c diff | blob | blame | history
src/backend/nodes/bitmapset.c diff | blob | blame | history
src/include/pg_config.h.in diff | blob | blame | history
src/include/pg_config.h.win32 diff | blob | blame | history
src/include/port/pg_bitutils.h [new file with mode: 0644] blob
src/port/Makefile diff | blob | blame | history
src/port/pg_bitutils.c [new file with mode: 0644] blob
src/tools/msvc/Mkvcbuild.pm diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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