]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/multiprecision/doc/html/boost_multiprecision/tut/ints.html
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / multiprecision / doc / html / boost_multiprecision / tut / ints.html
CommitLineData
7c673cae
FG
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4<title>Integer Types</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
7<link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Boost.Multiprecision">
8<link rel="up" href="../tut.html" title="Tutorial">
9<link rel="prev" href="../tut.html" title="Tutorial">
10<link rel="next" href="ints/cpp_int.html" title="cpp_int">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="../tut.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="ints/cpp_int.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="boost_multiprecision.tut.ints"></a><a class="link" href="ints.html" title="Integer Types">Integer Types</a>
28</h3></div></div></div>
29<div class="toc"><dl>
30<dt><span class="section"><a href="ints/cpp_int.html">cpp_int</a></span></dt>
31<dt><span class="section"><a href="ints/gmp_int.html">gmp_int</a></span></dt>
32<dt><span class="section"><a href="ints/tom_int.html">tom_int</a></span></dt>
33<dt><span class="section"><a href="ints/egs.html">Examples</a></span></dt>
34<dd><dl>
35<dt><span class="section"><a href="ints/egs/factorials.html">Factorials</a></span></dt>
36<dt><span class="section"><a href="ints/egs/bitops.html">Bit Operations</a></span></dt>
37</dl></dd>
38</dl></div>
39<p>
40 The following back-ends provide integer arithmetic:
41 </p>
42<div class="informaltable"><table class="table">
43<colgroup>
44<col>
45<col>
46<col>
47<col>
48<col>
49<col>
50</colgroup>
51<thead><tr>
52<th>
53 <p>
54 Backend Type
55 </p>
56 </th>
57<th>
58 <p>
59 Header
60 </p>
61 </th>
62<th>
63 <p>
64 Radix
65 </p>
66 </th>
67<th>
68 <p>
69 Dependencies
70 </p>
71 </th>
72<th>
73 <p>
74 Pros
75 </p>
76 </th>
77<th>
78 <p>
79 Cons
80 </p>
81 </th>
82</tr></thead>
83<tbody>
84<tr>
85<td>
86 <p>
87 <code class="computeroutput"><span class="identifier">cpp_int</span></code>
88 </p>
89 </td>
90<td>
91 <p>
92 boost/multiprecision/cpp_int.hpp
93 </p>
94 </td>
95<td>
96 <p>
97 2
98 </p>
99 </td>
100<td>
101 <p>
102 None
103 </p>
104 </td>
105<td>
106 <p>
107 Very versatile, Boost licensed, all C++ integer type which support
108 both <a href="http://en.wikipedia.org/wiki/Arbitrary-precision_arithmetic" target="_top">arbitrary
109 precision</a> and fixed precision integer types.
110 </p>
111 </td>
112<td>
113 <p>
114 Slower than <a href="http://gmplib.org" target="_top">GMP</a>, though
115 typically not as slow as <a href="http://libtom.org/?page=features&amp;newsitems=5&amp;whatfile=ltm" target="_top">libtommath</a>
116 </p>
117 </td>
118</tr>
119<tr>
120<td>
121 <p>
122 <code class="computeroutput"><span class="identifier">gmp_int</span></code>
123 </p>
124 </td>
125<td>
126 <p>
127 boost/multiprecision/gmp.hpp
128 </p>
129 </td>
130<td>
131 <p>
132 2
133 </p>
134 </td>
135<td>
136 <p>
137 <a href="http://gmplib.org" target="_top">GMP</a>
138 </p>
139 </td>
140<td>
141 <p>
142 Very fast and efficient back-end.
143 </p>
144 </td>
145<td>
146 <p>
147 Dependency on GNU licensed <a href="http://gmplib.org" target="_top">GMP</a>
148 library.
149 </p>
150 </td>
151</tr>
152<tr>
153<td>
154 <p>
155 <code class="computeroutput"><span class="identifier">tom_int</span></code>
156 </p>
157 </td>
158<td>
159 <p>
160 boost/multiprecision/tommath.hpp
161 </p>
162 </td>
163<td>
164 <p>
165 2
166 </p>
167 </td>
168<td>
169 <p>
170 <a href="http://libtom.org/?page=features&amp;newsitems=5&amp;whatfile=ltm" target="_top">libtommath</a>
171 </p>
172 </td>
173<td>
174 <p>
175 Public domain back-end with no licence restrictions.
176 </p>
177 </td>
178<td>
179 <p>
180 Slower than <a href="http://gmplib.org" target="_top">GMP</a>.
181 </p>
182 </td>
183</tr>
184</tbody>
185</table></div>
186</div>
187<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
188<td align="left"></td>
189<td align="right"><div class="copyright-footer">Copyright &#169; 2002-2013 John Maddock and Christopher Kormanyos<p>
190 Distributed under the Boost Software License, Version 1.0. (See accompanying
191 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
192 </p>
193</div></td>
194</tr></table>
195<hr>
196<div class="spirit-nav">
197<a accesskey="p" href="../tut.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../tut.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="ints/cpp_int.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
198</div>
199</body>
200</html>