28 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
29 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
30 |
* |
* |
31 |
* $Id: portab.h,v 1.28 2002-09-22 16:59:57 edgomez Exp $ |
* $Id: portab.h,v 1.29 2002-09-22 17:25:13 edgomez Exp $ |
32 |
* |
* |
33 |
****************************************************************************/ |
****************************************************************************/ |
34 |
|
|
227 |
# endif /* _DEBUG */ |
# endif /* _DEBUG */ |
228 |
|
|
229 |
|
|
230 |
# ifdef _DEBUG |
|
231 |
# define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \ |
# define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \ |
232 |
type name##_storage[(sizex)*(sizey)+(alignment)-1]; \ |
type name##_storage[(sizex)*(sizey)+(alignment)-1]; \ |
233 |
type * name = (type *) (((ptr_t) name##_storage+(alignment - 1)) & ~((ptr_t)(alignment)-1)) |
type * name = (type *) (((ptr_t) name##_storage+(alignment - 1)) & ~((ptr_t)(alignment)-1)) |
|
# else |
|
|
# define DECLARE_ALIGNED_MATRIX(name,sizex,sizey,type,alignment) \ |
|
|
__attribute__ ((__aligned__(CACHE_LINE))) type name[(sizex)*(sizey)] |
|
|
# endif |
|
234 |
|
|
235 |
/*---------------------------------------------------------------------------- |
/*---------------------------------------------------------------------------- |
236 |
| gcc x86 specific macros/functions |
| gcc x86 specific macros/functions |