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.
我是新的英特尔指令,所以直到现在我一直在使用静态内存,所以我有一个声明:
__m128i pResult[10];
但现在我想知道是否有可能以动态方式分配内存,如使用malloc或calloc但对于这个新指令。
malloc
calloc
就像任何其他 malloc 一样:
__m128i *p = (__m128i*)malloc(10 * sizeof(__m128i));