about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-03-28 18:58:06 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2008-03-28 18:58:06 +0000
commite0d2390ff2ed3e51673343cec1033d2a041f5e3f (patch)
tree0f0736f4495a6973f8d57ce8dfe397f6c9a835d9 /lib
parentebf66e1eaa2b6a0a442fa9a3c7d8b37c964153d7 (diff)
downloadnetpbm-mirror-e0d2390ff2ed3e51673343cec1033d2a041f5e3f.tar.gz
netpbm-mirror-e0d2390ff2ed3e51673343cec1033d2a041f5e3f.tar.xz
netpbm-mirror-e0d2390ff2ed3e51673343cec1033d2a041f5e3f.zip
Release 10.35.41
git-svn-id: http://svn.code.sf.net/p/netpbm/code/stable@608 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r--lib/libpbm3.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/libpbm3.c b/lib/libpbm3.c
index cb6edd5b..9c9bbd25 100644
--- a/lib/libpbm3.c
+++ b/lib/libpbm3.c
@@ -14,9 +14,21 @@
 #include "libpbm.h"
 #include "bitreverse.h"
 
-#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ >= 301) && defined (__SSE__)
-/* intel MMX-SSE enhancement for pbm_writepbmowraw() */
-/* GCC only.  Turn on with -msse */
+/* HAVE_MMX_SSE means we have the means to use MMX and SSE CPU facilities
+   to make PBM raster processing faster.
+
+   The GNU Compiler -msse option makes SSE available.
+*/
+
+#if defined(__GNUC__) && \
+  (__GNUC__ * 100 + __GNUC_MINOR__ >= 301) && \
+  (__GNUC__ * 100 + __GNUC_MINOR__ < 403) && \
+  defined (__SSE__)
+/* GCC 4.3 does have the facility, but it is different from what this
+   code knows how to use.  In particular, the calls to
+   __builtin_ia32_pcmpeqb() and __builtin_ia32_pmovmskb() fail to
+   compile, with complaints of improper argument types.
+*/
 
 #define HAVE_MMX_SSE 1
 #else