Microsoft Windows 上的 C 或 C++ BigInt 库

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/214706/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:29:10  来源:igfitidea点击:

C or C++ BigInt library on Microsoft Windows

c++cwindowsbiginteger

提问by KTC

What arbitrary-precision integers (and or rationals) library are there for compilers running on Microsoft Windows, and which would you recommend?

在 Microsoft Windows 上运行的编译器有哪些任意精度整数(和或有理数)库,您会推荐哪些?

Please state license type / cost, supported compilers (i.e. GCC and or VC++) for the library.

请说明该库的许可证类型/成本、支持的编译器(即 GCC 和或 VC++)。

回答by KTC

GMP.

良好生产规范

LGPL. Standard download from official website is designed for GCC. VC++ port is available from here.

LGPL。官网标准下载专为GCC设计。VC++ 端口可从这里获得

回答by Michael Burr

I have not used it, so I'm pointing you here blind:

我没有用过它,所以我在这里盲目地指着你:

LibTomMath by Tom St Denis: http://libtom.org/

Tom St Denis 的 LibTomMath:http://libtom.org/

Public Domain license. Website mentions that the library builds out of the box with GCC 2.95 [and up] as well as Visual C++ v6.00 [with SP5] without configuration.

公共领域许可。网站提到该库使用 GCC 2.95 [及更高版本] 以及 Visual C++ v6.00 [SP5] 开箱即用,无需配置。

A companion book is available: http://www.amazon.com/dp/1597491128

提供配套书:http: //www.amazon.com/dp/1597491128

回答by robottobor

OpenSSL BNtype. BSD-style license, pretty sure it's available for windows.

OpenSSL BN类型。BSD 风格的许可证,很确定它可用于 Windows。