mirror of
https://github.com/boostorg/integer.git
synced 2026-01-25 16:32:20 +01:00
https://svn.boost.org/svn/boost/trunk ........ r40816 | nasonov | 2007-11-05 14:22:48 -0800 (Mon, 05 Nov 2007) | 1 line #839 fixed: local variable shadow patch ........ r40817 | danmarsden | 2007-11-05 14:24:53 -0800 (Mon, 05 Nov 2007) | 1 line fixed spelling mistake in documentation ........ r40818 | noel_belcourt | 2007-11-05 14:39:49 -0800 (Mon, 05 Nov 2007) | 3 lines Commit patch submitted by John Maddock. ........ r40819 | grafik | 2007-11-05 14:48:41 -0800 (Mon, 05 Nov 2007) | 1 line Add missing action for --skip-tests option since it's a boolean flag. ........ r40820 | grafik | 2007-11-05 14:49:09 -0800 (Mon, 05 Nov 2007) | 1 line Oops, forgot a comma. ........ r40822 | djowel | 2007-11-05 17:44:49 -0800 (Mon, 05 Nov 2007) | 1 line fix for real number parsers with custom types that do not have a std::numeric_limits specialization. ........ r40824 | bemandawes | 2007-11-05 18:29:50 -0800 (Mon, 05 Nov 2007) | 1 line Make message test conditional for Windows, Linux, HP-UX, OSF, and VMS (Boris Gubenko) ........ r40825 | bemandawes | 2007-11-05 18:54:29 -0800 (Mon, 05 Nov 2007) | 1 line Remove prematurely committed portion of prior change ........ r40827 | djowel | 2007-11-06 02:09:38 -0800 (Tue, 06 Nov 2007) | 1 line doc updates to reflect structure changes ........ r40828 | djowel | 2007-11-06 03:40:27 -0800 (Tue, 06 Nov 2007) | 1 line Regenerating/reorganizing docs ........ r40829 | schoepflin | 2007-11-06 03:52:01 -0800 (Tue, 06 Nov 2007) | 2 lines Again removed markup which has been wrongly reintroduced by @40735. ........ r40830 | djowel | 2007-11-06 03:58:37 -0800 (Tue, 06 Nov 2007) | 1 line doc updates + some more header tweaks ........ r40831 | djowel | 2007-11-06 04:05:12 -0800 (Tue, 06 Nov 2007) | 1 line doc updates + some more header tweaks ........ r40832 | djowel | 2007-11-06 04:13:52 -0800 (Tue, 06 Nov 2007) | 1 line Regenerating/reorganizing docs ........ r40833 | djowel | 2007-11-06 04:17:26 -0800 (Tue, 06 Nov 2007) | 1 line todo update ........ r40834 | bemandawes | 2007-11-06 05:24:38 -0800 (Tue, 06 Nov 2007) | 1 line Add missing Boost.System entry ........ r40835 | bemandawes | 2007-11-06 05:41:19 -0800 (Tue, 06 Nov 2007) | 1 line Add missing copyright and license ........ r40836 | aaron_windsor | 2007-11-06 05:55:05 -0800 (Tue, 06 Nov 2007) | 1 line Renaming planar graph test files to under 32 characters each. ........ r40837 | bemandawes | 2007-11-06 06:22:00 -0800 (Tue, 06 Nov 2007) | 1 line Add license ........ r40838 | joaquin | 2007-11-06 06:33:59 -0800 (Tue, 06 Nov 2007) | 1 line updated according to latest regression tests results ........ r40840 | bemandawes | 2007-11-06 08:10:11 -0800 (Tue, 06 Nov 2007) | 1 line Add repository URL and revision number, plus other minor tweaks and fixes. ........ r40841 | igaztanaga | 2007-11-06 08:56:28 -0800 (Tue, 06 Nov 2007) | 1 line Corrected _CRT_SECURE_NO_DEPRECATE detection ........ r40842 | igaztanaga | 2007-11-06 08:56:48 -0800 (Tue, 06 Nov 2007) | 1 line Initialized native handle to avoid warnings in Visual2005 ........ r40843 | johnmaddock | 2007-11-06 08:58:46 -0800 (Tue, 06 Nov 2007) | 1 line Disabled static assertions for compilers that don't support them. ........ r40844 | johnmaddock | 2007-11-06 09:02:26 -0800 (Tue, 06 Nov 2007) | 1 line Still trying to get the Solaris error rates correct. ........ r40845 | johnmaddock | 2007-11-06 09:09:33 -0800 (Tue, 06 Nov 2007) | 1 line Still trying to get those Solaris error rates correct. ........ r40846 | anthonyw | 2007-11-06 09:15:50 -0800 (Tue, 06 Nov 2007) | 1 line use condition so we know when threads have unblocked, to avoid hard-coding a delay ........ r40847 | johnmaddock | 2007-11-06 09:21:28 -0800 (Tue, 06 Nov 2007) | 1 line Fix for Mac OS error rates. ........ r40848 | johnmaddock | 2007-11-06 10:32:57 -0800 (Tue, 06 Nov 2007) | 1 line Updates for new toolset Sun-5.9. ........ r40850 | hljin | 2007-11-06 11:15:03 -0800 (Tue, 06 Nov 2007) | 1 line GIL: removed an extra semi-colon and made some cosmetic changes ........ [SVN r40851]
81 lines
3.9 KiB
HTML
81 lines
3.9 KiB
HTML
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
|
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
|
|
<meta name="ProgId" content="FrontPage.Editor.Document">
|
|
<title>Header boost/cstdint.hpp</title>
|
|
</head>
|
|
|
|
<body bgcolor="#FFFFFF" text="#000000">
|
|
|
|
<h1><img src="../../boost.png" alt="boost.png (6897 bytes)" align="center" width="277" height="86">Header
|
|
boost/cstdint.hpp </h1>
|
|
<p>The header <code><a href="../../boost/cstdint.hpp"><boost/cstdint.hpp></a></code>
|
|
provides the typedef's useful for
|
|
writing portable code that requires certain integer widths. All typedef's are in namespace boost.</p>
|
|
<p>The specifications are based on the ISO/IEC 9899:1999 C Language standard
|
|
header <stdint.h>. The 64-bit types required by the C standard are not
|
|
required in the boost header, and may not be supplied in all implementations,
|
|
because <code>long long</code> is not [yet] included in the C++ standard.</p>
|
|
<p>See <a href="cstdint_test.cpp">cstdint_test.cpp</a> for a test program.</p>
|
|
<h2>Exact-width integer types</h2>
|
|
<p>The typedef <code>int#_t</code>, with # replaced by the width, designates a
|
|
signed integer type of exactly # bits; <code>int8_t</code> denotes an 8-bit
|
|
signed integer type. Similarly, the typedef <code>uint#_t</code>
|
|
designates and unsigned integer type of exactly # bits.</p>
|
|
<p>These types are optional. However, if an implementation provides integer
|
|
types with widths of 8, 16, 32, or 64 bits, it shall define the corresponding
|
|
typedef names.</p>
|
|
<h2>Minimum-width integer types</h2>
|
|
<p>The typedef <code>int_least#_t</code>, with # replaced by the width,
|
|
designates a signed integer type with a width of at least # bits, such that no
|
|
signed integer type with lesser size has at least the specified width. Thus, <code>int_least32_t</code>
|
|
denotes a signed integer type with a width of at least 32 bits. Similarly, the
|
|
typedef name <code>uint_least#_t</code> designates an unsigned integer type with
|
|
a width of at least # bits, such that no unsigned integer type with lesser size
|
|
has at least the specified width.</p>
|
|
<p>Required minimum-width integer types:</p>
|
|
<ul>
|
|
<li><code>int_least8_t</code></li>
|
|
<li><code>int_least16_t</code></li>
|
|
<li><code>int_least32_t</code></li>
|
|
<li><code>uint_least8_t</code></li>
|
|
<li><code>uint_least16_t</code></li>
|
|
<li><code>uint_least32_t</code></li>
|
|
</ul>
|
|
<p>All other minimum-width integer types are optional.</p>
|
|
<h2>Fastest minimum-width integer types</h2>
|
|
<p>The typedef <code>int_fast#_t</code>, with # replaced by the width,
|
|
designates the fastest signed integer type with a width of at least # bits.
|
|
Similarly, the typedef name <code>uint_fast#_t</code> designates the fastest
|
|
unsigned integer type with a width of at least # bits.</p>
|
|
<p>There is no guarantee that these types are fastest for all purposes. In
|
|
any case, however, they satisfy the signedness and width requirements.</p>
|
|
<p>Required fastest minimum-width integer types:</p>
|
|
<ul>
|
|
<li><code>int_fast8_t</code></li>
|
|
<li><code>int_fast16_t</code></li>
|
|
<li><code>int_fast32_t</code></li>
|
|
<li><code>uint_fast8_t</code></li>
|
|
<li><code>uint_fast16_t</code></li>
|
|
<li><code>uint_fast32_t</code></li>
|
|
</ul>
|
|
<p>All other fastest minimum-width integer types are optional.</p>
|
|
<h2>Greatest-width integer types</h2>
|
|
<p>The typedef <code>intmax_t </code>designates a signed integer type capable of
|
|
representing any value of any signed integer type.</p>
|
|
<p>The typedef <code>uintmax_t</code> designates an unsigned integer type
|
|
capable of representing any value of any unsigned integer type.</p>
|
|
<p>These types are required.</p>
|
|
<hr>
|
|
<p>Revised <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %b %Y" startspan -->06 Nov 2007<!--webbot bot="Timestamp" endspan i-checksum="15272" -->
|
|
</p>
|
|
<p>© Copyright Beman Dawes 2000</p>
|
|
|
|
<p>Distributed under the Boost Software License, Version 1.0. See
|
|
<a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a></p>
|
|
|
|
</body>
|
|
|
|
</html> |