Commit Graph

212 Commits

Author SHA1 Message Date
John Maddock
3af7c55ad9 Make code respect BOOST_NO_INTEGRAL_INT64_T.
[SVN r58031]
2009-11-29 16:02:45 +00:00
John Maddock
1797528e35 Change long long to boost::long_long_type etc.
[SVN r58029]
2009-11-29 13:59:18 +00:00
John Maddock
ac155d3843 Added support for exact width integer type to int_t and uint_t
Updated docs to match.
Fixes #1225.

[SVN r57941]
2009-11-26 11:08:27 +00:00
John Maddock
ca84baa55d Update Boost.Integer meta-programming classes to work with intmax_t where possible - ie to be 64-bit clean.
Added quickbook based docs - updated as necessary.
Removed old html docs.

[SVN r57926]
2009-11-25 12:38:09 +00:00
Hartmut Kaiser
db267e22f8 Integer: fixed search&replace gone mad
[SVN r57908]
2009-11-24 21:24:20 +00:00
John Maddock
09ee5872ba Tidied up namespace usage, fixes #2134.
[SVN r57884]
2009-11-24 10:12:29 +00:00
John Maddock
ddb6a13f29 Add support for long long throughout.
Fixes #653.

[SVN r57873]
2009-11-23 18:51:33 +00:00
John Maddock
4c23c47ebe Add support for MS style __int64 when long long is not available.
Fixes #3084.

[SVN r57863]
2009-11-23 13:23:15 +00:00
John Maddock
285048504c Suppress and/or fix warnings - in particular avoid undefined behaviour in the test cases!
[SVN r57859]
2009-11-23 10:43:00 +00:00
John Maddock
8cab32a0dd Fix for Comeau compiler - does not define __GLIBC_HAVE_LONG_LONG which in turn causes GLIBC's stdint.h to misbehave.
Fixes #3548.

[SVN r57858]
2009-11-23 09:51:23 +00:00
John Maddock
9ff5c9d3b6 Fixes #3180.
[SVN r57845]
2009-11-22 17:12:57 +00:00
John Maddock
dd1194afa4 Fix preprocessor logic for long long support.
Fixes #3657.
Fixes #3568.

