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

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

?? quad_float.h

?? 可以根據(jù)NTL庫進RSA加密、解密算法的實現(xiàn)
?? H
字號:

#ifndef NTL_quad_float__H
#define NTL_quad_float__H


/*
Copyright (C) 1997, 1998, 1999, 2000 Victor Shoup

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*****************************************************

The quad_float package is derived from the doubledouble package of
Keith Briggs.  However, the version employed in NTL has been extensively 
modified.  Below, I attach the copyright notice from the original
doubledouble package, which is currently available at 

   http://www.labs.bt.com/people/briggsk2

*****************************************************

Copyright (C) 1997 Keith Martin Briggs

Except where otherwise indicated,
this program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
*/

#include <NTL/ZZ.h>

NTL_OPEN_NNS


class quad_float {
public:
  double hi, lo;

  // Constructors
  quad_float() : hi(0), lo(0)  {}

  inline quad_float& operator=(double x);

  static long oprec;
  static void SetOutputPrecision(long p);
  static long OutputPrecision() { return oprec; }

  quad_float(double x, double y) : hi(x), lo(y) { } // internal use only

  ~quad_float() {}

};  // end class quad_float

#if (NTL_BITS_PER_LONG < NTL_DOUBLE_PRECISION)

inline quad_float to_quad_float(long n) { return quad_float(n, 0); }
inline quad_float to_quad_float(unsigned long n) { return quad_float(n, 0); }

#else

quad_float to_quad_float(long n);
quad_float to_quad_float(unsigned long n);

#endif

#if (NTL_BITS_PER_INT < NTL_DOUBLE_PRECISION)

inline quad_float to_quad_float(int n) { return quad_float(n, 0); }
inline quad_float to_quad_float(unsigned int n) { return quad_float(n, 0); }
 
#else

inline quad_float to_quad_float(int n) 
   { return to_quad_float(long(n)); }
inline quad_float to_quad_float(unsigned int n) 
   { return to_quad_float((unsigned long) n); }

#endif



inline quad_float to_quad_float(double x) { return quad_float(x, 0); }
// On platforms with extended doubles, this may result in an
// improper quad_float object, but it should be converted to a proper
// one when passed by reference to any of the arithmetic routines,
// at which time x will be forced to memory.

inline quad_float to_quad_float(float x) 
   { return to_quad_float(double(x)); }

inline quad_float& quad_float::operator=(double x) 
   { *this = to_quad_float(x); return *this; }

quad_float operator+(const quad_float&, const quad_float& );

inline quad_float operator+(const quad_float& x, double y )
   { return x + to_quad_float(y); }

inline quad_float operator+(double x, const quad_float& y)
   { return to_quad_float(x) + y; }

quad_float operator-(const quad_float&, const quad_float& );

inline quad_float operator-(const quad_float& x, double y )
   { return x - to_quad_float(y); }

inline quad_float operator-(double x, const quad_float& y)
   { return to_quad_float(x) - y; }

quad_float operator*(const quad_float&, const quad_float& );

inline quad_float operator*(const quad_float& x, double y )
   { return x * to_quad_float(y); }

inline quad_float operator*(double x, const quad_float& y)
   { return to_quad_float(x) * y; }

quad_float operator/(const quad_float&, const quad_float& );

inline quad_float operator/(const quad_float& x, double y )
   { return x / to_quad_float(y); }

inline quad_float operator/(double x, const quad_float& y)
   { return to_quad_float(x) / y; }

quad_float operator-(const quad_float& x);

quad_float& operator+= (quad_float& x, const quad_float& y);
inline quad_float& operator += (quad_float& x, double y)
   { x += to_quad_float(y); return x; }

quad_float& operator-= (quad_float& x, const quad_float& y);
inline quad_float& operator-= (quad_float& x, double y)
   { x -= to_quad_float(y); return x; }

