Hi,
My program has the following code, these code on the C6748 (300M clock) almost spent 10s, the main time spent on the calculation gama[], how should I optimize it, I hope you give suggestions!
for(theta=0;theta<1280;++theta)
{
for(j=theta;j<theta+cp;++j)
{
gama[theta]=gama[theta]+cabsf(data[j]*conjf(data[j+1280]))-(1/2.0)*(pow(cabsf(data[j]),2)+pow(cabsf(data[j+1280]),2));
}
}