diff options
author | 2010-03-06 09:05:15 -0500 | |
---|---|---|
committer | 2010-03-06 09:05:15 -0500 | |
commit | 2bd31d3fbccbb2ab325c2ce86da1b0a948ff0281 (patch) | |
tree | eca8a227db4b2736eb5de2d4f0e30e94bd154dad /Eigen/src/Core/util/Memory.h | |
parent | 61a14539c71a962e0a0e9de4b1b43307c6f58855 (diff) |
* include Macros.h much earlier: since it takes care of the alignment platform detection, it is needed before we do the vectorization stuff in Eigen/Core !!
* kill EIGEN_DONT_ALIGN_HEAP option (one should use EIGEN_DONT_ALIGN)
* rename EIGEN_DONT_ALIGN_STACK to EIGEN_DONT_ALIGN_STATICALLY. hope it's a better name.
Diffstat (limited to 'Eigen/src/Core/util/Memory.h')
-rw-r--r-- | Eigen/src/Core/util/Memory.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/Core/util/Memory.h b/Eigen/src/Core/util/Memory.h index 9442dffb6..aa0073d44 100644 --- a/Eigen/src/Core/util/Memory.h +++ b/Eigen/src/Core/util/Memory.h @@ -172,7 +172,7 @@ inline void* ei_aligned_malloc(size_t size) #endif void *result; - #if !EIGEN_ALIGN_HEAP + #if !EIGEN_ALIGN result = std::malloc(size); #elif EIGEN_MALLOC_ALREADY_ALIGNED result = std::malloc(size); @@ -196,7 +196,7 @@ inline void* ei_aligned_malloc(size_t size) /** \internal Frees memory allocated with ei_aligned_malloc. */ inline void ei_aligned_free(void *ptr) { - #if !EIGEN_ALIGN_HEAP + #if !EIGEN_ALIGN std::free(ptr); #elif EIGEN_MALLOC_ALREADY_ALIGNED std::free(ptr); @@ -221,7 +221,7 @@ inline void* ei_aligned_realloc(void *ptr, size_t new_size, size_t old_size) (void)old_size; // Suppress 'unused variable' warning. Seen in boost tee. void *result; -#if !EIGEN_ALIGN_HEAP +#if !EIGEN_ALIGN result = std::realloc(ptr,new_size); #elif EIGEN_MALLOC_ALREADY_ALIGNED result = std::realloc(ptr,new_size); @@ -443,7 +443,7 @@ inline static Integer ei_first_aligned(const Scalar* array, Integer size) *** Implementation of EIGEN_MAKE_ALIGNED_OPERATOR_NEW [_IF] *** *****************************************************************************/ -#if EIGEN_ALIGN_HEAP +#if EIGEN_ALIGN #ifdef EIGEN_EXCEPTIONS #define EIGEN_MAKE_ALIGNED_OPERATOR_NEW_NOTHROW(NeedsToAlign) \ void* operator new(size_t size, const std::nothrow_t&) throw() { \ |