summaryrefslogtreecommitdiff
path: root/trunk/jmemmgr.c
diff options
context:
space:
mode:
authorossman_ <ossman_@3789f03b-4d11-0410-bbf8-ca57d06f2519>2009-03-09 13:30:47 +0000
committerossman_ <ossman_@3789f03b-4d11-0410-bbf8-ca57d06f2519>2009-03-09 13:30:47 +0000
commit768475ce2d24a3e3515c32fe4078cf73c12b6de9 (patch)
treebc1877bd905b80432290eb851608cefa52ddf49a /trunk/jmemmgr.c
parentcd4e7acb7b69cfc2d976811b9a93f7d8813da33f (diff)
Most SIMD implementations need 16 byte alignment
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@20 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/jmemmgr.c')
-rw-r--r--trunk/jmemmgr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/trunk/jmemmgr.c b/trunk/jmemmgr.c
index 5b33567..058a115 100644
--- a/trunk/jmemmgr.c
+++ b/trunk/jmemmgr.c
@@ -70,7 +70,11 @@ extern char * getenv JPP((const char * name));
*/
#ifndef ALIGN_SIZE /* so can override from jconfig.h */
+#ifndef WITH_SIMD
#define ALIGN_SIZE SIZEOF(double)
+#else
+#define ALIGN_SIZE 16 /* Most SIMD implementations require this */
+#endif
#endif
/*