summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2009-03-09 13:30:47 +0000
committerPierre Ossman <ossman@cendio.se>2009-03-09 13:30:47 +0000
commitfd6df4219fc2afd7eff398f08dd0b29670665142 (patch)
tree0ccf44967a6fd961a0cc205a4be2d5143c782ded
parent33f9019f77cd7417cc0d231e6dff3862177b6362 (diff)
downloadtigervnc-fd6df4219fc2afd7eff398f08dd0b29670665142.tar.gz
tigervnc-fd6df4219fc2afd7eff398f08dd0b29670665142.zip
Most SIMD implementations need 16 byte alignment
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3651 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--common/jpeg/jmemmgr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/jpeg/jmemmgr.c b/common/jpeg/jmemmgr.c
index 5b335673..058a1157 100644
--- a/common/jpeg/jmemmgr.c
+++ b/common/jpeg/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
/*