Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7956 Discussions

_aligned_realloc equivalent in intel compiler? (help please)

suanhwee
Beginner
542 Views
Hi, im trying to port mfc code to linux and i am using the intel compiler.

I could not find a equivalent _aligned_realloc() in the intel compiler manual. Has anyone encountered this problem and how did u solve it?

Thank you very much
0 Kudos
2 Replies
Dale_S_Intel
Employee
542 Views
Well, I've been hoping that someone else had some good ideas. Unfortunately, while we have _mm_malloc() and _mm_free(), we don't seem to have _mm_realloc(). Among the possibiliies are that you could either implement a separate aligned malloc/free/realloc using the standard malloc and free, or you could implement your own _mm_realloc in terms of _mm_malloc and _mm_free().

Maybe someone else has a better idea?

Dale
0 Kudos
levicki
Valued Contributor I
542 Views

I have — Intel should implement support for _aligned_realloc() , _aligned_malloc(), and _aligned_free() if there is already support for that in Visual Studio (check stdlib.h, there are more functions with alignment).

0 Kudos
Reply