📄 doloop.c
字号:
#include "DoLoop.h"
void DoLoop(short *Input1, short *Input2, short * /* restrict */ Output, short *Weights, int LoopCount)
{
int i, Vector1, Vector2;
short Weight1 = Weights[0];
short Weight2 = Weights[1];
/*
ALIGNED_ARRAY(Input1);
ALIGNED_ARRAY(Input2);
ALIGNED_ARRAY(Output);
#pragma MUST_ITERATE(,,2);
*/
for (i = 0; i < LoopCount; i++)
{
Vector1 = Input1[i] * Weight1;
Vector2 = Input2[i] * Weight2;
Output[i] = (Vector1 + Vector2) >> 15;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -