?? random.c
字號(hào):
/*
random.c - Zero-mean random noise
*/
#define USE_DATA 0
#if USE_DATA /* Use random data file as input */
#pragma CODE_SECTION(random, "lms_code");
#pragma DATA_SECTION(randdata, "lms_data");
#pragma DATA_SECTION(i, "lms_cinit");
#include "randdata.dat"
static unsigned int i=0;
void random(int *x, unsigned int N)
{
unsigned int t;
for (t=N; t>0; t--)
{
*x++ = randdata[i];
i++;
if (i == 10000)
i=0;
}
}
#else /* Use random function for input */
#include <math.h>
#pragma CODE_SECTION(random, "lms_code");
void random(int *x, unsigned int N)
{
unsigned int t;
for (t=N; t>0; t--)
*x++ = rand()-0x4000;
}
#endif
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -