exp3c5x_3.c
来自「用dsp解压mp3程序的算法」· C语言 代码 · 共 29 行
C
29 行
/*****************************************************************
* exp3c5x_3.c - C program for adding a series of numbers
* for CCS experiments in Section 3.7.3.3
******************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <intrindefs.h>
/*****************************************************************
* Define variable arrays variables
*****************************************************************/
int num[8] = {19660, 19660, 6554, -9830, -32768, -29491, 9830, 6554};
int i,y;
void main()
{
/* Understand the difference between _saad and _lsaad */
/* _lsadd can be treated as OVM turn off */
y = num[0];
for (i=0; i<7; i++)
{
y = _sadd(num[i+1],y);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?