4

IPP 是否对其处理的数据有任何要求,例如对齐等?

4

1 回答 1

3

在 Windows 上,使用 x86 二进制文件(到目前为止我只使用了这些),您不需要对齐内存,但 userguide_win_ia32.pdf 文档在第 7 章(来自 IPP v6.1)中简要提到了对齐:

Memory Alignment

The performance of Intel IPP functions can be significantly different
when operating on aligned or misaligned data. Access to memory is faster
if pointers to the data are aligned.  Use the following Intel IPP
functions for pointer alignment, memory allocation and deallocation:

使用一些引用的函数:[参见 ippMalloc、ippAlignPtr、ippFree 等...]。

底线是,对齐可以帮助提高性能,但是在您对对齐和不对齐进行分析之前,您不会知道到什么程度。

于 2012-06-26T00:19:58.533 回答