📄 compcomp.c
字号:
//compcomp.c
//
// Project Red 2002: High Performance OFDM Modem
// Against Channel Imperfections
// Auther: Linus Falk
#include "ofdm.h"
#include <stdio.h>
//#pragma CODE_SECTION(compcomp,"edata");
void compcomp(float frame[BLOCK_SIZE]){
int i,j;
frame[0] = 0;
frame[1] = 0;
frame[FFT_SIZE] = 0; //re
frame[FFT_SIZE+1] = 0; //im
for(i=(BLOCK_SIZE -2),j=2; i>= FFT_SIZE+2; i-=2,j+=2){
frame[i] = frame[j]; //re
frame[i+1] = -frame[j+1]; //im
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -