postgresql/config
Heikki Linnakangas 3dc2d62d04 Use Intel SSE 4.2 CRC instructions where available.
Modern x86 and x86-64 processors with SSE 4.2 support have special
instructions, crc32b and crc32q, for calculating CRC-32C. They greatly
speed up CRC calculation.

Whether the instructions can be used or not depends on the compiler and the
target architecture. If generation of SSE 4.2 instructions is allowed for
the target (-msse4.2 flag on gcc and clang), use them. If they are not
allowed by default, but the compiler supports the -msse4.2 flag to enable
them, compile just the CRC-32C function with -msse4.2 flag, and check at
runtime whether the processor we're running on supports it. If it doesn't,
fall back to the slicing-by-8 algorithm. (With the common defaults on
current operating systems, the runtime-check variant is what you get in
practice.)

Abhijit Menon-Sen, heavily modified by me, reviewed by Andres Freund.
2015-04-14 17:05:03 +03:00
..
ac_func_accept_argtypes.m4 Enable compiling with the mingw-w64 32 bit compiler. 2011-12-10 15:35:41 -05:00
acx_pthread.m4 Remove some useless code in the configure script. 2014-07-01 17:51:53 -04:00
c-compiler.m4 Use Intel SSE 4.2 CRC instructions where available. 2015-04-14 17:05:03 +03:00
c-library.m4 Remove configure test for nonstandard variants of getpwuid_r(). 2015-01-11 12:52:37 -05:00
config.guess Update config.guess and config.sub 2014-05-10 10:33:34 -04:00
config.sub Update config.guess and config.sub 2014-05-10 10:33:34 -04:00
docbook.m4 Fix configure's search for collateindex.pl. 2012-03-22 00:46:03 -04:00
general.m4 Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
install-sh Fix install-strip on Mac OS X 2012-08-21 23:42:43 -04:00
libtool.m4 Rename AC_PROG_LD* macros to PGAC_PROG_LD*. This avoids clashes with the 2004-07-17 18:53:56 +00:00
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
missing Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
perl.m4 Detect Windows perl linkage parameters in configure script. 2013-01-09 17:49:23 -05:00
prep_buildtree find -path is not portable, so use grep -v instead. 2010-10-25 10:04:00 -03:00
programs.m4 Move PGAC_LDAP_SAFE to config/programs.m4. 2014-07-25 18:51:35 -04:00
python.m4 On OS X, link libpython normally, ignoring the "framework" framework. 2014-05-30 18:19:06 -04:00
tcl.m4 Accept tcl 8.6 in configure's probe for tclsh. 2014-05-10 10:48:01 -04:00
test_quiet_include.h pgindent run for 9.4 2014-05-06 12:12:18 -04:00