亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? slotbits.c

?? TI的DSP C55X的應用程序
?? C
?? 第 1 頁 / 共 3 頁
字號:
/* Function : build_slot_data()                                         */
/*                                                                      */
/* Procedure :  This routine constructs 260-bit slot data from the      */
/*              cl2[], cc0[] & cc1[] bit arrays. This routine is passed */
/*              pointers to the cl2[], cc0[] and cc1[] bit arrays in    */
/*              addition to a pointer where the output 260-bit slot     */
/*              data should be stored.                                  */
/*                                                                      */
/*              Each bit in the cl2[], cc0[] & cc1[] bit arrays         */
/*              is assigned a specific bit in the 260-bit slot data     */
/*              data bit array as defined in tables "cl2_table[]",      */
/*              "cc0_table[]" and "cc1_table[]".                        */
/*                                                                      */
/*              For cl2[], cc0[], and cc1[], this routine runs through  */
/*              the corresponding conversion table and sets the         */
/*              appropriate bit in the slot data bit array.             */
/*                                                                      */
/* Inputs :                                                             */
/*      [PARAMETERS]                                                    */
/*          cl2     : Pointer to 82-element class-2 (cl2[]) bit array.  */
/*                    Each element of this array should contain a       */
/*                    binary value (0 or 1).                            */
/*                                                                      */
/*          cc0     : Pointer to 89-element cc0[] bit array.            */
/*                    Each element of this array should contain a       */
/*                    binary value (0 or 1).                            */
/*                                                                      */
/*          cc1     : Pointer to 89-element cc1[] bit array.            */
/*                    Each element of this array should contain a       */
/*                    binary value (0 or 1).                            */
/*                                                                      */
/*      [GLOBALS/TABLES]                                                */
/*          cl2_table[]   : slot_data[] <-> cl2[] conversion table.     */
/*          cc0_table[]   : slot_data[] <-> cc0[] conversion table.     */
/*          cc1_table[]   : slot_data[] <-> cc1[] conversion table.     */
/*                                                                      */
/* Outputs :                                                            */
/*          slot    : Pointer to 260-element buffer where the resultant */
/*                    slot data should be written. Each element of this */
/*                    bit array will be assigned a value (0 or 1)       */
/*                    depending on the current state of the associated  */
/*                    bit in one of the input bit arrays.               */
/*                                                                      */
/* Return Value :                                                       */
/*          NONE                                                        */
/*                                                                      */ 
/************************************************************************/
                            
void    build_slot_data( unsigned *cl2, unsigned *cc0, unsigned *cc1, unsigned *slot )
{
        int i;
        unsigned    *table_ptr;

  /* Set slot data bits associated with cc0[] bits */
        table_ptr = cc0_table;        
        for( i = 0; i < 89; i++ )  slot[ *(table_ptr++) ] = *(cc0++); 

  /* Set slot data bits associated with cc1[] bits */
        table_ptr = cc1_table;        
        for( i = 0; i < 89; i++ )  slot[ *(table_ptr++) ] = *(cc1++); 

  /* Set slot data bits associated with cl2[] bits */
        table_ptr = cl2_table;        
        for( i = 0; i < 82; i++ )  slot[ *(table_ptr++) ] = *(cl2++);
        
        return; 
}                              

