代码搜索结果
找到约 3,686,282 项符合
C++ 的代码
example 5-1.c
// Example 5 - 1. Single-Precision Complex FIR Filter C Listing
void sp_fir_cplx(float * x, float * h, float * r, int nh, int nr)
{
int i,j;
float imag, real;
for (i = 0; i < 2*nr; i +=
example 5-7.c
// Example 5 - 7. Real-Valued FIR Filter C Listing Using Intrinsic Functions for the TMS320C62x DSP
void rv_fir_C62x(short * x, short * h, short * r, int nh, int nr)
{
int i, j, sum;
for (i
example 6-5.c
//Example 6 - 5. SDLMS Implementation C Listing
y[n] = 0; // 初始化输出缓冲区为0
for (i = 0; i < L; i++) {
y[n] += wn[i] * xn[i]; // 乘累加的实现
}
en = d[n] – y[n];
uen = mu
example 6-17.c
// Example 6 - 17. Residu Implementation Optimized C Listing for the TMS320C62x DSP
#define DWORD_ALIGNED(x) (_nassert(((int)(x) & 0x7) == 0))
typedef short Word16;
typedef int Word32;
#de
example 6-19.c
// Example 6 - 19. LMS Implementation C Listing Using Intrinsics for the TMS320C64x DSP
for (i = 0; i < L/2; i++)
yout += _dotp2(x[i],w[i]); // 乘累加,采用了内部函数_dotp2,
// 循环次数减少了一半
example 6-16.c
; Example 6 - 16. Residu Implementation C Listing Using Intrisics for the TMS320C62x DSP
#define L_add(a,b) (_sadd((a),(b)))
#define L_mult(a,b) (_smpy((a),(b)))
#define extract_h(a) (_e
example 6-14.c
//Example 6 - 14. LMS Implementation C Listing Using Intrinsics for the TMS320C62x DSP
for (i = 0; i < L; i++)
yout += ((_mpy(x[i],w[i]))16);
example 6-2.c
//Example 6 - 2. NLMS Implementation C Listing
y[n] = 0; //初始化输出缓冲区为0
for (i = 0; i < L; i++) {
y[n] += wn[i] * xn[i]; // 乘累加的实现
}
en = d[n] – y[n];
powerx = b1*
example 6-3.c
// Example 6 - 3. LLMS Implementation C Listing
y[n] = 0; //初始化输出缓冲区为0
for (i = 0; i < L; i++) {
y[n] += wn[i] * xn[i]; // 乘累加的实现
}
en = d[n] – y[n];
uen = mu*en
example 6-1.c
// Example 6 - 1. LMS Implementation C Listing
y[n] = 0; //初始化输出缓冲区为0
for (i = 0; i < L; i++) {
y[n] += wn[i] * xn[i]; // 乘累加的实现
}
en = d[n] – y[n];
uen = mu*e