mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
ei_aligned_delete was running through the various paths in the wrong
order
This commit is contained in:
@@ -136,14 +136,14 @@ template<typename T, bool Align> inline T* ei_conditional_aligned_new(size_t siz
|
|||||||
*/
|
*/
|
||||||
inline void ei_aligned_free(void *ptr)
|
inline void ei_aligned_free(void *ptr)
|
||||||
{
|
{
|
||||||
#if EIGEN_HAS_POSIX_MEMALIGN
|
#if EIGEN_MALLOC_ALREADY_ALIGNED
|
||||||
free(ptr);
|
free(ptr);
|
||||||
#elif EIGEN_MALLOC_ALREADY_ALIGNED
|
#elif EIGEN_HAS_POSIX_MEMALIGN
|
||||||
free(ptr);
|
free(ptr);
|
||||||
#elif defined(_MSC_VER)
|
|
||||||
_aligned_free(ptr);
|
|
||||||
#elif EIGEN_HAS_MM_MALLOC
|
#elif EIGEN_HAS_MM_MALLOC
|
||||||
_mm_free(ptr);
|
_mm_free(ptr);
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
_aligned_free(ptr);
|
||||||
#else
|
#else
|
||||||
ei_handmade_aligned_free(ptr);
|
ei_handmade_aligned_free(ptr);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user