/************************************************************************/
/*                                                                      */
/* Function : extract_slot_bits()                                       */
/*                                                                      */
/* Procedure :  This routine constructs the cl2[], cc0[] & cc1[] bit    */
/*              arrays from 260-bit slot data bit array.                */
/*              This routine is passed a pointer to the 260-element     */
/*              slot data buffer in addition to pointers to where       */
/*              the resultant cl2[], cc0[] and cc1[] bit arrays should  */
/*              be stored.                                              */
/*                                                                      */
/*              Each bit in the cl2[], cc0[] & cc1[] bit arrays         */
/*              is assigned a specific bit in the 260-bit slot data     */
/*              data bit array as defined in tables "cl2_table[]",      */
/*              "cc0_table[]" and "cc1_table[]".                        */
/*                                                                      */
/*              For cl2[], cc0[], and cc1[], this routine runs through  */
/*              the corresponding conversion table and sets or clears   */
/*              the appropriate bit in these output arrays depending    */
/*              on the state of the associated slot data bit.           */
/*                                                                      */
/* Inputs :                                                             */
/*      [PARAMETERS]                                                    */
/*          slot    : Pointer to 260-element slot data buffer.          */
/*                    Each element of this array should contain a       */
/*                    binary value (0 or 1).                            */
/*                                                                      */
/*      [GLOBALS/TABLES]                                                */
/*          cl2_table[]   : slot_data[] <-> cl2[] conversion table.     */
/*          cc0_table[]   : slot_data[] <-> cc0[] conversion table.     */
/*          cc1_table[]   : slot_data[] <-> cc1[] conversion table.     */
/*                                                                      */
/* Outputs :                                                            */
/*          cl2     : Pointer to 82-element buffer where the resultant  */
/*                    class-2 (cl2[]) bit array should be written.      */
/*                    Each element of this array will be assigned a     */
/*                    binary value (0 or 1) depending on the state of   */
/*                    the associated slot data bit.                     */
/*                                                                      */
/*          cc0     : Pointer to 89-element buffer where the resultant  */
/*                    cco[] bit array should be written.                */
/*                    Each element of this array will be assigned a     */
/*                    binary value (0 or 1) depending on the state of   */
/*                    the associated slot data bit.                     */
/*                                                                      */
/*          cc1     : Pointer to 89-element buffer where the resultant  */
/*                    cc1[] bit array should be written.                */
/*                    Each element of this array will be assigned a     */
/*                    binary value (0 or 1) depending on the state of   */
/*                    the associated slot data bit.                     */
/*                                                                      */
/* Return Value :                                                       */
/*          NONE                                                        */
/*                                                                      */ 
/************************************************************************/

void    extract_slot_bits( unsigned *cl2, unsigned *cc0, unsigned *cc1, unsigned *slot )
{
        int i;
        unsigned    *table_ptr;

  /* Set cc0[] bits according to states of associated slot data bits */
        table_ptr = cc0_table;        
        for( i = 0; i < 89; i++ )  *(cc0++) = slot[ *(table_ptr++) ]; 

  /* Set cc1[] bits according to states of associated slot data bits */
        table_ptr = cc1_table;        
        for( i = 0; i < 89; i++ )  *(cc1++) = slot[ *(table_ptr++) ]; 

  /* Set cl2[] bits according to states of associated slot data bits */
        table_ptr = cl2_table;        
        for( i = 0; i < 82; i++ )  *(cl2++) = slot[ *(table_ptr++) ];
        
        return; 
}                              
    
/************************************************************************/
/*                                                                      */
/* Function : build_slot()                                              */
/*                                                                      */
/* Procedure :  This routine constructs a 324-bit formatted slot from   */
/*              260-bit slot data according to the following:           */
/*                                                                      */
/*                  1st  28 bits  : Slot #1 Sync Word                   */
/*                  Next 12 bits  : 0                                   */
/*                  Next 130 bits : 1st 130 bits of slot data           */
/*                  Next 12 bits  : 0                                   */
/*                  Next 130 bits : 2nd 130 bits of slot data           */
/*                  Last 12 bits  : 0                                   */
/*                                                                      */
/* Inputs :                                                             */
/*          data    : Pointer to 260-element bit array representing     */
/*                    the data bits for the slot. (Note that all        */
/*                    elements should be binary, i.e. 0's and 1's only).*/
/*                                                                      */
/* Outputs :                                                            */ 
/*          slot    : Pointer to 324-element bit array where the        */
/*                    resultant formatted slot shall be stored.         */
/*                    (Note that since data is copied from the input    */
/*                    slot data buffer, a resulting binary              */
/*                    representation is dependent on a binary           */
/*                    representation for the input slot data).          */
/*                                                                      */
/* Return Value :                                                       */
/*          NONE                                                        */
/*                                                                      */
/************************************************************************/
    
void    build_slot( unsigned *data, unsigned *slot )
{   
    int         i;
    unsigned    sync1[28]= {1,0,1,0,1,0,0,1,0,0,0,1,1,1,0,1,1,1,1,0,
                            0,1,0,0,1,0,1,0};

    for( i = 0; i < 28;  i++ )  *(slot++) = sync1[i];
    for( i = 0; i < 12;  i++ )  *(slot++) = 0;
    for( i = 0; i < 130; i++ )  *(slot++) = *(data++);
    for( i = 0; i < 12;  i++ )  *(slot++) = 0;
    for( i = 0; i < 130; i++ )  *(slot++) = *(data++);
    for( i = 0; i < 12;  i++ )  *(slot++) = 0;    
    return;

} 

