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
This commit is contained in:
James Zern 2011-06-15 13:37:11 -07:00
parent e4d540c842
commit 40a7e347ff
2 changed files with 2 additions and 2 deletions

View File

@ -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
}

View File

@ -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 <emmintrin.h>
#include "vp8i.h"