关于采样,程序中通过采样值计算实际值这块,花费时间较多,有什么可以优化的方法吗?尽量缩短计算时间。
wSampleReal = (int)((long)(wSample - 465) * 5505 >> 9);
dwSumTemp += (INT32S)abs(wSampleReal);
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.
关于采样,程序中通过采样值计算实际值这块,花费时间较多,有什么可以优化的方法吗?尽量缩短计算时间。
wSampleReal = (int)((long)(wSample - 465) * 5505 >> 9);
dwSumTemp += (INT32S)abs(wSampleReal);