/************************************************************************/
/*                                                                      */
/* Function : get_slot_data()                                           */
/*                                                                      */
/* Procedure :  This routine extracts 260-bit slot data from a          */
/*              324-bit formatted slot. The slot data is extracted      */
/*              in two 130-bit segments starting at bit #40, then       */
/*              bit #182.                                               */
/*                                                                      */
/* Inputs :                                                             */
/*          slot    : Pointer to 324-element bit array representing     */
/*                    a formatted IS54 slot. (Note that all elements    */
/*                    should be binary, i.e. 0's and 1's only).         */
/*                                                                      */
/* Outputs :                                                            */ 
/*          data    : Pointer to 260-element bit array where the slot   */
/*                    data shall be stored. (Note that since this data  */
/*                    is copied from the formatted slot, a resulting    */
/*                    binary representation is dependent on a binary    */
/*                    representation for the formatted slot).           */
/*                                                                      */
/* Return Value :                                                       */
/*          NONE                                                        */
/*                                                                      */ 
/************************************************************************/

void    get_slot_data( unsigned *slot, unsigned *data )
{               
    unsigned    *slot_ptr; 
    int         i;
    
    slot_ptr = slot + 40;
    for( i = 0; i < 130; i++ )  *(data++) = *(slot_ptr++);
    slot_ptr = slot + 182;
    for( i = 0; i < 130; i++ )  *(data++) = *(slot_ptr++);
    
    return;    
}  
                        
                            



