diff options
author | ossman_ <ossman_@632fc199-4ca6-4c93-a231-07263d6284db> | 2009-03-09 13:25:30 +0000 |
---|---|---|
committer | ossman_ <ossman_@632fc199-4ca6-4c93-a231-07263d6284db> | 2009-03-09 13:25:30 +0000 |
commit | 65984f5ac9933a1fc74c22da22671156f9b9de15 (patch) | |
tree | 809d3bf09560d2e99d61f190ea2d16e6d3122b13 /jdct.h | |
parent | ddd9d54d5e181e76197c787220f3bc46e206deba (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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |