Bug 125762 - turn on SSE2 jpeg code (win32). r=sicking, sr=bryner

This commit is contained in:
tor%cs.brown.edu 2004-03-05 22:17:45 +00:00
Родитель 77fd66e2f5
Коммит 322974ca47
2 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

@ -49,7 +49,10 @@ jpeg_CreateDecompress (j_decompress_ptr cinfo, int version, size_t structsize)
MMXAvailable = mmxsupport();
#ifdef HAVE_SSE2_INTEL_MNEMONICS
SSE2Available = sse2support();
/* only do the sse2 support check if mmx is supported (so
we know the processor supports cpuid) */
if (MMXAvailable)
SSE2Available = sse2support();
#endif
cpuidDetected = 1;

Просмотреть файл

@ -105,18 +105,13 @@ typedef short JSAMPLE;
typedef short JCOEF;
/* Defines for MMX support. */
/* Defines for MMX/SSE2 support. */
#if defined(XP_WIN32) && defined(_M_IX86)
#define HAVE_MMX_INTEL_MNEMONICS
#endif
/* Defines for SSE2 support. */
#if defined(XP_WIN32) && defined(_M_IX86) && defined(__m128i)
#define HAVE_SSE2_INTEL_MNEMONICS
#endif
/* Compressed datastreams are represented as arrays of JOCTET.
* These must be EXACTLY 8 bits wide, at least once they are written to
* external storage. Note that when using the stdio data source/destination