在 GCC 中对齐 malloc()? [英] aligned malloc() in GCC?
本文介绍了在 GCC 中对齐 malloc()?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 GCC 或 glibc 中是否有任何标准化函数可以在对齐的指针处分配内存块?像 _align_malloc() 在 MSVC 中?
Is there any standardized function in GCC or glibc to allocate memory block at aligned pointer? Like _align_malloc() in MSVC?
推荐答案
参见 memalign 函数系列.
这篇关于在 GCC 中对齐 malloc()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文