Implement x86 SIMD framework
Add NASM support and stub routine for detecting SIMD extensions.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3646 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/jpeg/jsimd.c b/common/jpeg/jsimd.c
index c6378e8..c92ae60 100644
--- a/common/jpeg/jsimd.c
+++ b/common/jpeg/jsimd.c
@@ -13,9 +13,10 @@
#define JPEG_INTERNALS
#include "jinclude.h"
#include "jpeglib.h"
+#include "jsimd.h"
#include "jdct.h"
-
-#define JSIMD_NONE 0x00
+#include "jsimddct.h"
+#include "simd/jsimd.h"
static unsigned int simd_support = ~0;
@@ -30,7 +31,11 @@
if (simd_support != ~0)
return;
+#ifdef WITH_SIMD
+ simd_support = jpeg_simd_cpu_support();
+#else
simd_support = JSIMD_NONE;
+#endif
}
GLOBAL(int)