aboutsummaryrefslogtreecommitdiff
path: root/jdct.h
diff options
context:
space:
mode:
authorossman_ <ossman_@632fc199-4ca6-4c93-a231-07263d6284db>2009-03-09 13:25:30 +0000
committerossman_ <ossman_@632fc199-4ca6-4c93-a231-07263d6284db>2009-03-09 13:25:30 +0000
commit65984f5ac9933a1fc74c22da22671156f9b9de15 (patch)
tree809d3bf09560d2e99d61f190ea2d16e6d3122b13 /jdct.h
parentddd9d54d5e181e76197c787220f3bc46e206deba (diff)
Add MMX SIMD implementation of computationally intensive routines.
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@17 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jdct.h')
-rw-r--r--jdct.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/jdct.h b/jdct.h
index c834410..7b49a97 100644
--- a/jdct.h
+++ b/jdct.h
@@ -28,10 +28,16 @@
*/
#if BITS_IN_JSAMPLE == 8
+#ifndef WITH_SIMD
typedef int DCTELEM; /* 16 or 32 bits is fine */
typedef unsigned int UDCTELEM;
typedef unsigned long long UDCTELEM2;
#else
+typedef short DCTELEM; /* prefer 16 bit with SIMD for parellelism */
+typedef unsigned short UDCTELEM;
+typedef unsigned int UDCTELEM2;
+#endif
+#else
typedef INT32 DCTELEM; /* must have 32 bits */
typedef UINT32 UDCTELEM;
typedef unsigned long long UDCTELEM2;