Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的 c 程序中有这个声明
u_int64_t *x ; x = (u_int64_t*)calloc(length, 8);
并想用对齐分配的 8 字节块的指令替换它,以便能够使用对齐的 AVX 指令,例如 vmovdqa,我使用了 calloc,因为它将块初始化为 0,这是我需要的。欢迎任何建议。