]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [/ |
2 | Copyright 2013 Paul A. Bristow. | |
3 | Copyright 2013 John Maddock. | |
4 | Distributed under the Boost Software License, Version 1.0. | |
5 | (See accompanying file LICENSE_1_0.txt or copy at | |
6 | http://www.boost.org/LICENSE_1_0.txt). | |
7 | ] | |
8 | ||
9 | [section:limits32 Numeric limits for 32-bit platform] | |
10 | These tables were generated using the following program and options: | |
11 | ||
12 | [pre | |
13 | ||
14 | Program: | |
15 | numeric_limits_qbk.cpp | |
16 | Mon Nov 4 18:09:06 2013 | |
17 | BuildInfo: | |
18 | Platform Win32 | |
19 | Compiler Microsoft Visual C++ version 10.0 | |
20 | MSVC version 160040219. | |
21 | STL Dinkumware standard library version 520 | |
22 | Boost version 1.55.0 | |
23 | ] | |
24 | ||
25 | [table:integral_constants Integer types constants (`std::numeric_limits<T>::is_integer == true` && is_exact == true) | |
26 | [[type][signed][bound][modulo][round][radix][digits][digits10]] | |
27 | [[bool][unsigned][bound][no][to zero][2][1][0]] | |
28 | [[char][signed][bound][modulo][to zero][2][7][2]] | |
29 | [[unsigned char][unsigned][bound][modulo][to zero][2][8][2]] | |
30 | [[char16_t][unsigned][bound][modulo][to zero][2][16][4]] | |
31 | [[char32_t][unsigned][bound][modulo][to zero][2][32][9]] | |
32 | [[short][signed][bound][modulo][to zero][2][15][4]] | |
33 | [[unsigned short][unsigned][bound][modulo][to zero][2][16][4]] | |
34 | [[int][signed][bound][modulo][to zero][2][31][9]] | |
35 | [[unsigned][unsigned][bound][modulo][to zero][2][32][9]] | |
36 | [[long][signed][bound][modulo][to zero][2][31][9]] | |
37 | [[unsigned long][unsigned][bound][modulo][to zero][2][32][9]] | |
38 | [[long long][signed][bound][modulo][to zero][2][63][18]] | |
39 | [[unsigned long long][unsigned][bound][modulo][to zero][2][64][19]] | |
40 | [[int32_t][signed][bound][modulo][to zero][2][31][9]] | |
41 | [[uint32_t][unsigned][bound][modulo][to zero][2][32][9]] | |
42 | [[int64_t][signed][bound][modulo][to zero][2][63][18]] | |
43 | [[uint64_t][unsigned][bound][modulo][to zero][2][64][19]] | |
44 | [[int128_t][signed][bound][modulo][to zero][2][128][38]] | |
45 | [[uint128_t][unsigned][bound][modulo][to zero][2][128][38]] | |
46 | [[int256_t][signed][bound][modulo][to zero][2][256][77]] | |
47 | [[uint256_t][unsigned][bound][modulo][to zero][2][256][77]] | |
48 | [[cpp_int][signed][unbounded][no][to zero][2][2147483647][646392383]] | |
49 | ] | |
50 | ||
51 | [table:integral_functions Integer types functions (`std::numeric_limits<T>::is_integer == true && std::numeric_limits<T>::min() == std::numeric_limits<T>::lowest()` ) | |
52 | [[function][max][min]] | |
53 | [[bool][1][0]] | |
54 | [[char][127][-128]] | |
55 | [[unsigned char][255][0]] | |
56 | [[char16_t][65535][0]] | |
57 | [[char32_t][4294967295][0]] | |
58 | [[short][32767][-32768]] | |
59 | [[unsigned short][65535][0]] | |
60 | [[int][2147483647][-2147483648]] | |
61 | [[unsigned int][4294967295][0]] | |
62 | [[long][2147483647][-2147483648]] | |
63 | [[unsigned long][4294967295][0]] | |
64 | [[long long][9223372036854775807][-9223372036854775808]] | |
65 | [[unsigned long long][18446744073709551615][0]] | |
66 | [[int32_t][2147483647][-2147483648]] | |
67 | [[int64_t][9223372036854775807][-9223372036854775808]] | |
68 | [[int128_t][340282366920938463463374607431768211455][-340282366920938463463374607431768211455]]] | |
69 | [table:float_functions Floating-point types constants (`std::numeric_limits<T>::is_integer==false && is_signed==true && is_modulo==false && is_exact==false && is_bound==true`) | |
70 | [[type][round][radix][digits][digits10][max_digits10][min_exp][min_exp10][max_exp][max_exp10][tiny][trap]] | |
71 | [[float][to nearest][2][24][6][8][-125][-37][128][38][tiny][traps]] | |
72 | ||
73 | [[double][to nearest][2][53][15][17][-1021][-307][1024][308][tiny][traps]] | |
74 | ||
75 | [[long double][to nearest][2][53][15][17][-1021][-307][1024][308][tiny][traps]] | |
76 | ||
77 | [[cpp_dec_float_50][indeterminate][10][50][50][80][-222953000][-67108864][222953000][67108864][no][no]] | |
78 | ||
79 | [[bin_128bit_double_type][to nearest][2][377][113][115][-2147482894][-646392082][2147482893][646392082][no][traps]] | |
80 | ] | |
81 | [table:float_functions Floating-point types functions (`std::numeric_limits<T>::is_integer == false`) | |
82 | [[function][float][double][long double][cpp_dec_50][cpp_bin_128]][[max][3.40282e+038][1.79769e+308][1.79769e+308][1e+67108865][1.85906e+646456766]] | |
83 | [[min][1.17549e-038][2.22507e-308][2.22507e-308][1e-67108864][5.37906e-646456767]] | |
84 | [[epsilon][1.19209e-007][2.22045e-016][2.22045e-016][1e-49][6.49713e-114]] | |
85 | [[round_error][0.5][0.5][0.5][0.5][0.5]] | |
86 | [[infinity][1.#INF][1.#INF][1.#INF][inf][inf]] | |
87 | [[quiet_NaN][1.#QNAN][1.#QNAN][1.#QNAN][nan][nan]] | |
88 | [[signaling_NaN][1.#QNAN][1.#QNAN][1.#QNAN][0][0]] | |
89 | [[denorm_min][1.4013e-045][4.94066e-324][4.94066e-324][0][0]] | |
90 | ] | |
91 | ||
92 | ||
93 | [endsect] [/section:limits32 Numeric limits for 32-bit platform] | |
94 |