From: Pierre Ossman Date: Mon, 9 Mar 2009 13:30:47 +0000 (+0000) Subject: Most SIMD implementations need 16 byte alignment X-Git-Tag: 0.0.90~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7311830680380376cfa374c2cf2bf3813aabe2c1;p=libjpeg-turbo Most SIMD implementations need 16 byte alignment git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@20 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/jmemmgr.c b/jmemmgr.c index 5b33567..058a115 100644 --- a/jmemmgr.c +++ b/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 /*