[SVN r57843]
2009-11-22 16:38:05 +00:00
John Maddock
eecbd5276f Reverted Integer back to Release branch state - as per devel-list discussions.
[SVN r57580]
2009-11-11 18:57:24 +00:00
John Maddock
fd0a8f8c2c Suppress gcc warnings: for bug report #1451.
[SVN r57170]
2009-10-27 09:58:40 +00:00
Daniel James
edd638ec91 Use BOOST_STATIC_CONSTANT in static_log2, as g++ 4.0 has problems with enum.
[SVN r54811]
2009-07-08 21:27:05 +00:00
John Maddock
3706ee7bd9 Fixes #2654.
[SVN r50572]
2009-01-14 10:17:25 +00:00
Daryle Walker
2d259a4f3e Added MPL-compatible variants of the integer-mask class templates (and finally make the lowest-bit-group metafunctions work for zero-length bit-groups)
[SVN r47869]
2008-07-29 19:33:20 +00:00
Daryle Walker
f041dc0f0a Added extended-integer support
[SVN r47842]
2008-07-27 17:08:51 +00:00
Daryle Walker
4af7660410 Encapsulated the mutually exclusive 'long long' and '__int64' type families into a single interface
[SVN r47754]
2008-07-24 11:43:02 +00:00
Daryle Walker
2b7ed6ebf7 Resolved namespace conflict from unadorned call, which fixes #2134
[SVN r47742]
2008-07-23 22:40:20 +00:00
Daryle Walker
203705fea6 Moved preprocessor selection from within macro-function calls to surrounding whole macro calls (some compilers suspend preprocessor directives within a macro call)
[SVN r47696]
2008-07-23 06:55:23 +00:00
Daryle Walker
ed80575830 Added MPL-compatible variants of the minimum-size and value-based integer templates, which fixes #1224
[SVN r47470]
2008-07-16 09:55:31 +00:00
Daryle Walker
f27ad7b337 Added MPL-compatible variant of the processor-optimized integer template
[SVN r47452]
2008-07-15 18:56:59 +00:00
Daryle Walker
55e1796c7a Added exact-integer templates, which fixes #1225 (and completes #653)
[SVN r47434]
2008-07-15 09:59:19 +00:00
Daryle Walker
053be71261 Added extended-integer support, which fixes #653 (the main part; the secondary part is split off as #1225)
[SVN r47414]
2008-07-14 06:28:54 +00:00
Daryle Walker
2f91e69629 Re-did implementation
[SVN r47408]
2008-07-13 23:30:18 +00:00
Daryle Walker
7d8e93a6ac Fixed comments listed in #766 that didn't match their described code
[SVN r39062]
2007-08-29 19:54:14 +00:00
John Maddock
93612e6c0b QNX does have a wchar.h and WCHAR_MAX/WCHAR_MIN even though there's not much else in it!
[SVN r32576]
2006-02-05 10:19:42 +00:00
John Maddock
d9f5b1bbf9 Apparently we forgot to include <limits.h>
[SVN r32397]
2006-01-24 17:23:54 +00:00
Douglas Gregor
37d7590f2f Merged from Version_1_33_1
[SVN r31949]
2005-12-08 03:23:02 +00:00
Rene Rivera
cb9a7792cc Merge from RC_1_33_0.
[SVN r31703]
2005-11-19 19:38:13 +00:00
John Maddock
291bb8c525 Enable support for Dragonfly BSD
[SVN r30647]
2005-08-24 15:45:17 +00:00
Beman Dawes
8602a17a10 Replace buggy Cygwin INTMAX_C and UINTMAX_C macros
[SVN r29276]
2005-05-30 01:45:13 +00:00
Douglas Gregor
39399de102 WCHAR_MIN is not trustworthy on MacOS X
[SVN r28714]
2005-05-07 13:14:07 +00:00
John Maddock
21fe6251ab Fix to ensure that <wchar.h> is included on solaris (thanks to bug report by Caleb Epstein).
[SVN r26542]
2004-12-17 11:56:15 +00:00
Markus Schöpflin
07019a8801 Better support for Tru64.
[SVN r25689]
2004-10-12 16:42:58 +00:00
John Maddock
0935f20c69 Added new types boost::long_long_type and boost::ulong_long_type in boost/config.hpp and applied these types in place of "long long" throughout. As a result, almost all of boost now compiles cleanly with -ansi -pedantic with gcc. Changes tested with gcc 3.3, 2.95, VC7.1 and Intel 8.
[SVN r24899]
2004-09-04 10:34:49 +00:00
John Maddock
7197caf500 Added Daryle Walker's copyrights as requested.
[SVN r24481]
2004-08-15 10:13:49 +00:00
John Maddock
92a46aac83 Removed boost.org copyright assignments, and reverted to orginal author (as based on cvs history).
[SVN r24402]
2004-08-11 10:59:33 +00:00
John Maddock
c32a045fa4 Removed Boost.org copyrights and replaced with originating authors copyright instead.
[SVN r24372]
2004-08-10 12:53:34 +00:00
Douglas Gregor
bfc384a435 License update
[SVN r24180]
2004-07-30 04:46:56 +00:00
Douglas Gregor
198530a48d Converted to Boost Software License, Version 1.0
[SVN r24096]
2004-07-27 03:43:34 +00:00
John Maddock
91f511cab4 Licence update
[SVN r24031]
2004-07-25 12:01:00 +00:00
Gennaro Prota
0f84fe35da fixed typo in comment
[SVN r23945]
2004-07-22 09:02:43 +00:00
Gennaro Prota
170a352574 new version - more efficient, and with no dependency on numeric_limits<>
[SVN r23829]
2004-07-20 09:49:43 +00:00
John Maddock
f2d22d091f Patches for cstdint support:
cygwin and mingw now use native stdint headers.
default header now compiles in -pedantic -ansi mode with gcc.


[SVN r21728]
2004-01-14 13:30:49 +00:00
Beman Dawes
a656e7744f Change license message to reference Boost Software License
[SVN r20038]
2003-09-12 17:09:29 +00:00
John Maddock
46fdbba4b8 Added NetBSD patches from Angus Leeming
[SVN r19804]
2003-08-27 10:30:53 +00:00
Beman Dawes
890e28ab67 include <boost/limits.hpp> instead of <limits.h>, fixing a date-time issue on Comeau
[SVN r18499]
2003-05-22 18:09:32 +00:00
John Maddock
1252426554 Added Cray X1 support
[SVN r17022]
2003-01-24 11:57:27 +00:00
John Maddock
19fb03cefe Added Cray support
[SVN r16989]
2003-01-22 12:12:14 +00:00
Beman Dawes
a9b35df2f8 add or update See www.boost.org comments
[SVN r16708]
2002-12-27 16:51:53 +00:00
John Maddock
49a8d69fe3 minor fix for integer_traits,
changed is_pod.hpp include to is_POD.hpp as a temporary fix


