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 |