This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

复数相乘优化

我的程序里有如下代码,它特别耗时间,我认为主要消耗在了复数的运算上,有什么改进的方法吗?能加快复数的运算,缓存和编译器优化我都试过了,效果不明显。(data[ ]是复数,cabsf是对复数取模,conjf是对复数取共轭,a和b都是整数,处理器为C6748)

for(j=0;j<1536;++j)

{
lookup[j] = cabsf(data[j]*conjf(data[j+1280])) - ((a + b) >> 1);

}