about summary refs log tree commit diff
path: root/pm_config.in.h
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-10-20 20:00:51 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2013-10-20 20:00:51 +0000
commit59498fa94e044604ace91a0f7dc06e8740e6cf9b (patch)
treef0d990b1f9ebed7308f71697c7bac6a0b868f015 /pm_config.in.h
parentcbba7cc2c587c5187eb9c07232af21eeeb4b0e4a (diff)
downloadnetpbm-mirror-59498fa94e044604ace91a0f7dc06e8740e6cf9b.tar.gz
netpbm-mirror-59498fa94e044604ace91a0f7dc06e8740e6cf9b.tar.xz
netpbm-mirror-59498fa94e044604ace91a0f7dc06e8740e6cf9b.zip
Use <emmintrins.h> interface for MMX SSE instrinsics instead of GCC-specific verisons
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2022 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'pm_config.in.h')
-rw-r--r--pm_config.in.h32
1 files changed, 13 insertions, 19 deletions
diff --git a/pm_config.in.h b/pm_config.in.h
index 9459be02..77e9e693 100644
--- a/pm_config.in.h
+++ b/pm_config.in.h
@@ -187,22 +187,14 @@
 /* CONFIGURE: GNU Compiler extensions are used in performance critical places
    when available.  Test whether they exist.
 
-   Turn off by defining NO_GCC_BUILTINS.
-
-   Note that though these influence the resulting Netpbm machine code, the
-   compiler setting ultimately decides what instruction set the compiler uses.
-   If you want a generic build, check the manual and adjust CFLAGS in
-   config.mk accordingly.
-
-   For example, if you want binaries that run on all Intel x86-32
-   family CPUs back to 80386, adding "-march=i386" to CFLAGS in
-   config.mk is much better than setting NO_GCC_BUILTINS to 1.
-   If you want to be extra sure use:
-   "-march=i386 -mno-mmx -mno-sse -DNO_GCC_BUILTINS"
-
-   Gcc uses SSE and SSE2 instructions by default for AMD/Intel x86-64.
-   Tinkering with "-mno-sse" is not recommended for these machines.  If you
-   don't want SSE code, set NO_GCC_BUILTINS to 1.
+   Prevent the build from exploiting these extensions by defining
+   NO_GCC_BUILTINS.
+
+   Before Netpbm 10.65 (December 2013), Netpbm used GCC compiler extensions
+   to generate MMX code in Pamflip.  Starting in 10.65, Netpbm instead uses
+   the more standard operators defined in <emmtrins.h>.  To prevent Netpbm
+   from explicitly using any MMX instructions, set WANT_MMX to N in
+   config.mk.
 */
 
 /*
@@ -231,9 +223,11 @@
   #define GCCVERSION 0
 #endif
 
-/* HAVE_GCC_SSE2 means the compiler has GCC builtins to directly access
-   SSE/SSE2 features.  This is different from whether the compiler generates
-   code that uses these features at all.
+/* HAVE_GCC_SSE2 means the compiler has GCC-specific builtins to directly
+   access SSE/SSE2 features.  This is different from whether the compiler
+   generates code that uses these features at all.  It is also different
+   from whether the compiler has the more standard operators defined in
+   <emmintrins.h>.
 */
 
 #ifndef HAVE_GCC_SSE2