mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-23 21:34:30 +08:00
fix #3, remove inline keywords in QtAlignedMalloc (MSVC fix)
This commit is contained in:
parent
e186728867
commit
c8629e12f4
@ -6,17 +6,17 @@
|
|||||||
|
|
||||||
#if (!EIGEN_MALLOC_ALREADY_ALIGNED)
|
#if (!EIGEN_MALLOC_ALREADY_ALIGNED)
|
||||||
|
|
||||||
inline void *qMalloc(size_t size)
|
void *qMalloc(size_t size)
|
||||||
{
|
{std::cerr << "ok\n";
|
||||||
return Eigen::ei_aligned_malloc(size);
|
return Eigen::ei_aligned_malloc(size);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void qFree(void *ptr)
|
void qFree(void *ptr)
|
||||||
{
|
{
|
||||||
Eigen::ei_aligned_free(ptr);
|
Eigen::ei_aligned_free(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void *qRealloc(void *ptr, size_t size)
|
void *qRealloc(void *ptr, size_t size)
|
||||||
{
|
{
|
||||||
void* newPtr = Eigen::ei_aligned_malloc(size);
|
void* newPtr = Eigen::ei_aligned_malloc(size);
|
||||||
memcpy(newPtr, ptr, size);
|
memcpy(newPtr, ptr, size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user