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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? mpi.c

?? tommath庫(kù)
?? C
?? 第 1 頁(yè) / 共 5 頁(yè)
字號(hào):
  /* fix the sign */  neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG;  x.sign = y.sign = MP_ZPOS;  /* normalize both x and y, ensure that y >= b/2, [b == 2**DIGIT_BIT] */  norm = mp_count_bits(&y) % DIGIT_BIT;  if (norm < (int)(DIGIT_BIT-1)) {     norm = (DIGIT_BIT-1) - norm;     if ((res = mp_mul_2d (&x, norm, &x)) != MP_OKAY) {       goto LBL_Y;     }     if ((res = mp_mul_2d (&y, norm, &y)) != MP_OKAY) {       goto LBL_Y;     }  } else {     norm = 0;  }  /* note hac does 0 based, so if used==5 then its 0,1,2,3,4, e.g. use 4 */  n = x.used - 1;  t = y.used - 1;  /* while (x >= y*b**n-t) do { q[n-t] += 1; x -= y*b**{n-t} } */  if ((res = mp_lshd (&y, n - t)) != MP_OKAY) { /* y = y*b**{n-t} */    goto LBL_Y;  }  while (mp_cmp (&x, &y) != MP_LT) {    ++(q.dp[n - t]);    if ((res = mp_sub (&x, &y, &x)) != MP_OKAY) {      goto LBL_Y;    }  }  /* reset y by shifting it back down */  mp_rshd (&y, n - t);  /* step 3. for i from n down to (t + 1) */  for (i = n; i >= (t + 1); i--) {    if (i > x.used) {      continue;    }    /* step 3.1 if xi == yt then set q{i-t-1} to b-1,      * otherwise set q{i-t-1} to (xi*b + x{i-1})/yt */    if (x.dp[i] == y.dp[t]) {      q.dp[i - t - 1] = ((((mp_digit)1) << DIGIT_BIT) - 1);    } else {      mp_word tmp;      tmp = ((mp_word) x.dp[i]) << ((mp_word) DIGIT_BIT);      tmp |= ((mp_word) x.dp[i - 1]);      tmp /= ((mp_word) y.dp[t]);      if (tmp > (mp_word) MP_MASK)        tmp = MP_MASK;      q.dp[i - t - 1] = (mp_digit) (tmp & (mp_word) (MP_MASK));    }    /* while (q{i-t-1} * (yt * b + y{t-1})) >              xi * b**2 + xi-1 * b + xi-2             do q{i-t-1} -= 1;     */    q.dp[i - t - 1] = (q.dp[i - t - 1] + 1) & MP_MASK;    do {      q.dp[i - t - 1] = (q.dp[i - t - 1] - 1) & MP_MASK;      /* find left hand */      mp_zero (&t1);      t1.dp[0] = (t - 1 < 0) ? 0 : y.dp[t - 1];      t1.dp[1] = y.dp[t];      t1.used = 2;      if ((res = mp_mul_d (&t1, q.dp[i - t - 1], &t1)) != MP_OKAY) {        goto LBL_Y;      }      /* find right hand */      t2.dp[0] = (i - 2 < 0) ? 0 : x.dp[i - 2];      t2.dp[1] = (i - 1 < 0) ? 0 : x.dp[i - 1];      t2.dp[2] = x.dp[i];      t2.used = 3;    } while (mp_cmp_mag(&t1, &t2) == MP_GT);    /* step 3.3 x = x - q{i-t-1} * y * b**{i-t-1} */    if ((res = mp_mul_d (&y, q.dp[i - t - 1], &t1)) != MP_OKAY) {      goto LBL_Y;    }    if ((res = mp_lshd (&t1, i - t - 1)) != MP_OKAY) {      goto LBL_Y;    }    if ((res = mp_sub (&x, &t1, &x)) != MP_OKAY) {      goto LBL_Y;    }    /* if x < 0 then { x = x + y*b**{i-t-1}; q{i-t-1} -= 1; } */    if (x.sign == MP_NEG) {      if ((res = mp_copy (&y, &t1)) != MP_OKAY) {        goto LBL_Y;      }      if ((res = mp_lshd (&t1, i - t - 1)) != MP_OKAY) {        goto LBL_Y;      }      if ((res = mp_add (&x, &t1, &x)) != MP_OKAY) {        goto LBL_Y;      }      q.dp[i - t - 1] = (q.dp[i - t - 1] - 1UL) & MP_MASK;    }  }  /* now q is the quotient and x is the remainder    * [which we have to normalize]    */    /* get sign before writing to c */  x.sign = x.used == 0 ? MP_ZPOS : a->sign;  if (c != NULL) {    mp_clamp (&q);    mp_exch (&q, c);    c->sign = neg;  }  if (d != NULL) {    mp_div_2d (&x, norm, &x, NULL);    mp_exch (&x, d);  }  res = MP_OKAY;LBL_Y:mp_clear (&y);LBL_X:mp_clear (&x);LBL_T2:mp_clear (&t2);LBL_T1:mp_clear (&t1);LBL_Q:mp_clear (&q);  return res;}#endif#endif/* End: bn_mp_div.c *//* Start: bn_mp_div_2.c */#include <tommath.h>#ifdef BN_MP_DIV_2_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@iahu.ca, http://math.libtomcrypt.org *//* b = a/2 */int mp_div_2(mp_int * a, mp_int * b){  int     x, res, oldused;  /* copy */  if (b->alloc < a->used) {    if ((res = mp_grow (b, a->used)) != MP_OKAY) {      return res;    }  }  oldused = b->used;  b->used = a->used;  {    register mp_digit r, rr, *tmpa, *tmpb;    /* source alias */    tmpa = a->dp + b->used - 1;    /* dest alias */    tmpb = b->dp + b->used - 1;    /* carry */    r = 0;    for (x = b->used - 1; x >= 0; x--) {      /* get the carry for the next iteration */      rr = *tmpa & 1;      /* shift the current digit, add in carry and store */      *tmpb-- = (*tmpa-- >> 1) | (r << (DIGIT_BIT - 1));      /* forward carry to next iteration */      r = rr;    }    /* zero excess digits */    tmpb = b->dp + b->used;    for (x = b->used; x < oldused; x++) {      *tmpb++ = 0;    }  }  b->sign = a->sign;  mp_clamp (b);  return MP_OKAY;}#endif/* End: bn_mp_div_2.c *//* Start: bn_mp_div_2d.c */#include <tommath.h>#ifdef BN_MP_DIV_2D_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@iahu.ca, http://math.libtomcrypt.org *//* shift right by a certain bit count (store quotient in c, optional remainder in d) */int mp_div_2d (mp_int * a, int b, mp_int * c, mp_int * d){  mp_digit D, r, rr;  int     x, res;  mp_int  t;  /* if the shift count is <= 0 then we do no work */  if (b <= 0) {    res = mp_copy (a, c);    if (d != NULL) {      mp_zero (d);    }    return res;  }  if ((res = mp_init (&t)) != MP_OKAY) {    return res;  }  /* get the remainder */  if (d != NULL) {    if ((res = mp_mod_2d (a, b, &t)) != MP_OKAY) {      mp_clear (&t);      return res;    }  }  /* copy */  if ((res = mp_copy (a, c)) != MP_OKAY) {    mp_clear (&t);    return res;  }  /* shift by as many digits in the bit count */  if (b >= (int)DIGIT_BIT) {    mp_rshd (c, b / DIGIT_BIT);  }  /* shift any bit count < DIGIT_BIT */  D = (mp_digit) (b % DIGIT_BIT);  if (D != 0) {    register mp_digit *tmpc, mask, shift;    /* mask */    mask = (((mp_digit)1) << D) - 1;    /* shift for lsb */    shift = DIGIT_BIT - D;    /* alias */    tmpc = c->dp + (c->used - 1);    /* carry */    r = 0;    for (x = c->used - 1; x >= 0; x--) {      /* get the lower  bits of this word in a temp */      rr = *tmpc & mask;      /* shift the current word and mix in the carry bits from the previous word */      *tmpc = (*tmpc >> D) | (r << shift);      --tmpc;      /* set the carry to the carry bits of the current word found above */      r = rr;    }  }  mp_clamp (c);  if (d != NULL) {    mp_exch (&t, d);  }  mp_clear (&t);  return MP_OKAY;}#endif/* End: bn_mp_div_2d.c *//* Start: bn_mp_div_3.c */#include <tommath.h>#ifdef BN_MP_DIV_3_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@iahu.ca, http://math.libtomcrypt.org *//* divide by three (based on routine from MPI and the GMP manual) */intmp_div_3 (mp_int * a, mp_int *c, mp_digit * d){  mp_int   q;  mp_word  w, t;  mp_digit b;  int      res, ix;    /* b = 2**DIGIT_BIT / 3 */  b = (((mp_word)1) << ((mp_word)DIGIT_BIT)) / ((mp_word)3);  if ((res = mp_init_size(&q, a->used)) != MP_OKAY) {     return res;  }    q.used = a->used;  q.sign = a->sign;  w = 0;  for (ix = a->used - 1; ix >= 0; ix--) {     w = (w << ((mp_word)DIGIT_BIT)) | ((mp_word)a->dp[ix]);     if (w >= 3) {        /* multiply w by [1/3] */        t = (w * ((mp_word)b)) >> ((mp_word)DIGIT_BIT);        /* now subtract 3 * [w/3] from w, to get the remainder */        w -= t+t+t;        /* fixup the remainder as required since         * the optimization is not exact.         */        while (w >= 3) {           t += 1;           w -= 3;        }      } else {        t = 0;      }      q.dp[ix] = (mp_digit)t;  }  /* [optional] store the remainder */  if (d != NULL) {     *d = (mp_digit)w;  }  /* [optional] store the quotient */  if (c != NULL) {     mp_clamp(&q);     mp_exch(&q, c);  }  mp_clear(&q);    return res;}#endif/* End: bn_mp_div_3.c *//* Start: bn_mp_div_d.c */#include <tommath.h>#ifdef BN_MP_DIV_D_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@iahu.ca, http://math.libtomcrypt.org */static int s_is_power_of_two(mp_digit b, int *p){   int x;   for (x = 1; x < DIGIT_BIT; x++) {      if (b == (((mp_digit)1)<<x)) {         *p = x;         return 1;      }   }   return 0;}/* single digit division (based on routine from MPI) */int mp_div_d (mp_int * a, mp_digit b, mp_int * c, mp_digit * d){  mp_int  q;  mp_word w;  mp_digit t;  int     res, ix;  /* cannot divide by zero */  if (b == 0) {     return MP_VAL;  }  /* quick outs */  if (b == 1 || mp_iszero(a) == 1) {     if (d != NULL) {        *d = 0;     }     if (c != NULL) {        return mp_copy(a, c);     }     return MP_OKAY;  }  /* power of two ? */  if (s_is_power_of_two(b, &ix) == 1) {     if (d != NULL) {        *d = a->dp[0] & ((((mp_digit)1)<<ix) - 1);     }     if (c != NULL) {        return mp_div_2d(a, ix, c, NULL);     }     return MP_OKAY;  }#ifdef BN_MP_DIV_3_C  /* three? */  if (b == 3) {     return mp_div_3(a, c, d);  }#endif  /* no easy answer [c'est la vie].  Just division */  if ((res = mp_init_size(&q, a->used)) != MP_OKAY) {     return res;  }    q.used = a->used;  q.sign = a->sign;  w = 0;  for (ix = a->used - 1; ix >= 0; ix--) {     w = (w << ((mp_word)DIGIT_BIT)) | ((mp_word)a->dp[ix]);          if (w >= b) {        t = (mp_digit)(w / b);        w -= ((mp_word)t) * ((mp_word)b);      } else {        t = 0;      }      q.dp[ix] = (mp_digit)t;  }    if (d != NULL) {     *d = (mp_digit)w;  }    if (c != NULL) {     mp_clamp(&q);     mp_exch(&q, c);  }  mp_clear(&q);    return res;}#endif/* End: bn_mp_div_d.c *//* Start: bn_mp_dr_is_modulus.c */#include <tommath.h>#ifdef BN_MP_DR_IS_MODULUS_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@iahu.ca, http://math.libtomcrypt.org *//* determines if a number is a valid DR modulus */int mp_dr_is_modulus(mp_int *a){   int ix;   /* must be at least two digits */   if (a->used < 2) {      return 0;   }   /* must be of the form b**k - a [a <= b] so all    * but the first digit must be equal to -1 (mod b).    */   for (ix = 1; ix < a->used; ix++) {       if (a->dp[ix] != MP_MASK) {          return 0;       }   }   return 1;}#endif/* End: bn_mp_dr_is_modulus.c *//* Start: bn_mp_dr_reduce.c */#include <tommath.h>#ifdef BN_MP_DR_REDUCE_C/* LibTomMath, multiple-precision integer library -- Tom St Denis

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产品国语在线不卡| 亚洲一区二区三区四区在线| 欧美哺乳videos| 欧美亚洲国产一卡| 91黄视频在线| 欧美日韩色综合| 欧美伊人久久久久久久久影院| 91蝌蚪国产九色| 色综合久久中文字幕| 99视频精品在线| 一本大道久久精品懂色aⅴ| 色噜噜狠狠色综合欧洲selulu| 成人av电影在线观看| 色综合久久中文综合久久97| 在线亚洲一区观看| 91精品午夜视频| 91精品久久久久久久久99蜜臂 | 日本一区二区在线不卡| 国产三级精品视频| 亚洲欧美在线高清| 亚洲一区二区3| 日韩精品视频网| 91成人免费网站| 91精品免费在线| 久久久91精品国产一区二区三区| 久久精品视频一区| 国产精品久久夜| 亚洲激情五月婷婷| 天堂资源在线中文精品| 免费在线观看精品| 国产成人一区在线| 91行情网站电视在线观看高清版| 欧美福利视频一区| 精品久久久久久久久久久久久久久| 久久影院电视剧免费观看| 国产精品无圣光一区二区| 亚洲精品成人a在线观看| 亚洲福利视频三区| 国内精品自线一区二区三区视频| 99视频在线精品| 欧美日韩精品二区第二页| 精品国产一区二区三区av性色| 欧美激情在线观看视频免费| 亚洲最大成人网4388xx| 精品一区二区三区免费毛片爱| 成人午夜在线视频| 欧美日本在线视频| 久久精品夜色噜噜亚洲a∨| 亚洲精品日韩一| 美女诱惑一区二区| 91在线国产福利| 日韩午夜激情视频| **欧美大码日韩| 免费成人你懂的| 色噜噜狠狠一区二区三区果冻| 欧美电视剧免费全集观看 | 国产传媒欧美日韩成人| 在线精品视频一区二区三四| 欧美不卡123| 亚洲综合另类小说| 高潮精品一区videoshd| 欧美一区二区啪啪| 中文字幕在线不卡一区 | 91福利精品视频| 久久久久久一二三区| 亚洲午夜私人影院| 成人午夜私人影院| 2017欧美狠狠色| 亚洲1区2区3区视频| 波多野结衣一区二区三区 | 日韩一区二区免费在线电影| 亚洲日本欧美天堂| 国产一区高清在线| 欧美美女一区二区在线观看| 欧美高清在线一区| 久久99精品国产麻豆婷婷| 欧美在线一区二区三区| 最新国产精品久久精品| 国产一区二区按摩在线观看| 3d动漫精品啪啪1区2区免费| 伊人一区二区三区| 99视频在线精品| 亚洲国产高清在线观看视频| 精品一区二区三区免费播放| 欧美视频在线观看一区二区| 亚洲欧美国产三级| 成人动漫精品一区二区| 久久久久久久久伊人| 日本中文字幕一区二区视频 | 精品三级在线看| 日韩精品成人一区二区三区 | 亚洲精品免费电影| 成人97人人超碰人人99| 欧美激情一区二区三区四区| 国产在线精品一区二区不卡了| 日韩一区二区免费在线观看| 午夜久久电影网| 欧美少妇bbb| 亚洲一区影音先锋| 欧亚一区二区三区| 亚洲综合一区二区| 91成人免费在线视频| 亚洲最快最全在线视频| 91九色最新地址| 亚洲国产美女搞黄色| 欧洲亚洲国产日韩| 亚洲地区一二三色| 欧美男人的天堂一二区| 午夜欧美一区二区三区在线播放| 欧美性感一区二区三区| 亚洲高清视频的网址| 欧美日韩精品欧美日韩精品一综合| 亚洲午夜三级在线| 91精品国产aⅴ一区二区| 青青青爽久久午夜综合久久午夜| 日韩欧美成人激情| 国产精品一区二区久久不卡| 国产亚洲精品资源在线26u| 国产不卡一区视频| 成人免费在线观看入口| 在线观看欧美精品| 偷偷要91色婷婷| 欧美成人艳星乳罩| 国产麻豆午夜三级精品| 国产精品高清亚洲| 欧美又粗又大又爽| 日韩在线a电影| 精品va天堂亚洲国产| 粉嫩一区二区三区在线看| 亚洲精品国产无套在线观| 欧美在线制服丝袜| 美国十次综合导航| 中文字幕免费观看一区| 欧美性猛片aaaaaaa做受| 日韩国产在线一| 国产亚洲一区二区三区四区 | 日韩网站在线看片你懂的| 国产一区二区免费在线| 中文文精品字幕一区二区| 色综合天天在线| 蜜臀a∨国产成人精品| 国产欧美日韩视频在线观看| 日本韩国一区二区三区| 日本不卡不码高清免费观看| 日本一区二区动态图| 欧美撒尿777hd撒尿| 狠狠色狠狠色综合日日91app| 欧美激情中文字幕| 在线不卡中文字幕| 国产成人精品一区二区三区四区 | 国产成人超碰人人澡人人澡| 自拍偷拍亚洲激情| 欧美一区二区精品在线| 成人精品在线视频观看| 亚洲成av人片www| 久久久久久久精| 欧美日韩亚洲综合在线| 国产成人自拍网| 午夜精品久久一牛影视| 国产精品福利影院| 欧美一级黄色片| 色婷婷精品大在线视频| 国产毛片精品视频| 日韩制服丝袜av| 亚洲黄色av一区| 久久免费精品国产久精品久久久久 | 国产成人亚洲综合a∨婷婷图片| 亚洲国产精品久久久男人的天堂 | 欧美激情中文字幕一区二区| 欧美精品一二三| 92国产精品观看| 狠狠色丁香久久婷婷综合_中| 亚洲在线一区二区三区| 国产视频一区在线播放| 欧美一区二区精品| 在线观看亚洲精品| 风流少妇一区二区| 久久国产福利国产秒拍| 亚洲成人激情av| 亚洲精品乱码久久久久久黑人 | 国产精品乱码一区二三区小蝌蚪| 91精品在线麻豆| 在线观看91精品国产入口| 成人性生交大片免费看中文| 国产一区在线观看麻豆| 奇米影视一区二区三区| 亚洲一区二区三区国产| 国产精品视频一二| 久久综合九色综合97婷婷| 欧美人与禽zozo性伦| 色婷婷综合久久久中文字幕| 国产91在线观看| 韩国三级中文字幕hd久久精品| 日韩电影免费一区| 午夜精品久久久久久久久| 亚洲一区二区三区精品在线| 亚洲精品视频一区二区| 1区2区3区国产精品| 国产精品美女久久久久久久久久久| 精品国产一区二区三区四区四|