From 0e4c9ca7ebc9f1f449b15e9d71ee3de13e8488e5 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 27 Jun 2014 02:06:08 +0000 Subject: Fix missing WANT_SSE git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2213 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- pm_config.in.h | 46 +--------------------------------------------- 1 file changed, 1 insertion(+), 45 deletions(-) (limited to 'pm_config.in.h') diff --git a/pm_config.in.h b/pm_config.in.h index fd651e3a..758f0612 100644 --- a/pm_config.in.h +++ b/pm_config.in.h @@ -197,56 +197,12 @@ config.mk. */ -/* - If the compiler is Clang, ignore reported __GNUC__ , __GNUC_MINOR__ - values. Treat it as a generic C compiler. Clang normally reports itself - as GCC, but does not necessarily offer all the features of GCC. For - example, we know that Apple Mac OSX 10.8 ships with - - > cc --version - Apple clang version 4.0 (tags/Apple/clang-421.0.60) (based on LLVM 3.1svn) - - which masquerades as GCC 4.2.1, but it does not have SSE2 operator - __builtin_ia32_pcmpeqb128 . - - On the other hand, research by Prophet of the Way in September 2012 - indicated that Clang 2.6-3.0 have the above function (and all Netpbm - compiled successfully with SSE exploitation), but 3.1 does not. He did - not find any mention in documentation of that change. - - At least some versions of Clang that do not have __builtin_ia32_pcmpeqb128 - nonetheless have other GCC SSE2 operators, such as __builtin_ia32_pcmpgtb128. - We did not detect a pattern. - - See below on compilers other than GCC that set __GNUC__: - http://sourceforge.net/apps/mediawiki/predef/index.php?title=Compilers -*/ -#if defined(__GNUC__) && !defined(__clang__) && !defined(NO_GCC_UNIQUE) +#if defined(__GNUC__) && !defined(NO_GCC_UNIQUE) #define GCCVERSION __GNUC__*100 + __GNUC_MINOR__ #else #define GCCVERSION 0 #endif -/* HAVE_GCC_SSE2 means the compiler has all of the 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 . -*/ - -#ifndef HAVE_GCC_SSE2 -/* GCC 4.1 ostensibly has the feature, but experiments with 4.1.2 and - 4.1.2 in May 2010 exposed an obscure compiler bug and the compiler got - stuck with pamflip_sse.c. So we say the feature exists only on 4.2 - and up. -*/ -#if GCCVERSION >=402 && defined(__SSE__) && defined(__SSE2__) - #define HAVE_GCC_SSE2 1 -#else - #define HAVE_GCC_SSE2 0 -#endif -#endif - #ifndef HAVE_GCC_BITCOUNT #if GCCVERSION >=304 #define HAVE_GCC_BITCOUNT 1 -- cgit 1.4.1