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

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

?? zz.h

?? 密碼大家Shoup寫(xiě)的數(shù)論算法c語(yǔ)言實(shí)現(xiàn)
?? H
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
inline ZZ SubMod(const ZZ& a, long b, const ZZ& n)   { ZZ x; SubMod(x, a, b, n); NTL_OPT_RETURN(ZZ, x); }void SubMod(ZZ& x, long a, const ZZ& b, const ZZ& n);inline ZZ SubMod(long a, const ZZ& b, const ZZ& n)   { ZZ x; SubMod(x, a, b, n); NTL_OPT_RETURN(ZZ, x); }inline void MulMod(ZZ& x, const ZZ& a, const ZZ& b, const ZZ& n)// x = (a*b)%n   { NTL_zmulmod(a.rep, b.rep, n.rep, &x.rep); }inline ZZ MulMod(const ZZ& a, const ZZ& b, const ZZ& n)   { ZZ x; MulMod(x, a, b, n); NTL_OPT_RETURN(ZZ, x); }inline void MulMod(ZZ& x, const ZZ& a, long b, const ZZ& n)// x = (a*b)%n   { NTL_zsmulmod(a.rep, b, n.rep, &x.rep); }inline ZZ MulMod(const ZZ& a, long b, const ZZ& n)   { ZZ x; MulMod(x, a, b, n); NTL_OPT_RETURN(ZZ, x); }inline void MulMod(ZZ& x, long a, const ZZ& b, const ZZ& n)   { MulMod(x, b, a, n); }inline ZZ MulMod(long a, const ZZ& b, const ZZ& n)   { ZZ x; MulMod(x, a, b, n); NTL_OPT_RETURN(ZZ, x); }inline void SqrMod(ZZ& x, const ZZ& a, const ZZ& n)// x = a^2 % n   { NTL_zsqmod(a.rep, n.rep, &x.rep); }inline ZZ SqrMod(const ZZ& a, const ZZ& n)   {  ZZ x; SqrMod(x, a, n); NTL_OPT_RETURN(ZZ, x); }inline void InvMod(ZZ& x, const ZZ& a, const ZZ& n)// x = a^{-1} mod n, 0 <= x < n// error is raised occurs if inverse not defined   { NTL_zinvmod(a.rep, n.rep, &x.rep); }inline ZZ InvMod(const ZZ& a, const ZZ& n)   {  ZZ x; InvMod(x, a, n); NTL_OPT_RETURN(ZZ, x); }inline long InvModStatus(ZZ& x, const ZZ& a, const ZZ& n)// if gcd(a,b) = 1, then ReturnValue = 0, x = a^{-1} mod n// otherwise, ReturnValue = 1, x = gcd(a, n)  { return NTL_zinv(a.rep, n.rep, &x.rep); }inline void PowerMod(ZZ& x, const ZZ& a, const ZZ& e, const ZZ& n)   { NTL_zpowermod(a.rep, e.rep, n.rep, &x.rep); }inline ZZ PowerMod(const ZZ& a, const ZZ& e, const ZZ& n)   { ZZ x; PowerMod(x, a, e, n); NTL_OPT_RETURN(ZZ, x); }inline void PowerMod(ZZ& x, const ZZ& a, long e, const ZZ& n)   { PowerMod(x, a, ZZ_expo(e), n); }inline ZZ PowerMod(const ZZ& a, long e, const ZZ& n)   { ZZ x; PowerMod(x, a, e, n); NTL_OPT_RETURN(ZZ, x); }/*************************************************************   Jacobi symbol and modular squre roots**************************************************************/long Jacobi(const ZZ& a, const ZZ& n);//  compute Jacobi symbol of a and n;//  assumes 0 <= a < n, n oddvoid SqrRootMod(ZZ& x, const ZZ& a, const ZZ& n);//  computes square root of a mod n;//  assumes n is an odd prime, and that a is a square mod ninline ZZ SqrRootMod(const ZZ& a, const ZZ& n)   { ZZ x; SqrRootMod(x, a, n); NTL_OPT_RETURN(ZZ, x); }/*************************************************************                    Small Prime Generation*************************************************************/// primes are generated in sequence, starting at 2, // and up until (2*NTL_PRIME_BND+1)^2, which is less than NTL_SP_BOUND.#if (NTL_SP_NBITS > 30)#define NTL_PRIME_BND ((1L << 14) - 1)#else#define NTL_PRIME_BND ((1L << (NTL_SP_NBITS/2-1)) - 1)#endifclass PrimeSeq {char *movesieve;char *movesieve_mem;long pindex;long pshift;long exhausted;public:PrimeSeq();~PrimeSeq();long next();// returns next prime in the sequence.// returns 0 if list of small primes is exhausted.void reset(long b);// resets generator so that the next prime in the sequence// is the smallest prime >= b.private:PrimeSeq(const PrimeSeq&);        // disabledvoid operator=(const PrimeSeq&);  // disabled// auxilliary routinesvoid start();void shift(long);};/**************************************************************                      Input/Output***************************************************************/NTL_SNS istream& operator>>(NTL_SNS istream& s, ZZ& x);  NTL_SNS ostream& operator<<(NTL_SNS ostream& s, const ZZ& a); /****************************************************************    Single-precision modular arithmetic*****************************************************************//*these routines implement single-precision modular arithmetic.If n is the modulus, all inputs should be in the range 0..n-1.The number n itself should be in the range 1..2^{NTL_SP_NBITS}-1.*/inline long AddMod(long a, long b, long n)// return (a+b)%n{   long res = a + b;#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   return res;#else   if (res >= n)      return res - n;   else      return res;#endif}inline long SubMod(long a, long b, long n)// return (a-b)%n{   long res = a - b;#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   return res;#else   if (res < 0)      return res + n;   else      return res;#endif}inline long NegateMod(long a, long n){   return SubMod(0, a, n);}#if (defined(NTL_SINGLE_MUL))#if (!defined(NTL_FAST_INT_MUL))inline long MulMod(long a, long b, long n)// return (a*b)%n{   double ab;   long q, res;   ab = ((double) a) * ((double) b);   q  = (long) (ab/((double) n));  // q could be off by (+/-) 1   res = (long) (ab - ((double) q)*((double) n));#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}/*The following MulMod takes a fourth argument, ninv,which is assumed to equal 1/((double) n).It is usually faster than the above.*/inline long MulMod(long a, long b, long n, double ninv){   double ab;   long q, res;   ab = ((double) a) * ((double) b);   q  = (long) (ab*ninv);   // q could be off by (+/-) 1   res = (long) (ab - ((double) q)*((double) n));#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}/*Yet another MulMod.This time, the 4th argument should be ((double) b)/((double) n).*/inline long MulMod2(long a, long b, long n, double bninv){   double ab;   long q, res;   ab = ((double) a)*((double) b);   q = (long) (((double) a)*bninv);   res = (long) (ab - ((double) q)*((double) n));#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}inline long MulDivRem(long& qq, long a, long b, long n, double bninv){   double ab;   long q, res;   ab = ((double) a)*((double) b);   q = (long) (((double) a)*bninv);   res = (long) (ab - ((double) q)*((double) n));   if (res >= n) {      res -= n;      q++;   } else if (res < 0) {      res += n;      q--;   }   qq = q;   return res;}#elseinline long MulMod(long a, long b, long n)// return (a*b)%n{   double ab, xx;   long iab, q, res;   ab = ((double) a) * ((double) b);   q  = (long) (ab/((double) n));  // q could be off by (+/-) 1   xx = ab + 4503599627370496.0;   NTL_FetchLo(iab, xx);   res = iab - q*n;#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}/*The following MulMod takes a fourth argument, ninv,which is assumed to equal 1/((double) n).It is usually faster than the above.*/inline long MulMod(long a, long b, long n, double ninv){   double ab, xx;   long iab, q, res;   ab = ((double) a) * ((double) b);   q  = (long) (ab*ninv);   // q could be off by (+/-) 1   xx = ab + 4503599627370496.0;   NTL_FetchLo(iab, xx);   res = iab - q*n;#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}/*Yet another MulMod.This time, the 4th argument should be ((double) b)/((double) n).*/inline long MulMod2(long a, long b, long n, double bninv){   long q, res;   q = (long) (((double) a)*bninv);   res = a*b - q*n;#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}inline long MulDivRem(long& qq, long a, long b, long n, double bninv){   long q, res;   q = (long) (((double) a)*bninv);   res = a*b - q*n;   if (res >= n) {      res -= n;      q++;   } else if (res < 0) {      res += n;      q--;   }   qq = q;   return res;}#endif#elseinline long MulMod(long a, long b, long n){   long q, res;   q  = (long) ((((double) a) * ((double) b)) / ((double) n));    res = a*b - q*n;#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}inline long MulMod(long a, long b, long n, double ninv){   long q, res;   q  = (long) ((((double) a) * ((double) b)) * ninv);    res = a*b - q*n;#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}inline long MulMod2(long a, long b, long n, double bninv){   long q, res;   q  = (long) (((double) a) * bninv);   res = a*b - q*n;#if (NTL_ARITH_RIGHT_SHIFT && defined(NTL_AVOID_BRANCHING))   res += (res >> (NTL_BITS_PER_LONG-1)) & n;   res -= n;   res += (res >> (NTL_BITS_PER_LONG-1)) & n;#else   if (res >= n)      res -= n;   else if (res < 0)      res += n;#endif   return res;}inline long MulDivRem(long& qq, long a, long b, long n, double bninv){   long q, res;   q  = (long) (((double) a) * bninv);   res = a*b - q*n;   if (res >= n) {      res -= n;      q++;   } else if (res < 0) {      res += n;      q--;   }   qq = q;   return res;}#endiflong InvMod(long a, long n);// computes a^{-1} mod n.  Error is raised if undefined.long PowerMod(long a, long e, long n);// computes a^e mod n, e >= 0NTL_CLOSE_NNS#endif

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
97se亚洲国产综合在线| av亚洲精华国产精华| 亚洲一区二区三区四区在线免费观看| 欧美情侣在线播放| 日本韩国欧美一区| 成人免费看片app下载| 秋霞午夜av一区二区三区| 亚洲美女免费视频| 国产精品乱人伦| 中文字幕免费不卡在线| 久久这里只精品最新地址| 欧美精品第一页| 欧美巨大另类极品videosbest| 91福利资源站| 在线观看一区二区视频| 91亚洲大成网污www| 97久久超碰国产精品| 色网站国产精品| 欧美在线免费观看视频| 91搞黄在线观看| 9191精品国产综合久久久久久 | 国产精品夜夜嗨| 国产精品996| aaa欧美大片| 欧美欧美午夜aⅴ在线观看| 制服丝袜亚洲播放| 91精品国产色综合久久不卡电影 | 久久66热偷产精品| 国产高清无密码一区二区三区| 成人av资源在线观看| 97久久超碰国产精品| 884aa四虎影成人精品一区| 欧美v亚洲v综合ⅴ国产v| 欧美国产精品一区| 亚州成人在线电影| 国产乱子伦视频一区二区三区 | 国产一区二区女| 色综合中文字幕| 久久久久一区二区三区四区| 中文一区一区三区高中清不卡| 亚洲一区二区影院| 国精产品一区一区三区mba视频 | 另类小说综合欧美亚洲| 91成人在线精品| 日韩精品专区在线影院重磅| 亚洲私人黄色宅男| 精品亚洲成a人在线观看| 在线日韩一区二区| 久久久三级国产网站| 午夜成人免费电影| 色婷婷狠狠综合| 国产精品久久久久影院亚瑟 | 久久精品噜噜噜成人av农村| 91福利社在线观看| 国产精品你懂的在线欣赏| 国产一区二区三区久久久| 欧美精品免费视频| 亚洲综合男人的天堂| 99精品视频一区二区| 国产片一区二区三区| 人人精品人人爱| 日韩欧美在线不卡| 日韩成人精品在线| 欧美麻豆精品久久久久久| 亚洲精品大片www| 91免费精品国自产拍在线不卡| 国产欧美一区二区三区在线看蜜臀 | 欧美日韩在线播放三区四区| 亚洲精品亚洲人成人网| 色成年激情久久综合| 亚洲黄色小视频| 欧美日韩国产另类不卡| 天堂va蜜桃一区二区三区| 欧美久久久久久久久久| 日韩精品高清不卡| 欧美精品一区在线观看| 国产自产v一区二区三区c| 久久久久久久久99精品| 成人免费视频app| 亚洲香蕉伊在人在线观| 91精品国产综合久久久久久| 久久超碰97人人做人人爱| 中文字幕在线不卡视频| 色偷偷久久一区二区三区| 男男gaygay亚洲| 日韩成人免费看| 亚洲欧洲精品一区二区三区| 不卡电影免费在线播放一区| 在线观看网站黄不卡| 日韩一级片在线观看| 韩日欧美一区二区三区| 日本美女视频一区二区| 婷婷中文字幕一区三区| 亚洲成人av福利| 亚洲国产综合在线| 亚洲一区中文日韩| 中文字幕av一区二区三区免费看| av午夜一区麻豆| 国产激情一区二区三区| 中文字幕一区二区在线播放| 欧美日韩你懂得| 成人动漫av在线| 久久99精品国产.久久久久 | 久久精品视频网| 欧美精品国产精品| 91在线观看下载| 国产一区二区导航在线播放| 亚洲h精品动漫在线观看| 国产视频一区二区三区在线观看| 成人激情电影免费在线观看| 美女视频黄 久久| 亚洲超碰精品一区二区| 中文字幕一区三区| 国产精品国产三级国产三级人妇| 欧美成人官网二区| 2020国产精品| 91精品国产高清一区二区三区蜜臀| 色婷婷一区二区三区四区| 欧美在线观看一区| 欧美欧美午夜aⅴ在线观看| 日韩欧美一级二级三级| 日韩精品一区二区三区老鸭窝| 日韩午夜在线观看| 精品成人一区二区三区| 国产日产亚洲精品系列| 亚洲同性同志一二三专区| 亚洲同性同志一二三专区| 亚洲精品视频观看| 一区二区欧美在线观看| 午夜电影网一区| 精品夜夜嗨av一区二区三区| 国产成人综合在线播放| 成人少妇影院yyyy| 欧美日韩在线播| 国产欧美综合在线观看第十页| 国产精品成人午夜| 日本va欧美va精品| av不卡在线观看| 日韩一区二区在线观看视频播放| 国产欧美日韩综合精品一区二区| 一区二区三区四区在线播放| 成人aaaa免费全部观看| 日本久久一区二区三区| 日韩一区二区免费高清| 国产精品人妖ts系列视频| 毛片av中文字幕一区二区| 欧美亚洲国产一区在线观看网站| 精品日韩99亚洲| 亚洲在线中文字幕| 亚洲一二三区在线观看| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 久久精品男人天堂av| 日本午夜一区二区| 51久久夜色精品国产麻豆| 亚洲午夜在线电影| 欧日韩精品视频| 亚洲免费观看高清完整版在线| www.日韩大片| 亚洲精选视频在线| 成人av电影在线网| 精品国产乱码91久久久久久网站| 亚洲国产日韩精品| 色八戒一区二区三区| 悠悠色在线精品| 91丨九色丨蝌蚪富婆spa| 久久久久国产精品麻豆ai换脸| 久久电影国产免费久久电影| 欧美精品乱码久久久久久按摩| 亚洲视频在线观看三级| 国产精品综合在线视频| 欧美一区二区三区免费| 亚洲成人av免费| 777色狠狠一区二区三区| 夜夜精品视频一区二区 | 国产一区二区三区四区五区美女| 欧美图区在线视频| 亚洲成av人片在线| 日韩欧美一区中文| 国产东北露脸精品视频| 中文字幕第一区综合| 91免费观看在线| 一区二区三区四区在线| 91精品一区二区三区久久久久久 | 亚洲国产高清不卡| 在线精品亚洲一区二区不卡| 日韩电影一区二区三区四区| 日韩欧美亚洲一区二区| 成人免费va视频| 性做久久久久久久久| 国产午夜一区二区三区| kk眼镜猥琐国模调教系列一区二区 | 日韩欧美国产成人一区二区| 国产91富婆露脸刺激对白| 亚洲一区二区三区四区在线| 欧美三级电影网| 国产一区二区三区国产| 午夜成人免费电影| 欧美国产成人在线| 成人av电影在线网| 美女视频一区在线观看|