quad_float& operator*= (quad_float& x, const quad_float& y);
inline quad_float& operator*= (quad_float& x, double y)
   { x *= to_quad_float(y); return x; }

quad_float& operator/= (quad_float& x, const quad_float& y);
inline quad_float& operator/= (quad_float& x, double y)
   { x /= to_quad_float(y); return x; }

inline quad_float& operator++(quad_float& a) { a += 1.0; return a; }
inline void operator++(quad_float& a, int) { a += 1.0; }

inline quad_float& operator--(quad_float& a) { a -= 1.0; return a; }
inline void operator--(quad_float& a, int) { a -= 1.0; }


long operator> (const quad_float& x, const quad_float& y);
long operator>=(const quad_float& x, const quad_float& y);
long operator< (const quad_float& x, const quad_float& y);
long operator<=(const quad_float& x, const quad_float& y);
long operator==(const quad_float& x, const quad_float& y);
long operator!=(const quad_float& x, const quad_float& y);

inline long operator> (const quad_float& x, double y) 
   { return x > to_quad_float(y); }
inline long operator> (double x, const quad_float& y)
   { return to_quad_float(x) > y; }

inline long operator>=(const quad_float& x, double y) 
   { return x >= to_quad_float(y); }
inline long operator>=(double x, const quad_float& y)
   { return to_quad_float(x) >= y; }

inline long operator< (const quad_float& x, double y) 
   { return x < to_quad_float(y); }
inline long operator< (double x, const quad_float& y)
   { return to_quad_float(x) < y; }

inline long operator<=(const quad_float& x, double y) 
   { return x <= to_quad_float(y); }
inline long operator<=(double x, const quad_float& y)
   { return to_quad_float(x) <= y; }

inline long operator!=(const quad_float& x, double y) 
   { return x != to_quad_float(y); }
inline long operator!=(double x, const quad_float& y)
   { return to_quad_float(x) != y; }

inline long operator==(const quad_float& x, double y) 
   { return x == to_quad_float(y); }
inline long operator==(double x, const quad_float& y)
   { return to_quad_float(x) == y; }


inline long sign(const quad_float& x){
  if (x.hi>0.0) return 1; else if (x.hi<0.0) return -1; else return 0;
}

long compare(const quad_float&, const quad_float&);

inline long compare(const quad_float& x, double y)
   { return compare(x, to_quad_float(y)); }

inline long compare(double x, const quad_float& y)
   { return compare(to_quad_float(x), y); }



NTL_SNS istream& operator >> (NTL_SNS istream&, quad_float&);
NTL_SNS ostream& operator << (NTL_SNS ostream&, const quad_float&);


quad_float sqrt(const quad_float&);
quad_float floor(const quad_float&);
quad_float ceil(const quad_float&);
quad_float trunc(const quad_float&);
quad_float fabs(const quad_float&);

void power(quad_float&, const quad_float&, long);
inline quad_float power(const quad_float& x, long e)
   { quad_float z; power(z, x, e); return z; }

void power2(quad_float&, long);
inline quad_float power2_quad_float(long e)
   { quad_float z; power2(z, e); return z; }


long to_long(const quad_float&);
inline int to_int(const quad_float& x) { return to_int(to_long(x)); }

inline double to_double(const quad_float& x) { return x.hi; }

inline float to_float(const quad_float& x) { return float(x.hi); }


inline void conv(quad_float& x, int a) { x = to_quad_float(a); }
inline void conv(quad_float& x, long a) { x = to_quad_float(a); }

inline void conv(quad_float& x, unsigned int a) { x = to_quad_float(a); }
inline void conv(quad_float& x, unsigned long a) { x = to_quad_float(a); }

inline void conv(quad_float& x, float a) { x = to_quad_float(a); }
inline void conv(quad_float& x, double a) { x = to_quad_float(a); }


inline void conv(long& x, const quad_float& a) { x = to_long(a); }
inline void conv(int& x, const quad_float& a) { x = to_int(a); }
inline void conv(double& x, const quad_float& a) { x = to_double(a); }
inline void conv(float& x, const quad_float& a) { x = to_float(a); }

