From 40a7e347ff14f7c087b17109ecef6dad95d7fa18 Mon Sep 17 00:00:00 2001 From: James Zern Date: Wed, 15 Jun 2011 13:37:11 -0700 Subject: [PATCH] dec/dsp: disable sse2 for Visual Studio builds This is a temporary workaround for issue #80. Currently dec/dsp_sse2 is not included in Makefile.vc. Simply adding it will cause a build error, however, as cl does not support aligning function parameters producing, e.g., src\dec\dsp_sse2.c(228) : error C2719: 'q1': formal parameter with __declspec(align('16')) won't be aligned Change-Id: Id29e6802dd29110e59c4f6d13ffa5d4793c750a0 --- src/dec/dsp.c | 2 +- src/dec/dsp_sse2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dec/dsp.c b/src/dec/dsp.c index 59ba1a3f..e1eea15b 100644 --- a/src/dec/dsp.c +++ b/src/dec/dsp.c @@ -730,7 +730,7 @@ void VP8DspInit(void) { // If defined, use CPUInfo() to overwrite some pointers with faster versions. if (VP8DecGetCPUInfo) { if (VP8DecGetCPUInfo(kSSE2)) { -#if defined(__SSE2__) || defined(_MSC_VER) +#if defined(__SSE2__) VP8DspInitSSE2(); #endif } diff --git a/src/dec/dsp_sse2.c b/src/dec/dsp_sse2.c index dbb3c793..3eedf748 100644 --- a/src/dec/dsp_sse2.c +++ b/src/dec/dsp_sse2.c @@ -10,7 +10,7 @@ // Author: somnath@google.com (Somnath Banerjee) // cduvivier@google.com (Christian Duvivier) -#if defined(__SSE2__) || defined(_MSC_VER) +#if defined(__SSE2__) #include #include "vp8i.h"