exp3c5x_2.c
来自「用dsp解压mp3程序的算法」· C语言 代码 · 共 29 行
C
29 行
/*****************************************************************
* exp3c5x_2.c - C program for coefficient quantization using in
* Section 3.7.3.2
******************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <intrindefs.h>
/*****************************************************************
* Define variable arrays, define and clear variables
*****************************************************************/
int q15_coeff[40] = {-141,-429,-541,-211,322,354,-215,-551,21,736,332,-841,-871,755,1651,-304,-2880,-1106,6139,13157,13157,6139,-1106,-2880,-304,1651,755,-871,-841,332,736,21,-551,-215,354,322,-211,-541,-429,-141};
int input = 32767;
int i;
long out = 0;
void main()
{
/* Use _smac intrinsic with OVM, FRCT set */
for (i=0; i<40; i++)
{
out = _smac(out,q15_coeff[i],input);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?