mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-06 05:05:12 +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:
parent
6af2c2c67a
commit
ecf64d2dc3
@ -193,7 +193,12 @@ using Eigen::ei_cos;
|
|||||||
#error Please tell me what is the equivalent of __attribute__((aligned(16))) for your compiler
|
#error Please tell me what is the equivalent of __attribute__((aligned(16))) for your compiler
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define EIGEN_RESTRICT __restrict
|
#ifdef EIGEN_DONT_USE_RESTRICT_KEYWORD
|
||||||
|
#define EIGEN_RESTRICT
|
||||||
|
#endif
|
||||||
|
#ifndef EIGEN_RESTRICT
|
||||||
|
#define EIGEN_RESTRICT __restrict
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef EIGEN_STACK_ALLOCATION_LIMIT
|
#ifndef EIGEN_STACK_ALLOCATION_LIMIT
|
||||||
#define EIGEN_STACK_ALLOCATION_LIMIT 1000000
|
#define EIGEN_STACK_ALLOCATION_LIMIT 1000000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user