Link Copied
Hi,
No function in IPP that can add every three elements in the array. This part can write with some C loops. Other computation can use IPP functions, as bellow:
IPP32s * tmp1, *tmp2;
ippsMul_16s32s_Sfs(s, d, tmp1,3*N, 0);
for(i=0;i
tmp2=tmp1[3*i]+tmp1[3*i+1]+tmp1[3*i+2]
ippsAbs_16s_I(tmp2, N);
ippsSum_32s_Sfs(tmp2,N,&Sum,0)
Thanks,
Chao
[cpp]for( int i=0; i<60000000; i+=1000000) //depends on size of cache and number of buffers for read/write { Ipp32s* p = pSource+i; func1( p); func2( p); func3( p); ... }[/cpp]
For more complete information about compiler optimizations, see our Optimization Notice.