void conv(quad_float&, const ZZ&);
inline quad_float to_quad_float(const ZZ& x)
   { quad_float z; conv(z, x); return z; }

void conv(ZZ&, const quad_float&);
inline ZZ to_ZZ(const quad_float& a)
   { ZZ x; conv(x, a); NTL_OPT_RETURN(ZZ, x); }

inline void conv(quad_float& x, const quad_float& a)
   { x = a; }
inline quad_float to_quad_float(const quad_float& a)
   { return a; }

quad_float to_quad_float(const char *s);
inline void conv(quad_float& x, const char *s)
   { x = to_quad_float(s); }

long IsFinite(quad_float *x);

long PrecisionOK();

quad_float ldexp(const quad_float& x, long exp);

quad_float exp(const quad_float& x);
quad_float log(const quad_float& x);

void random(quad_float& x);
quad_float random_quad_float();


NTL_CLOSE_NNS

#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃在线一区二区三区| 欧美中文字幕久久| 99国产精品视频免费观看| 91麻豆精品国产91久久久使用方法 | 亚洲一区二三区| 激情综合网av| 欧美久久免费观看| 亚洲精品国产精华液| 国产不卡高清在线观看视频| 欧美一级久久久久久久大片| 一区二区三区色| jlzzjlzz国产精品久久| www国产精品av| 日韩激情视频网站| 在线不卡欧美精品一区二区三区| 国产精品另类一区| 国产精品一级黄| 精品国产91乱码一区二区三区| 亚洲国产精品尤物yw在线观看| 91丨porny丨国产| 国产精品久久久久久久蜜臀| 成人精品视频一区二区三区| 久久综合色之久久综合| 另类的小说在线视频另类成人小视频在线 | 一区二区三区高清在线| www.欧美亚洲| 亚洲视频中文字幕| 色综合av在线| 亚洲一线二线三线久久久| 色丁香久综合在线久综合在线观看| 亚洲同性gay激情无套| 99久久久无码国产精品| 亚洲美女视频在线| 欧美一a一片一级一片| 亚洲综合免费观看高清完整版 | 天堂av在线一区| 欧美日韩第一区日日骚| 午夜欧美一区二区三区在线播放| 在线亚洲高清视频| 亚洲国产精品人人做人人爽| 欧美三级韩国三级日本一级| 午夜一区二区三区视频| 欧美一区二区播放| 极品少妇一区二区| 国产精品三级久久久久三级| 99精品久久只有精品| 亚洲午夜一区二区三区| 555www色欧美视频| 国产高清一区日本| 亚洲美女免费视频| 666欧美在线视频| 久久国产生活片100| 国产亲近乱来精品视频| 色婷婷av一区二区| 老司机免费视频一区二区| 国产精品少妇自拍| 欧美日韩高清一区二区不卡| 国产在线一区二区| 亚洲女人****多毛耸耸8| 91精品国产综合久久久久久| 国产乱码一区二区三区| 亚洲美女淫视频| 欧美大片一区二区三区| 一本一道久久a久久精品| 午夜日韩在线观看| 国产精品毛片无遮挡高清| 欧美日韩中文国产| 国产99久久久国产精品免费看| 一区二区三区中文字幕在线观看| 日韩欧美国产高清| 99国产欧美另类久久久精品| 另类成人小视频在线| 一区二区三区视频在线观看| 精品电影一区二区三区| 91久久一区二区| 国产成人av电影在线观看| 亚洲国产精品天堂| 成人免费一区二区三区视频 | 精品视频在线免费| 国产成人精品影视| 婷婷久久综合九色综合绿巨人 | 最新中文字幕一区二区三区 | 国产精品一级片在线观看| 亚洲国产日韩a在线播放性色| 国产清纯美女被跳蛋高潮一区二区久久w | 色噜噜狠狠成人中文综合| 精品一区二区三区在线观看国产| 一区二区三区国产| 国产精品伦理一区二区| 精品国产123| 欧美美女黄视频| 色天天综合久久久久综合片| 国产毛片精品一区| 免费xxxx性欧美18vr| 亚洲综合无码一区二区| 亚洲乱码中文字幕| 国产亚洲人成网站| 亚洲精品一线二线三线无人区| 欧美日韩成人综合| 欧美日韩中文字幕一区| 在线视频你懂得一区| 日本韩国欧美国产| 色婷婷国产精品久久包臀 | 国产精品自拍三区| 蜜桃视频免费观看一区| 丝瓜av网站精品一区二区| 亚洲伦理在线精品| 亚洲欧美一区二区三区极速播放| 中文乱码免费一区二区| 欧美激情在线观看视频免费| 国产欧美视频一区二区| 久久久久久久网| 国产欧美久久久精品影院| 欧美国产1区2区| 国产日韩视频一区二区三区| 日本一区二区三区久久久久久久久不| 精品日韩在线一区| 久久久久久久网| 国产精品入口麻豆原神| 国产精品国产三级国产aⅴ中文| 国产精品天天摸av网| 亚洲视频一区二区在线观看| 亚洲天堂a在线| 亚洲女性喷水在线观看一区| 亚洲三级理论片| 亚洲国产日韩在线一区模特| 偷拍与自拍一区| 狠狠色狠狠色合久久伊人| 国产经典欧美精品| 97久久超碰精品国产| 欧美日韩中字一区| 日韩一区二区电影| 国产肉丝袜一区二区| 免费在线欧美视频| 韩国女主播成人在线观看| 国产1区2区3区精品美女| 91丨porny丨在线| 欧美一区永久视频免费观看| 久久综合九色综合久久久精品综合| 久久伊99综合婷婷久久伊| 综合色中文字幕| 午夜国产不卡在线观看视频| 极品瑜伽女神91| 在线一区二区观看| 精品国产免费一区二区三区香蕉| 国产精品久久夜| 日韩中文字幕亚洲一区二区va在线| 国模大尺度一区二区三区| www.亚洲免费av| 欧美日韩国产a| 国产欧美日韩三级| 亚洲18女电影在线观看| 国产不卡在线播放| 在线播放欧美女士性生活| 中文在线资源观看网站视频免费不卡| 亚洲精品五月天| 国产精品一区二区男女羞羞无遮挡 | 日韩视频免费直播| 亚洲精品免费播放| 韩国女主播成人在线观看| 91国产视频在线观看| 国产婷婷色一区二区三区| 亚洲国产成人91porn| 岛国精品在线播放| 欧美一区二区三区免费大片 | 高清国产午夜精品久久久久久| 在线免费观看日韩欧美| 久久久久久9999| 手机精品视频在线观看| 99精品热视频| 久久久久久久久久久黄色| 午夜私人影院久久久久| 91在线观看污| 欧美精品一区在线观看| 日韩高清一级片| 欧美曰成人黄网| 中文字幕一区二区三区色视频| 精品一区二区三区香蕉蜜桃 | 国产蜜臀av在线一区二区三区| 日韩vs国产vs欧美| 久久一日本道色综合| 午夜精品久久久久久久久| av资源网一区| 国产目拍亚洲精品99久久精品| 蜜桃久久久久久久| 欧美久久久影院| 天堂一区二区在线| 欧美视频第二页| 亚洲国产成人av网| 欧美日韩免费观看一区三区| 亚洲天堂免费在线观看视频| 成人av中文字幕| 亚洲色图20p| 色婷婷综合久久久| 伊人夜夜躁av伊人久久| 色婷婷一区二区三区四区| 亚洲精品国产精品乱码不99 | 粉嫩久久99精品久久久久久夜| 精品国产精品网麻豆系列 | 日韩经典一区二区|