[SVN r15996]
2002-10-27 12:16:39 +00:00
John Maddock
9cc587a7f2 Merged changes from RC_1_29_0 branch
[SVN r15958]
2002-10-21 11:00:50 +00:00
Beman Dawes
8ad3bbafbc BOOST_HAS_MS_INT64 rather than specific compilers
[SVN r14668]
2002-08-05 00:02:10 +00:00
Beman Dawes
cc1183d347 Check for BOOST_HAS_MS_INT64 instead of specific compilers
[SVN r14664]
2002-08-04 01:27:24 +00:00
Björn Karlsson
c56e4674f8 Update from Daryle
[SVN r14187]
2002-06-19 20:11:17 +00:00
Douglas Gregor
92de2f44a0 cstdint.hpp:
- Handle FreeBSD's <inttypes.h>


[SVN r12601]
2002-01-31 12:58:35 +00:00
Douglas Gregor
59779dec2c integer_traits.hpp:
- Handle wchar_t traits on FreeBSD


[SVN r12467]
2002-01-23 19:56:07 +00:00
Dave Abrahams
c50993d5d4 Added daryle's missing files
[SVN r11971]
2001-12-07 12:48:20 +00:00
Dave Abrahams
5477a9641c initial checkin
[SVN r11898]
2001-12-03 23:55:35 +00:00
Dave Abrahams
162c6aefa1 Integrated Daryle Walker's dlw_int.zip changes
[SVN r11866]
2001-12-03 03:29:57 +00:00
Jens Maurer
24e6bfbfaa add definition for integral constants initialized in-class
[SVN r11724]
2001-11-18 17:37:21 +00:00
Darin Adler
ccabb522d0 Remove non-ASCII character that crept in.
[SVN r11570]
2001-11-04 21:53:21 +00:00
Jens Maurer
0995d0a6fb only use "long long" if there's a stdlib overload
[SVN r11516]
2001-11-01 21:52:08 +00:00
Jens Maurer
5ec8116c34 use BOOST_HAS_LONG_LONG
[SVN r11493]
2001-10-31 19:35:59 +00:00
Jens Maurer
4a094c4bcb fix wchar_t on HP-UX with gcc
[SVN r11472]
2001-10-30 20:55:18 +00:00
Darin Adler
0c758855e4 Since it's obsolete, it should be removed.
[SVN r11300]
2001-09-28 17:37:25 +00:00
Darin Adler
3399df597e Add case for Mac OS X to the WCHAR_MIN/WCHAR_MAX section.
[SVN r11242]
2001-09-24 23:45:49 +00:00
Jens Maurer
a066e242b0 always use WCHAR_MIN and WCHAR_MAX if defined
[SVN r11232]
2001-09-24 18:43:20 +00:00
Jens Maurer
a635f753a4 port cstdint.hpp to HP-UX
[SVN r11175]
2001-09-20 19:25:35 +00:00
John Maddock
5b0d514aa4 commit of split-config, including any changes required to existing libraries (mainly regex).
[SVN r11138]
2001-09-18 11:13:39 +00:00
Jens Maurer
eee6dfa4d9 avoid "long long" with SunCC (Gennadiy E. Rozental)
[SVN r11066]
2001-09-07 18:49:12 +00:00
Beman Dawes
3db9390efb Add LL suffix to line 150 for long longs at suggestion of Toon Knapen
[SVN r10854]
2001-08-13 17:02:48 +00:00
John Maddock
c6f3dce91a Fixed VC6+STLport-4.1b6 (changed preprocessor logic)
[SVN r10360]
2001-06-20 11:42:44 +00:00
Jens Maurer
645f809379 fix the "gcc 3.0 and long long" fix to check for the appropriate symbol
[SVN r10107]
2001-05-13 18:17:15 +00:00
Jens Maurer
28ec7fa76c Don't use "long long" with gcc 3.0's shipped library, because it does
not define operator<<(ostream&, long long) overloads.


[SVN r10095]
2001-05-11 17:04:56 +00:00
John Maddock
07505c76f8 Preprocessor fix for VC6 + STLPort 4.1b6
[SVN r10087]
2001-05-11 10:47:57 +00:00
Jens Maurer
fda46f9780 HP-UX needs special attention because ULONG_LONG_MAX is not fully usable
[SVN r10080]
2001-05-09 21:07:20 +00:00
Jens Maurer
125bf3351f gcc on HP-UX doesn't have WCHAR_MIN and WCHAR_MAX
[SVN r10068]
2001-05-08 18:15:32 +00:00
Jens Maurer
e3702f3abc int64_t may not be defined on HP-UX when using gcc
[SVN r10067]
2001-05-08 18:14:14 +00:00
John Maddock
c54da75efb Fixed more wchar_t problems
[SVN r10058]
2001-05-08 11:11:30 +00:00
Jens Maurer
2dd1bee693 add HP-UX workaround
[SVN r10051]
2001-05-07 21:21:13 +00:00
Jens Maurer
949134726f fix the fix for SGI MIPSpro with STLport
[SVN r10008]
2001-05-03 11:57:57 +00:00
Jens Maurer
b3f587b9f7 IRIX doesn't have WCHAR_MIN and WCHAR_MAX, either
[SVN r10005]
2001-05-02 16:18:08 +00:00
Jens Maurer
215b4d8ee7 compactify John Maddock's fix for Borland C++ / WCHAR_MIN, WCHAR_MAX
[SVN r10004]
2001-05-02 15:44:02 +00:00
John Maddock
976c5e6572 Fix for Borland C++ and wchar_t
[SVN r10001]
2001-05-02 10:58:30 +00:00
Jens Maurer
33abcf7250 use BOOST_STATIC_CONSTANT
define static member constants
add wchar_t specialization


