From 457aef0f1fd365c68fab3fa2ca3ae48c5bd230c6 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Fri, 15 Feb 2019 16:32:30 -0300 Subject: 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. --- config/c-compiler.m4 | 52 ---------------------------------------------------- 1 file changed, 52 deletions(-) (limited to 'config') diff --git a/config/c-compiler.m4 b/config/c-compiler.m4 index 7c0d52b515f..af2dea1c2ab 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(), -- cgit v1.2.3