From 65984f5ac9933a1fc74c22da22671156f9b9de15 Mon Sep 17 00:00:00 2001 From: ossman_ Date: Mon, 9 Mar 2009 13:25:30 +0000 Subject: 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 --- jdct.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'jdct.h') 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; -- cgit v1.2.3