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

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

?? docecc.c

?? linux mtd設備操作工具軟件
?? C
?? 第 1 頁 / 共 2 頁
字號:
	}      if (q != 0)	continue;      /* store root and error location number indices */      root[count] = i;      loc[count] = k;      count++;    }    if (count != no_eras) {      printf("\n lambda(x) is WRONG\n");      count = -1;      goto finish;    }#if DEBUG >= 2    printf("\n Erasure positions as determined by roots of Eras Loc Poly:\n");    for (i = 0; i < count; i++)      printf("%d ", loc[i]);    printf("\n");#endif#endif  }  for(i=0;i<NN-KK+1;i++)    b[i] = Index_of[lambda[i]];    /*   * Begin Berlekamp-Massey algorithm to determine error+erasure   * locator polynomial   */  r = no_eras;  el = no_eras;  while (++r <= NN-KK) {	/* r is the step number */    /* Compute discrepancy at the r-th step in poly-form */    discr_r = 0;    for (i = 0; i < r; i++){      if ((lambda[i] != 0) && (s[r - i] != A0)) {	discr_r ^= Alpha_to[modnn(Index_of[lambda[i]] + s[r - i])];      }    }    discr_r = Index_of[discr_r];	/* Index form */    if (discr_r == A0) {      /* 2 lines below: B(x) <-- x*B(x) */      COPYDOWN(&b[1],b,NN-KK);      b[0] = A0;    } else {      /* 7 lines below: T(x) <-- lambda(x) - discr_r*x*b(x) */      t[0] = lambda[0];      for (i = 0 ; i < NN-KK; i++) {	if(b[i] != A0)	  t[i+1] = lambda[i+1] ^ Alpha_to[modnn(discr_r + b[i])];	else	  t[i+1] = lambda[i+1];      }      if (2 * el <= r + no_eras - 1) {	el = r + no_eras - el;	/*	 * 2 lines below: B(x) <-- inv(discr_r) *	 * lambda(x)	 */	for (i = 0; i <= NN-KK; i++)	  b[i] = (lambda[i] == 0) ? A0 : modnn(Index_of[lambda[i]] - discr_r + NN);      } else {	/* 2 lines below: B(x) <-- x*B(x) */	COPYDOWN(&b[1],b,NN-KK);	b[0] = A0;      }      COPY(lambda,t,NN-KK+1);    }  }  /* Convert lambda to index form and compute deg(lambda(x)) */  deg_lambda = 0;  for(i=0;i<NN-KK+1;i++){    lambda[i] = Index_of[lambda[i]];    if(lambda[i] != A0)      deg_lambda = i;  }  /*   * Find roots of the error+erasure locator polynomial by Chien   * Search   */  COPY(&reg[1],&lambda[1],NN-KK);  count = 0;		/* Number of roots of lambda(x) */  for (i = 1,k=NN-Ldec; i <= NN; i++,k = modnn(NN+k-Ldec)) {    q = 1;    for (j = deg_lambda; j > 0; j--){      if (reg[j] != A0) {	reg[j] = modnn(reg[j] + j);	q ^= Alpha_to[reg[j]];      }    }    if (q != 0)      continue;    /* store root (index-form) and error location number */    root[count] = i;    loc[count] = k;    /* If we've already found max possible roots,     * abort the search to save time     */    if(++count == deg_lambda)      break;  }  if (deg_lambda != count) {    /*     * deg(lambda) unequal to number of roots => uncorrectable     * error detected     */    count = -1;    goto finish;  }  /*   * Compute err+eras evaluator poly omega(x) = s(x)*lambda(x) (modulo   * x**(NN-KK)). in index form. Also find deg(omega).   */  deg_omega = 0;  for (i = 0; i < NN-KK;i++){    tmp = 0;    j = (deg_lambda < i) ? deg_lambda : i;    for(;j >= 0; j--){      if ((s[i + 1 - j] != A0) && (lambda[j] != A0))	tmp ^= Alpha_to[modnn(s[i + 1 - j] + lambda[j])];    }    if(tmp != 0)      deg_omega = i;    omega[i] = Index_of[tmp];  }  omega[NN-KK] = A0;    /*   * Compute error values in poly-form. num1 = omega(inv(X(l))), num2 =   * inv(X(l))**(B0-1) and den = lambda_pr(inv(X(l))) all in poly-form   */  for (j = count-1; j >=0; j--) {    num1 = 0;    for (i = deg_omega; i >= 0; i--) {      if (omega[i] != A0)	num1  ^= Alpha_to[modnn(omega[i] + i * root[j])];    }    num2 = Alpha_to[modnn(root[j] * (B0 - 1) + NN)];    den = 0;        /* lambda[i+1] for i even is the formal derivative lambda_pr of lambda[i] */    for (i = min(deg_lambda,NN-KK-1) & ~1; i >= 0; i -=2) {      if(lambda[i+1] != A0)	den ^= Alpha_to[modnn(lambda[i+1] + i * root[j])];    }    if (den == 0) {#if DEBUG >= 1      printf("\n ERROR: denominator = 0\n");#endif      /* Convert to dual- basis */      count = -1;      goto finish;    }    /* Apply error to data */    if (num1 != 0) {        eras_val[j] = Alpha_to[modnn(Index_of[num1] + Index_of[num2] + NN - Index_of[den])];    } else {        eras_val[j] = 0;    }  } finish:  for(i=0;i<count;i++)      eras_pos[i] = loc[i];  return count;}/***************************************************************************//* The DOC specific code begins here */#define SECTOR_SIZE 512/* The sector bytes are packed into NB_DATA MM bits words */#define NB_DATA (((SECTOR_SIZE + 1) * 8 + 6) / MM)/*  * Correct the errors in 'sector[]' by using 'ecc1[]' which is the * content of the feedback shift register applyied to the sector and * the ECC. Return the number of errors corrected (and correct them in * sector), or -1 if error  */int doc_decode_ecc(unsigned char sector[SECTOR_SIZE], unsigned char ecc1[6]){    int parity, i, nb_errors;    gf bb[NN - KK + 1];    gf error_val[NN-KK];    int error_pos[NN-KK], pos, bitpos, index, val;    dtype *Alpha_to, *Index_of;    /* init log and exp tables here to save memory. However, it is slower */    Alpha_to = kmalloc((NN + 1) * sizeof(dtype), GFP_KERNEL);    if (!Alpha_to)        return -1;        Index_of = kmalloc((NN + 1) * sizeof(dtype), GFP_KERNEL);    if (!Index_of) {        kfree(Alpha_to);        return -1;    }    generate_gf(Alpha_to, Index_of);    parity = ecc1[1];    bb[0] =  (ecc1[4] & 0xff) | ((ecc1[5] & 0x03) << 8);    bb[1] = ((ecc1[5] & 0xfc) >> 2) | ((ecc1[2] & 0x0f) << 6);    bb[2] = ((ecc1[2] & 0xf0) >> 4) | ((ecc1[3] & 0x3f) << 4);    bb[3] = ((ecc1[3] & 0xc0) >> 6) | ((ecc1[0] & 0xff) << 2);    nb_errors = eras_dec_rs(Alpha_to, Index_of, bb,                             error_val, error_pos, 0);    if (nb_errors <= 0)        goto the_end;    /* correct the errors */    for(i=0;i<nb_errors;i++) {        pos = error_pos[i];        if (pos >= NB_DATA && pos < KK) {            nb_errors = -1;            goto the_end;        }        if (pos < NB_DATA) {            /* extract bit position (MSB first) */            pos = 10 * (NB_DATA - 1 - pos) - 6;            /* now correct the following 10 bits. At most two bytes               can be modified since pos is even */            index = (pos >> 3) ^ 1;            bitpos = pos & 7;            if ((index >= 0 && index < SECTOR_SIZE) ||                 index == (SECTOR_SIZE + 1)) {                val = error_val[i] >> (2 + bitpos);                parity ^= val;                if (index < SECTOR_SIZE)                    sector[index] ^= val;            }            index = ((pos >> 3) + 1) ^ 1;            bitpos = (bitpos + 10) & 7;            if (bitpos == 0)                bitpos = 8;            if ((index >= 0 && index < SECTOR_SIZE) ||                 index == (SECTOR_SIZE + 1)) {                val = error_val[i] << (8 - bitpos);                parity ^= val;                if (index < SECTOR_SIZE)                    sector[index] ^= val;            }        }    }        /* use parity to test extra errors */    if ((parity & 0xff) != 0)        nb_errors = -1; the_end:    kfree(Alpha_to);    kfree(Index_of);    return nb_errors;}EXPORT_SYMBOL_GPL(doc_decode_ecc);MODULE_LICENSE("GPL");MODULE_AUTHOR("Fabrice Bellard <fabrice.bellard@netgem.com>");MODULE_DESCRIPTION("ECC code for correcting errors detected by DiskOnChip 2000 and Millennium ECC hardware");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美女久久福利网站| 欧美精选午夜久久久乱码6080| av亚洲精华国产精华精华 | 亚洲五码中文字幕| 国产精品综合视频| 91精品国模一区二区三区| 中文字幕一区av| 精品一区二区三区不卡| 欧美精品三级在线观看| 国产精品国产自产拍高清av王其| 美女精品自拍一二三四| 欧美专区亚洲专区| 国产精品麻豆网站| 国产精品亚洲а∨天堂免在线| 中文字幕欧美一| 成人免费视频app| 欧美日韩1234| 91精品麻豆日日躁夜夜躁| 亚洲视频 欧洲视频| 国产精品123区| 日韩精品自拍偷拍| 美女视频免费一区| 欧美一区日韩一区| 日韩高清一区二区| 欧美日韩国产经典色站一区二区三区 | 亚洲电影一区二区| av色综合久久天堂av综合| 中文字幕欧美区| 狠狠色丁香久久婷婷综合丁香| 91精品国产综合久久国产大片| 亚洲成精国产精品女| 制服丝袜成人动漫| 国产一区二区三区久久久| 亚洲天堂av老司机| 7777精品伊人久久久大香线蕉完整版| 中文字幕一区二区三区在线观看 | 国产在线精品一区二区三区不卡| 日韩三级在线观看| 日韩av二区在线播放| 日韩视频123| 国内精品久久久久影院色 | 国产伦精品一区二区三区视频青涩| 7777女厕盗摄久久久| 久久精品国产久精国产| 久久色在线视频| k8久久久一区二区三区 | 欧美性生活大片视频| 中文字幕不卡的av| 日韩你懂的在线观看| 精品一区二区三区不卡 | 狠狠色丁香久久婷婷综合_中 | 日韩欧美亚洲一区二区| 国产资源精品在线观看| 国产午夜一区二区三区| 波多野结衣亚洲| 亚洲午夜影视影院在线观看| 欧美一区二区视频免费观看| 国内久久婷婷综合| 亚洲婷婷国产精品电影人久久| 欧美日韩国产精品自在自线| 国模冰冰炮一区二区| 18涩涩午夜精品.www| 欧美日韩国产高清一区二区三区| 麻豆精品国产91久久久久久| 国产精品久久久久久福利一牛影视 | 激情六月婷婷综合| 国产精品久久久久一区| 69堂精品视频| 成人黄色网址在线观看| 午夜精品久久久久影视| 国产三级一区二区| 欧美在线一二三| av在线播放一区二区三区| 亚洲成人资源在线| 中文字幕电影一区| 欧美一级黄色大片| 91丨九色porny丨蝌蚪| 日本女人一区二区三区| 亚洲婷婷国产精品电影人久久| 日韩精品一区二区三区在线播放| 99久久综合99久久综合网站| 久久精品国产在热久久| 洋洋成人永久网站入口| 久久女同精品一区二区| 91 com成人网| 91免费精品国自产拍在线不卡| 奇米精品一区二区三区在线观看一 | 天天爽夜夜爽夜夜爽精品视频| 久久久久99精品一区| 欧美久久高跟鞋激| 日本道免费精品一区二区三区| 国产揄拍国内精品对白| 亚洲高清免费观看高清完整版在线观看| 久久久久久99久久久精品网站| 欧美人狂配大交3d怪物一区| 91视频在线看| 成人在线综合网| 国内精品不卡在线| 蜜桃视频第一区免费观看| 亚洲第一综合色| 夜色激情一区二区| 亚洲欧美日韩综合aⅴ视频| 国产亚洲一区二区在线观看| 精品免费国产一区二区三区四区| 欧美网站大全在线观看| 在线观看不卡视频| 日本乱码高清不卡字幕| 91丨porny丨首页| 成人黄色a**站在线观看| 国产成人免费xxxxxxxx| 国产乱码精品一区二区三 | 水野朝阳av一区二区三区| 136国产福利精品导航| 亚洲国产精品国自产拍av| 日本一区二区三区dvd视频在线| 日韩精品一区二区三区swag | 国产精品色噜噜| 欧美国产日产图区| 中文字幕欧美激情| 日韩伦理电影网| 婷婷久久综合九色综合绿巨人| 国产夜色精品一区二区av| 99久久婷婷国产综合精品| 日韩成人av影视| 亚洲成av人片一区二区三区| 欧美日韩国产高清一区| aaa亚洲精品一二三区| 97久久人人超碰| 日本精品一级二级| 欧美性色综合网| 欧美一级久久久久久久大片| 日韩一级在线观看| 国产亚洲精品资源在线26u| 国产精品久久久久久亚洲毛片| 亚洲国产精品精华液2区45| 亚洲欧洲综合另类在线| 亚洲综合小说图片| 免费欧美在线视频| 国产高清精品网站| 99久久夜色精品国产网站| 欧美日韩中文字幕一区二区| 91精品国产综合久久国产大片| 久久久久久影视| 亚洲精品乱码久久久久久黑人| 国产一区二区三区免费看| 五月婷婷色综合| 久88久久88久久久| 99久久精品免费观看| 欧美日韩精品一区二区在线播放| 精品人伦一区二区色婷婷| 中文字幕乱码一区二区免费| 亚洲综合在线第一页| 精品在线观看视频| 色综合久久久久网| 91精品国产aⅴ一区二区| 日本一区二区久久| 日韩成人精品在线观看| 成人高清免费在线播放| 4438亚洲最大| 综合久久一区二区三区| 免费人成精品欧美精品| 不卡一区中文字幕| 欧美一区二区三区免费| 亚洲美女视频在线观看| 国精产品一区一区三区mba桃花| 色欧美日韩亚洲| 国产清纯白嫩初高生在线观看91 | 欧美精品三级日韩久久| 国产精品免费aⅴ片在线观看| 亚洲成人中文在线| eeuss鲁片一区二区三区| 日韩欧美成人激情| 亚洲成av人片一区二区三区| 不卡视频在线观看| 久久嫩草精品久久久精品| 国产一区二区按摩在线观看| 色婷婷国产精品| 中文字幕电影一区| 国产永久精品大片wwwapp | 欧美日韩综合在线| 国产精品久久久久久久久免费桃花 | 久久精品国产99国产精品| 欧美午夜片在线看| 亚洲私人影院在线观看| 国产**成人网毛片九色| 精品国产3级a| 久久精品国内一区二区三区| 欧美丰满高潮xxxx喷水动漫| 亚洲人成影院在线观看| 99这里都是精品| 国产精品素人一区二区| 国产精品亚洲专一区二区三区| 欧美zozozo| 久久99精品久久久久久| 欧美成人乱码一区二区三区| 日本亚洲最大的色成网站www| 欧美片在线播放| 日韩影院免费视频| 欧美日本一区二区| 91麻豆精品国产自产在线观看一区|