File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 336
336
#define ALIGN_4BYTE
337
337
#define ALIGN_8BYTE
338
338
#define ALIGN_16BYTE
339
+ #define ALIGN_32BYTE
339
340
#define ALIGN_64BYTE
340
341
#elif defined(_MSC_VER )
341
342
#define ALIGN_4BYTE __declspec(align(4))
342
343
#define ALIGN_8BYTE __declspec(align(8))
343
344
#define ALIGN_16BYTE __declspec(align(16))
345
+ #define ALIGN_32BYTE __declspec(align(32))
344
346
#define ALIGN_64BYTE __declspec(align(64))
345
347
#elif defined(__GNUC__ )
346
348
#define ALIGN_4BYTE __attribute__ ((aligned (4)))
347
349
#define ALIGN_8BYTE __attribute__ ((aligned (8)))
348
350
#define ALIGN_16BYTE __attribute__ ((aligned (16)))
351
+ #define ALIGN_32BYTE __attribute__ ((aligned (32)))
349
352
#define ALIGN_64BYTE __attribute__ ((aligned (64)))
350
353
#else
351
354
#define ALIGN_4BYTE
352
355
#define ALIGN_8BYTE
353
356
#define ALIGN_16BYTE
357
+ #define ALIGN_32BYTE
358
+ #define ALIGN_64BYTE
354
359
#endif
355
360
356
361
// Do we need to implement memory-alignment enforcement within the
Original file line number Diff line number Diff line change @@ -61,7 +61,9 @@ class LSimpleMatrix {
61
61
#endif // HAVE_EIGEN
62
62
63
63
// This is as good a place as any to define this alignment macro.
64
- #ifdef LINMATH_ALIGN
64
+ #if defined(LINMATH_ALIGN) && defined(HAVE_EIGEN) && defined(__AVX__)
65
+ #define ALIGN_LINMATH ALIGN_32BYTE
66
+ #elif defined(LINMATH_ALIGN)
65
67
#define ALIGN_LINMATH ALIGN_16BYTE
66
68
#else
67
69
#define ALIGN_LINMATH
You can’t perform that action at this time.
0 commit comments