]> source.dussan.org Git - tigervnc.git/commitdiff
Most SIMD implementations need 16 byte alignment
authorPierre Ossman <ossman@cendio.se>
Mon, 9 Mar 2009 13:30:47 +0000 (13:30 +0000)
committerPierre Ossman <ossman@cendio.se>
Mon, 9 Mar 2009 13:30:47 +0000 (13:30 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3651 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/jpeg/jmemmgr.c

index 5b33567370ed02b9e6c34b4aa04fe799298ecc16..058a1157df7b9edfe738ce62f54a6c4ed16f6640 100644 (file)
@@ -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
 
 /*