mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
fix compilation
This commit is contained in:
parent
cc33a56140
commit
ba5b5f6a4b
@ -425,7 +425,7 @@ inline static Integer ei_first_aligned(const Scalar* array, Integer size)
|
|||||||
* \endcode
|
* \endcode
|
||||||
*/
|
*/
|
||||||
#if (defined __linux__)
|
#if (defined __linux__)
|
||||||
#define ei_aligned_stack_alloc(SIZE) (SIZE<=EI GEN_STACK_ALLOCATION_LIMIT) \
|
#define ei_aligned_stack_alloc(SIZE) (SIZE<=EIGEN_STACK_ALLOCATION_LIMIT) \
|
||||||
? alloca(SIZE) \
|
? alloca(SIZE) \
|
||||||
: ei_aligned_malloc(SIZE)
|
: ei_aligned_malloc(SIZE)
|
||||||
#define ei_aligned_stack_free(PTR,SIZE) if(SIZE>EIGEN_STACK_ALLOCATION_LIMIT) ei_aligned_free(PTR)
|
#define ei_aligned_stack_free(PTR,SIZE) if(SIZE>EIGEN_STACK_ALLOCATION_LIMIT) ei_aligned_free(PTR)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user