Browse Source

Don't allow code path to be forced on a system that doesn't support it


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4000 3789f03b-4d11-0410-bbf8-ca57d06f2519
tags/v1.0.90
DRC 14 years ago
parent
commit
f8ad8ff81a
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      common/jpeg/simd/jsimd_i386.c

+ 4
- 4
common/jpeg/simd/jsimd_i386.c View File

@@ -48,16 +48,16 @@ init_simd (void)
/* Force different settings through environment variables */
env = getenv("JSIMD_FORCEMMX");
if ((env != NULL) && (strcmp(env, "1") == 0))
simd_support = JSIMD_MMX;
simd_support &= JSIMD_MMX;
env = getenv("JSIMD_FORCE3DNOW");
if ((env != NULL) && (strcmp(env, "1") == 0))
simd_support = JSIMD_3DNOW|JSIMD_MMX;
simd_support &= JSIMD_3DNOW|JSIMD_MMX;
env = getenv("JSIMD_FORCESSE");
if ((env != NULL) && (strcmp(env, "1") == 0))
simd_support = JSIMD_SSE|JSIMD_MMX;
simd_support &= JSIMD_SSE|JSIMD_MMX;
env = getenv("JSIMD_FORCESSE2");
if ((env != NULL) && (strcmp(env, "1") == 0))
simd_support = JSIMD_SSE2;
simd_support &= JSIMD_SSE2;
}

GLOBAL(int)

Loading…
Cancel
Save