[SVN r9997]
2001-04-30 13:36:05 +00:00
Jens Maurer
d1781f09d2 allow for ULONGLONG_MAX as well
[SVN r9795]
2001-04-16 13:32:54 +00:00
Jens Maurer
c1c099c845 check for ULONGLONG_MAX as well
[SVN r9793]
2001-04-16 12:53:03 +00:00
John Maddock
f4c38bdf51 Added boost-wide <limits> woraround
[SVN r9688]
2001-04-01 11:59:18 +00:00
John Maddock
53005cadc8 added <limits> workaround
[SVN r9687]
2001-03-31 12:05:02 +00:00
Beman Dawes
ea4963031a Add comment: int_fast_t works for unsigned too.
[SVN r9545]
2001-03-12 14:01:34 +00:00
Beman Dawes
d39c7cd327 Correct spelling in Jens' licenses
[SVN r9372]
2001-03-01 18:54:36 +00:00
Jeremy Siek
8084359fda removed backslashes in macros
[SVN r9097]
2001-02-11 01:21:56 +00:00
Jens Maurer
d2c2e49154 expanded int_least_helper comment on request of Daryle Walker
[SVN r8815]
2001-01-30 21:16:43 +00:00
John Maddock
50bd08d542 cstdint: cygwin fixes for long long support
[SVN r8754]
2001-01-24 12:18:30 +00:00
Jens Maurer
b5b41c73db for int32_t and intmax_t, prefer "long" over "int" if both are 32bit
[SVN r8743]
2001-01-23 19:45:00 +00:00
Dave Abrahams
a22a9a3d80 Fixes so that long long is recognized for GCC.
[SVN r8706]
2001-01-22 05:06:37 +00:00
Jens Maurer
21ee723419 restricted Windows/gcc exclusion of int64_t to Cygwin, because
MingW seems to work


[SVN r8641]
2001-01-18 22:44:28 +00:00
Jens Maurer
202890e032 add typename to definition of (u)int_t::fast
[SVN r8560]
2001-01-12 18:07:34 +00:00
Jens Maurer
c3d2838f55 Folded stdint.h into cstdint.hpp to avoid ISO C99 incompatibilities
[SVN r8174]
2000-11-12 18:35:33 +00:00
Jens Maurer
99eff7e1bb check for ULONG_LONG_MAX as well (supports gcc)
[SVN r7862]
2000-09-27 21:43:54 +00:00
Beman Dawes
d0b9d43e9b Back out _fast optimization that wasn't. (Ken Hagan)
[SVN r7848]
2000-09-26 18:22:26 +00:00
Beman Dawes
79accb0546 More optimal choices for fast 8 and 16 types
[SVN r7816]
2000-09-25 11:58:38 +00:00
John Maddock
76fcc1f65e addition of INTXX_C support to integer library
[SVN r7792]
2000-09-24 11:35:25 +00:00
Jens Maurer
34f4037317 fix reversed BOOST_NO_INT64_T logic
[SVN r7780]
2000-09-23 16:29:01 +00:00
Jens Maurer
a7bd4493ce add support for gcc's long long
[SVN r7779]
2000-09-23 16:27:16 +00:00
Beman Dawes
6a093cf955 64-bit integer improvements from John Maddock
[SVN r7776]
2000-09-22 20:39:23 +00:00
John Maddock
a8297327d6 type traits update [added is_convertible and alignment_of]
[SVN r7675]
2000-08-02 10:58:59 +00:00
Beman Dawes
d9207f3cfd Add typename syntax fix in two places (from Jens Maurer)
[SVN r7665]
2000-07-30 18:59:52 +00:00
Beman Dawes
5c0fd818f9 This commit was generated by cvs2svn to compensate for changes in r4,
which included commits to RCS files with non-trunk default branches.


[SVN r7621]
2000-07-07 16:04:40 +00:00