?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品久久人人爱| 99久久久久免费精品国产| 爽好久久久欧美精品| 亚洲免费在线播放| 伊人夜夜躁av伊人久久| 亚洲欧美日韩精品久久久久| 亚洲欧美一区二区三区国产精品| 国产精品欧美极品| 国产精品国产三级国产有无不卡 | 精品视频一区二区不卡| 日本韩国一区二区三区视频| 色噜噜偷拍精品综合在线| 在线观看视频一区二区| 欧美日韩国产影片| 日韩美女视频在线| 久久夜色精品一区| 欧美国产日韩一二三区| 亚洲视频一区在线| 亚洲在线成人精品| 久久精品噜噜噜成人av农村| 国产在线精品一区二区| 不卡一区二区在线| 欧美亚洲动漫精品| 日韩一区二区在线观看视频播放| 337p日本欧洲亚洲大胆精品| 欧美激情一区三区| 亚洲激情网站免费观看| 青青草97国产精品免费观看| 国产综合一区二区| 99久久99久久精品免费看蜜桃| 欧美色网站导航| 日韩欧美一二三四区| 欧美国产日韩在线观看| 一区二区高清视频在线观看| 免费高清成人在线| 国产成人在线看| 欧美性猛交xxxx乱大交退制版| 日韩三级视频在线看| 中文字幕不卡在线| 亚洲成人第一页| 国产成人在线看| 欧美三级电影网站| 久久精品一区二区三区av | 国产精品538一区二区在线| 99精品桃花视频在线观看| 欧美电影影音先锋| 欧美激情综合在线| 亚洲成人免费在线观看| 国产不卡免费视频| 欧美午夜宅男影院| 久久久99精品免费观看| 亚洲一二三四久久| 国产成a人亚洲精| 欧美精品高清视频| 1024精品合集| 国产剧情一区二区| 制服丝袜av成人在线看| 亚洲人成亚洲人成在线观看图片 | 韩国一区二区三区| 91久久国产最好的精华液| 精品国产免费人成在线观看| 亚洲自拍偷拍麻豆| 成人av电影在线播放| 欧美一区二区三区免费| 亚洲色图一区二区三区| 国产在线视视频有精品| 日本乱人伦aⅴ精品| 欧美激情一区二区三区全黄| 日韩国产一区二| 91视频在线看| 久久久精品2019中文字幕之3| 午夜欧美一区二区三区在线播放| 成人h精品动漫一区二区三区| 欧美成人精品福利| 日韩电影在线免费观看| 在线精品视频免费播放| 中文字幕乱码亚洲精品一区| 久色婷婷小香蕉久久| 欧美日韩电影一区| 亚洲一区二区三区激情| 99精品欧美一区二区三区综合在线| 精品欧美一区二区三区精品久久| 日韩经典中文字幕一区| 欧洲中文字幕精品| 亚洲黄色在线视频| 99精品在线观看视频| 国产精品国产三级国产aⅴ入口 | www久久久久| 国产精品久久久久久久久图文区| 91国偷自产一区二区使用方法| 丰满放荡岳乱妇91ww| 3d动漫精品啪啪1区2区免费 | 免费观看在线色综合| 91丝袜高跟美女视频| 性做久久久久久| 肉丝袜脚交视频一区二区| 男男视频亚洲欧美| 国产福利91精品一区二区三区| 99re热这里只有精品免费视频 | 成人三级伦理片| 成人的网站免费观看| 在线观看免费视频综合| 欧美男同性恋视频网站| 精品国产乱码久久| 中文字幕一区二区三区在线观看| 一区二区三区免费看视频| 日本伊人午夜精品| 丁香桃色午夜亚洲一区二区三区| 色综合天天综合色综合av| 欧美一区二区视频在线观看2020 | 欧美成人艳星乳罩| 日韩一区欧美一区| 免费成人小视频| 成人国产精品视频| 欧美美女视频在线观看| 久久精品视频在线免费观看| 亚洲伊人色欲综合网| 精品亚洲成a人在线观看| av爱爱亚洲一区| 日韩一级视频免费观看在线| 国产精品国产三级国产普通话三级 | 亚洲黄色免费电影| 国内精品国产成人| 欧美日韩一区二区在线观看| 2019国产精品| 亚洲成人激情社区| 成人av午夜电影| 日韩精品一区二区三区视频播放 | 在线观看视频一区| 国产日韩精品久久久| 天天综合网天天综合色| 成人精品视频一区二区三区| 欧美精品免费视频| 亚洲免费观看在线视频| 国产盗摄精品一区二区三区在线 | 色狠狠一区二区| 国产日韩精品视频一区| 乱中年女人伦av一区二区| 色综合久久综合中文综合网| 久久综合九色综合97婷婷女人| 亚洲不卡一区二区三区| 不卡的电影网站| 日本一区二区三区在线不卡| 美腿丝袜在线亚洲一区 | 欧美一区2区视频在线观看| 国产精品午夜在线| 国产黄色精品网站| 日韩女优制服丝袜电影| 视频一区视频二区中文| 在线亚洲人成电影网站色www| 国产区在线观看成人精品| 韩国三级电影一区二区| 91精品欧美福利在线观看| 午夜欧美电影在线观看| 欧美在线观看视频一区二区三区| 中文字幕一区二区在线播放| 成人爽a毛片一区二区免费| 亚洲精品一区二区三区蜜桃下载| 日韩vs国产vs欧美| 91精品国产综合久久福利| 肉丝袜脚交视频一区二区| 欧美日韩国产另类不卡| 香蕉成人啪国产精品视频综合网| 欧美视频一区二区三区在线观看| 亚洲柠檬福利资源导航| 色香蕉久久蜜桃| 亚洲老司机在线| 91国内精品野花午夜精品| 夜夜夜精品看看| 欧美系列日韩一区| 偷窥少妇高潮呻吟av久久免费| 欧美日韩在线免费视频| 天天色天天操综合| 欧美一级艳片视频免费观看| 男人操女人的视频在线观看欧美| 欧美一区在线视频| 久久不见久久见免费视频1| 精品久久久久久最新网址| 国产精品一区二区x88av| 中文字幕免费不卡| 91免费视频网| 午夜视频在线观看一区| 日韩一区二区三区在线| 韩国女主播成人在线观看| 国产欧美日韩在线视频| 91麻豆国产香蕉久久精品| 亚洲v日本v欧美v久久精品| 91精品国产黑色紧身裤美女| 韩国在线一区二区| 综合自拍亚洲综合图不卡区| 亚洲欧洲韩国日本视频| 91一区二区三区在线播放| 亚洲国产成人av网| 久久综合九色综合97婷婷| www.欧美日韩国产在线| 亚洲丰满少妇videoshd| 久久久久久久久97黄色工厂| 99精品视频中文字幕| 石原莉奈在线亚洲三区| 久久精品男人的天堂|