?? control_bits.c
字號:
/* | | Copyright disclaimer: | This software was developed at the National Institute of Standards | and Technology by employees of the Federal Government in the course | of their official duties. Pursuant to title 17 Section 105 of the | United States Code this software is not subject to copyright | protection and is in the public domain. | | We would appreciate acknowledgement if the software is used. |*/#include <stdio.h>#include <stdlib.h>#include <math.h>#include "config_wcdma.h"int wcdma_remove_control_bits( double data[], /* IN: input data symbol vector */ int bits_in_frame, /* IN: legth of the output vector*/ int slots_in_frame, /* IN: number of slots in a frame*/ int nControl, /* IN Number of contol bits in slot/**/ double out[]) /* OUT: output symbols for one block */{ int i,i_tmp; int coded_bits_slot = (bits_in_frame - slots_in_frame * nControl)/ slots_in_frame; int bits_in_slot = bits_in_frame / slots_in_frame ; i_tmp = 0; for (i = 0; i < bits_in_frame; i++){ if ( (i % bits_in_slot) > (nControl - 1)){ out[i_tmp] = data[i]; i_tmp++; }}}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -