diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-04-10 00:14:57 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-04-10 00:14:57 +0000 |
commit | c2ff21301b275cf8c9ea4a76d525faf8166f2069 (patch) | |
tree | ab68cd58486f1e19ea96eab254562b7fb8566d98 /lib | |
parent | 019ac4b91aded9a502a4c627bd2b3f2c9835d0bd (diff) | |
download | netpbm-mirror-c2ff21301b275cf8c9ea4a76d525faf8166f2069.tar.gz netpbm-mirror-c2ff21301b275cf8c9ea4a76d525faf8166f2069.tar.xz netpbm-mirror-c2ff21301b275cf8c9ea4a76d525faf8166f2069.zip |
Release 10.42.02
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@612 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libpbm3.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/libpbm3.c b/lib/libpbm3.c index 79ac1cd8..7debedb9 100644 --- a/lib/libpbm3.c +++ b/lib/libpbm3.c @@ -13,9 +13,21 @@ #include "pbm.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 |