diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-02-15 16:32:30 -0300 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2019-02-15 16:32:30 -0300 |
commit | 457aef0f1fd365c68fab3fa2ca3ae48c5bd230c6 (patch) | |
tree | 9405a4a8b2406ab0d138a4ee7230891f7ffa3bfa /config/c-compiler.m4 | |
parent | e89f14e2bb9f7c392c4c85a53ab5a13ea2aed83d (diff) | |
download | postgresql-457aef0f1fd365c68fab3fa2ca3ae48c5bd230c6.tar.gz |
Revert attempts to use POPCNT etc instructions
This reverts commits fc6c72747ae6, 109de05cbb03, d0b4663c23b7 and
711bab1e4d19.
Somebody will have to try harder before submitting this patch again.
I've spent entirely too much time on it already, and the #ifdef maze yet
to be written in order for it to build at all got on my nerves. The
amount of work needed to get a platform-specific performance improvement
that's barely above the noise level is not worth it.
Diffstat (limited to 'config/c-compiler.m4')
-rw-r--r-- | config/c-compiler.m4 | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/config/c-compiler.m4 b/config/c-compiler.m4 index 7c0d52b515..af2dea1c2a 100644 --- a/config/c-compiler.m4 +++ b/config/c-compiler.m4 @@ -378,58 +378,6 @@ fi])# PGAC_C_BUILTIN_OP_OVERFLOW -# PGAC_C_BUILTIN_POPCOUNT -# ------------------------- -AC_DEFUN([PGAC_C_BUILTIN_POPCOUNT], -[AC_CACHE_CHECK([for __builtin_popcount], pgac_cv__builtin_popcount, -[AC_COMPILE_IFELSE([AC_LANG_SOURCE( -[static int x = __builtin_popcount(255);] -)], -[pgac_cv__builtin_popcount=yes], -[pgac_cv__builtin_popcount=no])]) -if test x"$pgac_cv__builtin_popcount" = x"yes"; then -AC_DEFINE(HAVE__BUILTIN_POPCOUNT, 1, - [Define to 1 if your compiler understands __builtin_popcount.]) -fi])# PGAC_C_BUILTIN_POPCOUNT - - - -# PGAC_C_BUILTIN_CTZ -# ------------------------- -# Check if the C compiler understands __builtin_ctz(), -# and define HAVE__BUILTIN_CTZ if so. -AC_DEFUN([PGAC_C_BUILTIN_CTZ], -[AC_CACHE_CHECK(for __builtin_ctz, pgac_cv__builtin_ctz, -[AC_COMPILE_IFELSE([AC_LANG_SOURCE( -[static int x = __builtin_ctz(256);] -)], -[pgac_cv__builtin_ctz=yes], -[pgac_cv__builtin_ctz=no])]) -if test x"$pgac_cv__builtin_ctz" = xyes ; then -AC_DEFINE(HAVE__BUILTIN_CTZ, 1, - [Define to 1 if your compiler understands __builtin_ctz.]) -fi])# PGAC_C_BUILTIN_CTZ - - - -# PGAC_C_BUILTIN_CLZ -# ------------------------- -# Check if the C compiler understands __builtin_clz(), -# and define HAVE__BUILTIN_CLZ if so. -AC_DEFUN([PGAC_C_BUILTIN_CLZ], -[AC_CACHE_CHECK(for __builtin_clz, pgac_cv__builtin_clz, -[AC_COMPILE_IFELSE([AC_LANG_SOURCE( -[static int x = __builtin_clz(256);] -)], -[pgac_cv__builtin_clz=yes], -[pgac_cv__builtin_clz=no])]) -if test x"$pgac_cv__builtin_clz" = xyes ; then -AC_DEFINE(HAVE__BUILTIN_CLZ, 1, - [Define to 1 if your compiler understands __builtin_clz.]) -fi])# PGAC_C_BUILTIN_CLZ - - - # PGAC_C_BUILTIN_UNREACHABLE # -------------------------- # Check if the C compiler understands __builtin_unreachable(), |