Enable decode SSE2 for Visual Studio

Change-Id: If32f8b1cfe415b2f9330af36a5dd0e31e49582b2
This commit is contained in:
James Zern 2011-06-17 18:12:01 -07:00
parent 131a4b7b7b
commit 23bf351e71
3 changed files with 3 additions and 2 deletions

View File

@ -114,6 +114,7 @@ CFGSET = TRUE
X_OBJS= \ X_OBJS= \
$(DIROBJ)\dec\bits.obj \ $(DIROBJ)\dec\bits.obj \
$(DIROBJ)\dec\dsp.obj \ $(DIROBJ)\dec\dsp.obj \
$(DIROBJ)\dec\dsp_sse2.obj \
$(DIROBJ)\dec\frame.obj \ $(DIROBJ)\dec\frame.obj \
$(DIROBJ)\dec\quant.obj \ $(DIROBJ)\dec\quant.obj \
$(DIROBJ)\dec\tree.obj \ $(DIROBJ)\dec\tree.obj \

View File

@ -730,7 +730,7 @@ void VP8DspInit(void) {
// If defined, use CPUInfo() to overwrite some pointers with faster versions. // If defined, use CPUInfo() to overwrite some pointers with faster versions.
if (VP8DecGetCPUInfo) { if (VP8DecGetCPUInfo) {
if (VP8DecGetCPUInfo(kSSE2)) { if (VP8DecGetCPUInfo(kSSE2)) {
#if defined(__SSE2__) #if defined(__SSE2__) || defined(_MSC_VER)
VP8DspInitSSE2(); VP8DspInitSSE2();
#endif #endif
} }

View File

@ -10,7 +10,7 @@
// Author: somnath@google.com (Somnath Banerjee) // Author: somnath@google.com (Somnath Banerjee)
// cduvivier@google.com (Christian Duvivier) // cduvivier@google.com (Christian Duvivier)
#if defined(__SSE2__) #if defined(__SSE2__) || defined(_MSC_VER)
#include <emmintrin.h> #include <emmintrin.h>
#include "vp8i.h" #include "vp8i.h"