simplify checks for enabling SSE2 code

also fixes build issues under vs11 which has a native arm compiler for
windows 8 targets

Change-Id: Id76c2deae9fc9de147d13ad0d34edffcb5a726c4
This commit is contained in:
James Zern
2011-12-15 17:03:57 -08:00
parent 7937b409e7
commit f06817aaea
8 changed files with 26 additions and 12 deletions

View File

@ -9,12 +9,13 @@
//
// Author: somnath@google.com (Somnath Banerjee)
#if defined(__SSE2__) || defined(_MSC_VER)
#include "./dsp.h"
#if defined(WEBP_USE_SSE2)
#include <assert.h>
#include <emmintrin.h>
#include <string.h>
#include "./dsp.h"
#include "./yuv.h"
#include "../dec/webpi.h"
@ -212,4 +213,4 @@ void WebPInitUpsamplersSSE2(void) {
} // extern "C"
#endif
#endif //__SSE2__ || _MSC_VER
#endif // WEBP_USE_SSE2