dotpopt.c

来自「DSP原理及其C编程开发技术的源码 真的很好呀」· C语言 代码 · 共 17 行

C
17
字号
//dotpopt.c Optimized dot product of two arrays

#include 	<stdio.h> 
#include 	"dotp4.h"  
#define	count 4      

short x[count] = {x_array};			  //declaration of 1st array
short y[count] = {y_array};   		  //declaration of 2nd array
volatile int result = 0;    			  //result

main()
{
  result = dotpfunc(x,y,count);		  //call optimized function 
  printf("result = %d decimal \n", result); //print result
}
             

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?