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

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

?? zz.h

?? 密碼大家Shoup寫的數(shù)論算法c語言實現(xiàn)
?? H
?? 第 1 頁 / 共 3 頁
字號:
#ifndef NTL_ZZ__H#define NTL_ZZ__H/********************************************************   LIP INTERFACE    The class ZZ implements signed, arbitrary length integers.**********************************************************/#include <NTL/lip.h>#include <NTL/tools.h>NTL_OPEN_NNSclass ZZ {public:NTL_verylong rep; // This is currently public for "emergency" situations                   // May be private in future versions.ZZ() // initial value is 0.{ rep = 0; }ZZ(INIT_SIZE_TYPE, long k)// initial value is 0, but space is pre-allocated so that numbers// x with x.size() <= k can be stored without re-allocation.// Call with ZZ(INIT_SIZE, k).// The purpose for the INIT_SIZE argument is to prevent automatic// type conversion from long to ZZ, which would be tempting, but wrong.{   rep = 0;   NTL_zsetlength(&rep, k); }ZZ(const ZZ& a)// initial value is a.{   rep = 0;   NTL_zcopy(a.rep, &rep);}ZZ(INIT_VAL_TYPE, long a) { rep = 0; NTL_zintoz(a, &rep); }ZZ(INIT_VAL_TYPE, int a) { rep = 0; NTL_zintoz(a, &rep); }ZZ(INIT_VAL_TYPE, unsigned long a) { rep = 0; NTL_zuintoz(a, &rep); }ZZ(INIT_VAL_TYPE, unsigned int a) { rep = 0; NTL_zuintoz((unsigned long) a, &rep); }inline ZZ(INIT_VAL_TYPE, const char *);inline ZZ(INIT_VAL_TYPE, float);inline ZZ(INIT_VAL_TYPE, double);ZZ& operator=(const ZZ& a) { NTL_zcopy(a.rep, &rep); return *this; }ZZ& operator=(long a) { NTL_zintoz(a, &rep); return *this; }~ZZ() { NTL_zfree(&rep); }void kill()// force the space held by this ZZ to be released.// The value then becomes 0.{ NTL_zfree(&rep); }void SetSize(long k)// pre-allocates space for k-digit numbers (base 2^NTL_ZZ_NBITS);  // does not change the value.{ NTL_zsetlength(&rep, k); }long size() const   { return NTL_zsize(rep); }// returns the number of (NTL_ZZ_NBIT-bit) digits of |a|; the size of 0 is 0.long SinglePrecision() const   { return NTL_zsptest(rep); }// tests if less than NTL_SP_BOUND in absolute valuelong WideSinglePrecision() const   { return NTL_zwsptest(rep); }// tests if less than NTL_WSP_BOUND in absolute valuestatic const ZZ& zero();ZZ(ZZ& x, INIT_TRANS_TYPE) { rep = x.rep; x.rep = 0; }// used to cheaply hand off memory management of return value,// without copying, assuming compiler implements the// "return value optimization"};const ZZ& ZZ_expo(long e);inline void clear(ZZ& x)// x = 0   { NTL_zzero(&x.rep); }inline void set(ZZ& x)// x = 1   { NTL_zone(&x.rep); }inline void swap(ZZ& x, ZZ& y)// swap the values of x and y (swaps pointers only)   { NTL_zswap(&x.rep, &y.rep); }inline double log(const ZZ& a)   { return NTL_zlog(a.rep); }/**********************************************************   Conversion routines.***********************************************************/inline void conv(ZZ& x, const ZZ& a) { x = a; }inline ZZ to_ZZ(const ZZ& a) { return a; }inline void conv(ZZ& x, long a) { NTL_zintoz(a, &x.rep); }inline ZZ to_ZZ(long a) { return ZZ(INIT_VAL, a); }inline void conv(ZZ& x, int a) { NTL_zintoz(long(a), &x.rep); }inline ZZ to_ZZ(int a) { return ZZ(INIT_VAL, a); }inline void conv(ZZ& x, unsigned long a) { NTL_zuintoz(a, &x.rep); }inline ZZ to_ZZ(unsigned long a) { return ZZ(INIT_VAL, a); }inline void conv(ZZ& x, unsigned int a) { NTL_zuintoz((unsigned long)(a), &x.rep); }inline ZZ to_ZZ(unsigned int a) { return ZZ(INIT_VAL, a); }void conv(ZZ& x, const char *s);inline ZZ::ZZ(INIT_VAL_TYPE, const char *s) {  rep = 0; conv(*this, s); }inline ZZ to_ZZ(const char *s) { return ZZ(INIT_VAL, s); }inline void conv(ZZ& x, double a) { NTL_zdoubtoz(a, &x.rep); }inline ZZ::ZZ(INIT_VAL_TYPE, double a) { rep = 0; conv(*this, a); }inline ZZ to_ZZ(double a) { return ZZ(INIT_VAL, a); }inline void conv(ZZ& x, float a) { NTL_zdoubtoz(double(a), &x.rep); }inline ZZ::ZZ(INIT_VAL_TYPE, float a) { rep = 0; conv(*this, a); }inline ZZ to_ZZ(float a) { return ZZ(INIT_VAL, a); }inline void conv(long& x, const ZZ& a) { x = NTL_ztoint(a.rep); }inline long to_long(const ZZ& a)  { return NTL_ztoint(a.rep); }inline void conv(int& x, const ZZ& a) { x = int(NTL_ztoint(a.rep)); }inline int to_int(const ZZ& a)  { return int(NTL_ztoint(a.rep)); }inline void conv(unsigned long& x, const ZZ& a) { x = NTL_ztouint(a.rep); }inline long to_ulong(const ZZ& a)  { return NTL_ztouint(a.rep); }inline void conv(unsigned int& x, const ZZ& a)    { x = (unsigned int)(NTL_ztouint(a.rep)); }inline unsigned int to_uint(const ZZ& a)     { return (unsigned int)(NTL_ztouint(a.rep)); }inline void conv(double& x, const ZZ& a) { x = NTL_zdoub(a.rep); }inline double to_double(const ZZ& a) { return NTL_zdoub(a.rep); }inline void conv(float& x, const ZZ& a) { x = float(NTL_zdoub(a.rep)); }inline float to_float(const ZZ& a) { return float(NTL_zdoub(a.rep)); }inline void ZZFromBytes(ZZ& x, const unsigned char *p, long n)   { NTL_zfrombytes(&x.rep, p, n); }inline ZZ ZZFromBytes(const unsigned char *p, long n)   { ZZ x; ZZFromBytes(x, p, n); NTL_OPT_RETURN(ZZ, x); }inline void BytesFromZZ(unsigned char *p, const ZZ& a, long n)   { NTL_zbytesfromz(p, a.rep, n); }// ****** comparisonsinline long sign(const ZZ& a)// returns the sign of a (-1, 0, or 1).   { return NTL_zsign(a.rep); }inline long compare(const ZZ& a, const ZZ& b)// returns the sign of a-b (-1, 0, or 1).{   return NTL_zcompare(a.rep, b.rep);}inline long IsZero(const ZZ& a)// zero test   { return NTL_ziszero(a.rep); }inline long IsOne(const ZZ& a)   { return NTL_zisone(a.rep); }// test for 1   /* the usual comparison operators */inline long operator==(const ZZ& a, const ZZ& b)  { return NTL_zcompare(a.rep, b.rep) == 0; }inline long operator!=(const ZZ& a, const ZZ& b)  { return NTL_zcompare(a.rep, b.rep) != 0; }inline long operator<(const ZZ& a, const ZZ& b)  { return NTL_zcompare(a.rep, b.rep) < 0; }inline long operator>(const ZZ& a, const ZZ& b)  { return NTL_zcompare(a.rep, b.rep) > 0; }inline long operator<=(const ZZ& a, const ZZ& b)  { return NTL_zcompare(a.rep, b.rep) <= 0; }inline long operator>=(const ZZ& a, const ZZ& b)  { return NTL_zcompare(a.rep, b.rep) >= 0; }/* single-precision versions of the above */inline long compare(const ZZ& a, long b) { return NTL_zscompare(a.rep, b); }inline long compare(long a, const ZZ& b) { return -NTL_zscompare(b.rep, a); }inline long operator==(const ZZ& a, long b) { return NTL_zscompare(a.rep, b) == 0; }inline long operator!=(const ZZ& a, long b) { return NTL_zscompare(a.rep, b) != 0; }inline long operator<(const ZZ& a, long b) { return NTL_zscompare(a.rep, b) < 0; }inline long operator>(const ZZ& a, long b) { return NTL_zscompare(a.rep, b) > 0; }inline long operator<=(const ZZ& a, long b) { return NTL_zscompare(a.rep, b) <= 0; }inline long operator>=(const ZZ& a, long b) { return NTL_zscompare(a.rep, b) >= 0; }inline long operator==(long a, const ZZ& b) { return b == a; }inline long operator!=(long a, const ZZ& b) { return b != a; }inline long operator<(long a, const ZZ& b) { return b > a; }inline long operator>(long a, const ZZ& b) { return b < a; }inline long operator<=(long a, const ZZ& b) { return b >= a; }inline long operator>=(long a, const ZZ& b) { return b <= a; }/**************************************************                 Addition**************************************************/inline void add(ZZ& x, const ZZ& a, const ZZ& b)// x = a + b   { NTL_zadd(a.rep, b.rep, &x.rep); }inline void sub(ZZ& x, const ZZ& a, const ZZ& b)// x = a - b   { NTL_zsub(a.rep, b.rep, &x.rep); }inline void SubPos(ZZ& x, const ZZ& a, const ZZ& b)// x = a - b;  assumes a >= b >= 0.   { NTL_zsubpos(a.rep, b.rep, &x.rep); }inline void negate(ZZ& x, const ZZ& a)// x = -a   { NTL_zcopy(a.rep, &x.rep); NTL_znegate(&x.rep); }inline void abs(ZZ& x, const ZZ& a)// x = |a|{ NTL_zcopy(a.rep, &x.rep); NTL_zabs(&x.rep); }/* single-precision versions of the above */inline void add(ZZ& x, const ZZ& a, long b)   { NTL_zsadd(a.rep, b, &x.rep); }inline void add(ZZ& x, long a, const ZZ& b) { add(x, b, a); }void sub(ZZ& x, const ZZ& a, long b);void sub(ZZ& x, long a, const ZZ& b);/* operator/function notation */inline ZZ operator+(const ZZ& a, const ZZ& b)   { ZZ x; add(x, a, b); NTL_OPT_RETURN(ZZ, x); } inline ZZ operator+(const ZZ& a, long b)   { ZZ x; add(x, a, b); NTL_OPT_RETURN(ZZ, x); } inline ZZ operator+(long  a, const ZZ& b)   { ZZ x; add(x, a, b); NTL_OPT_RETURN(ZZ, x); } inline ZZ operator-(const ZZ& a, const ZZ& b)   { ZZ x; sub(x, a, b); NTL_OPT_RETURN(ZZ, x); } inline ZZ operator-(const ZZ& a, long b)   { ZZ x; sub(x, a, b); NTL_OPT_RETURN(ZZ, x); } inline ZZ operator-(long  a, const ZZ& b)   { ZZ x; sub(x, a, b); NTL_OPT_RETURN(ZZ, x); } inline ZZ operator-(const ZZ& a)  { ZZ x; negate(x, a); NTL_OPT_RETURN(ZZ, x); }inline ZZ abs(const ZZ& a)  { ZZ x; abs(x, a); NTL_OPT_RETURN(ZZ, x); }/* op= notation */inline ZZ& operator+=(ZZ& x, const ZZ& a)  { add(x, x, a); return x; }inline ZZ& operator+=(ZZ& x, long a)  { add(x, x, a); return x; }inline ZZ& operator-=(ZZ& x, const ZZ& a)  { sub(x, x, a); return x; }inline ZZ& operator-=(ZZ& x, long a)  { sub(x, x, a); return x; }/* inc/dec */inline ZZ& operator++(ZZ& x) { add(x, x, 1); return x; }inline void operator++(ZZ& x, int) { add(x, x, 1); }inline ZZ& operator--(ZZ& x) { add(x, x, -1); return x; }inline void operator--(ZZ& x, int) { add(x, x, -1); }/*******************************************************                 Multiplication.********************************************************/inline void mul(ZZ& x, const ZZ& a, const ZZ& b)// x = a * b   { NTL_zmul(a.rep, b.rep, &x.rep); }inline void sqr(ZZ& x, const ZZ& a)// x = a*a   { NTL_zsq(a.rep, &x.rep); }inline ZZ sqr(const ZZ& a)   { ZZ x; sqr(x, a); NTL_OPT_RETURN(ZZ, x); }/* single-precision versions */inline void mul(ZZ& x, const ZZ& a, long b)   { NTL_zsmul(a.rep, b, &x.rep); }inline void mul(ZZ& x, long a, const ZZ& b)    { mul(x, b, a); }/* operator notation */inline ZZ operator*(const ZZ& a, const ZZ& b)  { ZZ x; mul(x, a, b); NTL_OPT_RETURN(ZZ, x); }inline ZZ operator*(const ZZ& a, long b)  { ZZ x; mul(x, a, b); NTL_OPT_RETURN(ZZ, x); }inline ZZ operator*(long a, const ZZ& b)  { ZZ x; mul(x, a, b); NTL_OPT_RETURN(ZZ, x); }/* op= notation */inline ZZ& operator*=(ZZ& x, const ZZ& a)  { mul(x, x, a); return x; }inline ZZ& operator*=(ZZ& x, long a)  { mul(x, x, a); return x; }// Special routines for implementing CRT in ZZ_pX arithmeticinline void ZZ_p_crt_struct_init(void **crt_struct, long n, const ZZ& p,                                  const long *primes)    { NTL_crt_struct_init(crt_struct, n, p.rep, primes); }inline void ZZ_p_crt_struct_insert(void *crt_struct, long i, const ZZ& m)   { NTL_crt_struct_insert(crt_struct, i, m.rep); }inline void ZZ_p_crt_struct_free(void *crt_struct)   { NTL_crt_struct_free(crt_struct); }inline void ZZ_p_crt_struct_eval(void *crt_struct, ZZ& t, const long *a)   { NTL_crt_struct_eval(crt_struct, &t.rep, a); }inline long ZZ_p_crt_struct_special(void *crt_struct)   { return NTL_crt_struct_special(crt_struct); }// Special routines for fast remainderinginline void ZZ_p_rem_struct_init(void **rem_struct, long n,                                  const ZZ& p, long *primes)   { NTL_rem_struct_init(rem_struct, n, p.rep, primes); }inline void ZZ_p_rem_struct_free(void *rem_struct)   { NTL_rem_struct_free(rem_struct); }inline void ZZ_p_rem_struct_eval(void *rem_struct, long *x, const ZZ& a)   { NTL_rem_struct_eval(rem_struct, x, a.rep); }/*******************************************************                    Division*******************************************************/inline void DivRem(ZZ& q, ZZ& r, const ZZ& a, const ZZ& b)// q = [a/b], r = a - b*q// |r| < |b|, and if r != 0, sign(r) = sign(b)   { NTL_zdiv(a.rep, b.rep, &q.rep, &r.rep); }inline void div(ZZ& q, const ZZ& a, const ZZ& b)// q = a/b   { NTL_zdiv(a.rep, b.rep, &q.rep, 0); }inline void rem(ZZ& r, const ZZ& a, const ZZ& b)// r = a%b   { NTL_zmod(a.rep, b.rep, &r.rep); }inline void QuickRem(ZZ& r, const ZZ& b)// r = r%b// assumes b > 0 and r >=0// division is performed in place and may cause r to be re-allocated.   { NTL_zquickmod(&r.rep, b.rep); }long divide(ZZ& q, const ZZ& a, const ZZ& b);// if b | a, sets q = a/b and returns 1; otherwise returns 0.long divide(const ZZ& a, const ZZ& b);// if b | a, returns 1; otherwise returns 0./* non-standard single-precision versions */inline long DivRem(ZZ& q, const ZZ& a, long b)   { return NTL_zsdiv(a.rep, b, &q.rep); } inline long rem(const ZZ& a, long b)   { return NTL_zsmod(a.rep, b); }/* single precision versions */inline void div(ZZ& q, const ZZ& a, long b)   { (void) NTL_zsdiv(a.rep, b, &q.rep); }long divide(ZZ& q, const ZZ& a, long b);// if b | a, sets q = a/b and returns 1; otherwise returns 0.long divide(const ZZ& a, long b);// if b | a, returns 1; otherwise returns 0.inline ZZ operator/(const ZZ& a, const ZZ& b)   { ZZ x; div(x, a, b); NTL_OPT_RETURN(ZZ, x); }inline ZZ operator/(const ZZ& a, long b)   { ZZ x; div(x, a, b); NTL_OPT_RETURN(ZZ, x); }inline ZZ operator%(const ZZ& a, const ZZ& b)   { ZZ x; rem(x, a, b); NTL_OPT_RETURN(ZZ, x); }

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本成人在线看| 在线亚洲一区二区| 国产精品国产三级国产三级人妇 | 美女视频一区在线观看| 日韩精品中午字幕| 国产在线精品国自产拍免费| 中国色在线观看另类| 色综合婷婷久久| 午夜欧美电影在线观看| 日韩欧美亚洲国产另类| 国产ts人妖一区二区| 亚洲日本在线天堂| 91麻豆精品国产91| 国产精品影音先锋| 亚洲欧洲韩国日本视频| 欧美唯美清纯偷拍| 韩国女主播一区| 中文字幕中文字幕一区| 欧美日韩一区不卡| 九九精品视频在线看| 国产精品麻豆久久久| 欧美日韩国产欧美日美国产精品| 精品中文字幕一区二区| 中文字幕一区二区在线播放| 欧美午夜不卡在线观看免费| 久久国产夜色精品鲁鲁99| 中文字幕永久在线不卡| 欧美精品久久一区二区三区 | 黑人巨大精品欧美一区| 亚洲欧美综合另类在线卡通| 555www色欧美视频| 成人性生交大片| 性久久久久久久久| 国产精品天天看| 欧美精品粉嫩高潮一区二区| 成人免费视频caoporn| 日韩主播视频在线| 中文字幕一区二区三区在线播放 | 欧美激情自拍偷拍| 欧美日韩三级视频| 国产99久久久精品| 日韩和的一区二区| 亚洲人一二三区| 精品久久人人做人人爽| 日本电影亚洲天堂一区| 紧缚捆绑精品一区二区| 一区二区三区影院| 国产婷婷色一区二区三区| 欧美日韩精品专区| 99久久精品国产导航| 精品一区二区影视| 亚洲国产精品精华液网站| 国产日韩一级二级三级| 欧美久久一二三四区| 99精品视频在线播放观看| 久久精品国产99国产精品| 伊人色综合久久天天人手人婷| 国产亚洲精久久久久久| 6080午夜不卡| 在线观看亚洲精品| 成人一级黄色片| 免费成人在线视频观看| 一区二区三区精品在线| 日本一区二区免费在线 | 国产精品久久久久婷婷二区次| 91精品国产一区二区三区| 色哟哟精品一区| 不卡一区二区中文字幕| 国产一区二区三区久久久| 日韩成人免费在线| 夜夜嗨av一区二区三区四季av| 中文字幕精品—区二区四季| 精品三级在线看| 欧美一卡在线观看| 欧美亚洲一区二区三区四区| 成人97人人超碰人人99| 国产精品白丝jk黑袜喷水| 精品一区二区三区在线播放视频| 日日摸夜夜添夜夜添国产精品 | 亚洲天堂成人网| 欧美激情一区二区在线| www国产精品av| 日韩欧美在线一区二区三区| 欧美日韩精品久久久| 在线观看日韩一区| 色88888久久久久久影院按摩| 成人免费高清在线观看| 国产精品18久久久久久久久| 韩国三级中文字幕hd久久精品| 日本成人在线不卡视频| 日韩精品电影在线| 午夜欧美大尺度福利影院在线看| 亚洲午夜在线观看视频在线| 亚洲精品国产品国语在线app| 专区另类欧美日韩| 亚洲欧美中日韩| 国产精品夫妻自拍| 国产精品免费av| 亚洲国产精华液网站w | 国产精品理论片| 欧美国产丝袜视频| 国产精品美女久久久久久久久| 国产视频在线观看一区二区三区 | 国产一区视频网站| 国产精品一区专区| 国产不卡一区视频| 国产suv一区二区三区88区| 懂色av一区二区三区蜜臀| 国产v日产∨综合v精品视频| 国产91丝袜在线播放九色| 粉嫩在线一区二区三区视频| 高潮精品一区videoshd| 成人h动漫精品一区二| 99久久精品99国产精品| 色婷婷av一区二区三区gif| 欧美三级资源在线| 欧美一区二区视频网站| 精品国产一区二区精华| 久久久久国产免费免费 | 亚洲色图在线播放| 亚洲精品国产第一综合99久久| 亚洲无人区一区| 日韩精品电影在线| 黄网站免费久久| 成人激情动漫在线观看| 91色在线porny| 欧美体内she精高潮| 91麻豆精品国产自产在线| 日韩免费观看高清完整版| 久久综合久久鬼色中文字| 国产色综合久久| 亚洲丝袜制服诱惑| 午夜精品一区在线观看| 久久国产尿小便嘘嘘| 国产精品资源网站| 99久久99久久久精品齐齐| 欧美在线999| 日韩午夜精品视频| 国产精品麻豆网站| 亚洲va韩国va欧美va| 久久国产夜色精品鲁鲁99| 国产69精品久久99不卡| 91美女福利视频| 欧美一区二区福利在线| 日本一二三不卡| 亚洲成人黄色影院| 国产在线不卡一卡二卡三卡四卡| www.亚洲人| 欧美视频一二三区| 久久影院视频免费| 亚洲日本在线视频观看| 免费欧美日韩国产三级电影| 国产91精品在线观看| 欧美日韩一区二区三区不卡| 欧美mv和日韩mv的网站| 亚洲婷婷综合色高清在线| 日韩中文欧美在线| 岛国精品在线观看| 欧美日韩精品一区视频| 国产性色一区二区| 亚洲国产精品一区二区久久恐怖片| 久久97超碰色| 在线一区二区观看| 久久日一线二线三线suv| 亚洲女女做受ⅹxx高潮| 美女视频黄 久久| 91美女精品福利| 欧美精品一区二区三区很污很色的| 亚洲欧美激情视频在线观看一区二区三区 | 国产网红主播福利一区二区| 亚洲午夜电影在线观看| 国产高清成人在线| 欧美日韩精品欧美日韩精品一综合| 久久精品人人做人人爽人人| 午夜精品123| 成人av免费在线播放| 欧美成人精精品一区二区频| 亚洲猫色日本管| 国产伦精品一区二区三区在线观看| 欧美综合天天夜夜久久| 久久久久久久久久久久久久久99| 亚洲午夜日本在线观看| 国产成人aaaa| 日韩一区二区电影网| 亚洲欧美日韩国产另类专区| 国产精品一线二线三线| 欧美一区二区三区四区高清 | 亚洲一区二区精品3399| 国产成人av电影在线观看| 日韩亚洲欧美综合| 一区二区久久久久久| 国产在线精品一区二区夜色 | 亚洲精品久久7777| 国产a精品视频| 欧美成人一级视频| 午夜精品福利在线| 色呦呦国产精品| 亚洲国产精华液网站w| 精品亚洲成a人| 69精品人人人人|