2
0
mirror of https://gitlab.com/libeigen/eigen.git synced 2024-12-27 07:29:52 +08:00

allow to override EIGEN_RESTRICT, to satisfy a smart ass blogger who claims

that eigen2 owes all its performance to nonstandard restrict keyword.
well, this can also improve portability in case some compiler doesn't have __restrict.
This commit is contained in:
Benoit Jacob 2009-09-19 19:45:58 -04:00
parent 3c780fd472
commit 828a79ac78

View File

@ -221,7 +221,12 @@ using Eigen::ei_cos;
#error Please tell me what is the equivalent of __attribute__((aligned(16))) for your compiler
#endif
#ifdef EIGEN_DONT_USE_RESTRICT_KEYWORD
#define EIGEN_RESTRICT
#endif
#ifndef EIGEN_RESTRICT
#define EIGEN_RESTRICT __restrict
#endif
#ifndef EIGEN_STACK_ALLOCATION_LIMIT
#define EIGEN_STACK_ALLOCATION_LIMIT 1000000