From 23bf351e7115332ab222a991522b2c0005b46380 Mon Sep 17 00:00:00 2001 From: James Zern Date: Fri, 17 Jun 2011 18:12:01 -0700 Subject: [PATCH] Enable decode SSE2 for Visual Studio Change-Id: If32f8b1cfe415b2f9330af36a5dd0e31e49582b2 --- Makefile.vc | 1 + src/dec/dsp.c | 2 +- src/dec/dsp_sse2.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile.vc b/Makefile.vc index da9063cb..563fb01f 100644 --- a/Makefile.vc +++ b/Makefile.vc @@ -114,6 +114,7 @@ CFGSET = TRUE X_OBJS= \ $(DIROBJ)\dec\bits.obj \ $(DIROBJ)\dec\dsp.obj \ + $(DIROBJ)\dec\dsp_sse2.obj \ $(DIROBJ)\dec\frame.obj \ $(DIROBJ)\dec\quant.obj \ $(DIROBJ)\dec\tree.obj \ diff --git a/src/dec/dsp.c b/src/dec/dsp.c index e1eea15b..59ba1a3f 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__) +#if defined(__SSE2__) || defined(_MSC_VER) VP8DspInitSSE2(); #endif } diff --git a/src/dec/dsp_sse2.c b/src/dec/dsp_sse2.c index f42a1a00..63cf61b9 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__) +#if defined(__SSE2__) || defined(_MSC_VER) #include #include "vp8i.h"