Glen Fernandes
5c1da00200
Use __typeof__ for clang assume_aligned
2016-02-08 08:34:29 -05:00
Glen Fernandes
7b8bcb5e3e
Use __typeof__ instead of typeof with GCC
2016-02-07 17:04:50 -05:00
Glen Fernandes
c60c73c1ac
Remove aligned_alloc customization for now
2016-02-07 16:47:32 -05:00
Glen Fernandes
df0e5eaa85
Update GCC implementation of assume_aligned
...
Allow use with pointer types other than void pointers.
2016-02-07 16:12:02 -05:00
Glen Fernandes
1f829685e0
Simplify allocation function customization
2015-12-30 00:19:56 -05:00
Glen Fernandes
75a026e0fd
Move portable code out of detail
2015-12-30 00:10:31 -05:00
Glen Fernandes
48b3792fa1
Minor cosmetic changes in functions
2015-12-20 09:52:30 -05:00
Glen Fernandes
8f53dc3a0b
Update align implementation and tests
2015-12-20 02:33:50 -05:00
Glen Fernandes
7f5f5219f9
Support custom allocation for aligned_alloc
2015-12-19 18:48:45 -05:00
Glen Fernandes
e06e7dbf8b
Clean up includes and refactor aligned_alloc
2015-12-19 17:51:56 -05:00
Glen Fernandes
07c4cc008e
Minor formatting changes
2015-12-18 08:39:39 -05:00
Glen Fernandes
e8e61532fe
Relax requirements on wrapped allocator
2015-12-17 20:32:48 -05:00
Glen Fernandes
6e72b6adf7
Add alignment_of_v variable template for C++14
2015-12-16 19:03:53 -05:00
Giel van Schijndel
fb729cf869
Use fallback implementation for aligned alloc on WinCE
...
MSVC doesn't provide aligned allocation functions for Windows CE, so
don't attempt to use the ones for MSVC there.
2015-12-16 18:04:31 -05:00
Glen Fernandes
2fe6991bad
Change interface of align_up and align_down
2015-12-16 07:28:09 -05:00
Glen Fernandes
e0e5640d45
Add integral overloads of is_aligned, align_up, align_down
2015-12-16 00:40:49 -05:00
Glen Fernandes
fa72ba63ea
Add align_up, align_down and other minor changes
2015-12-15 23:00:57 -05:00
Glen Fernandes
2d97f75083
Remove noexcept specifier from defaulted constructor
2015-11-08 15:02:39 -05:00
Glen Fernandes
63453133f3
Missing include in alignment_of_msvc.hpp
2015-10-29 23:06:22 -04:00
Glen Fernandes
b42a30ff33
Do not use offsetof for MSVC 7.1 compatibility
2015-10-28 22:55:33 -04:00
Glen Fernandes
91de6bdbea
Restore char_ptr declarations from last commit
2015-10-28 22:05:23 -04:00
Glen Fernandes
9c06c420ee
Fully qualify boost namespace
2015-10-11 23:36:10 -04:00
Glen Fernandes
18b59498d6
Use former behavior for aligned_allocator with 0 size
2015-08-28 20:30:50 -04:00
Glen Fernandes
3f80e35821
Keep enumeration constant in aligned_alloc
2015-08-08 22:22:18 -04:00
Glen Fernandes
0bed97bf30
Simplify clang assume_aligned header
2015-08-08 10:00:49 -04:00
Glen Fernandes
a50469911b
Qualify aligned_free call in aligned_delete
2015-08-08 03:19:52 -04:00
Glen Fernandes
417c6909d3
Conform to 3.7.4.1 for aligned_allocator with 0 size
2015-08-08 03:19:51 -04:00
Glen Fernandes
b73e525516
Use __builtin_assume_aligned on clang
2015-08-08 03:19:51 -04:00
Glen Fernandes
4cc612a270
Rename detail address_t to address
2015-08-08 02:23:32 -04:00
Glen Fernandes
34e2d0a791
Remove enumeration in aligned_alloc
2015-08-08 02:23:30 -04:00
Glen Fernandes
d979a2536f
Rename detail offset_object to alignof_helper
2015-08-08 02:23:29 -04:00
Glen Fernandes
0771bce1f8
Rename max_align to max_size and add max_align trait
2015-08-08 02:23:29 -04:00
Glen Fernandes
302a2114ed
Use more expressive condition in aligned_alloc for OSX
2015-08-08 02:23:29 -04:00
Glen Fernandes
cabd73d0df
Update copyright comments
2015-08-08 02:23:28 -04:00
Glen Fernandes
1c9f2779cc
Remove namespace and comment indentation
2015-07-29 00:37:36 -04:00
Glen Fernandes
c336f69df0
Work around clang on x86 __alignof for long long
2015-07-24 07:13:04 -04:00
Glen Fernandes
cb714408bb
For clang on android use our alignment_of implementation
2015-07-19 20:07:11 -04:00
Glen Fernandes
1598641444
Missing include for clang assume_aligned
2015-07-14 20:15:22 -04:00
Glen Fernandes
cb103fcd79
Support assume_aligned on clang, add a compilation test, and update alignment_of for MSVC
2015-06-09 10:46:13 -07:00
Glen Fernandes
256638bf9c
Spatial optimizations in allocation functions
2015-05-19 11:32:25 -07:00
Glen Fernandes
5338a7376a
Refactor assume_aligned implementation
2015-05-19 10:33:18 -07:00
Joel Falcou
b6e0a6862d
Introduce alignment hints macro specifier
...
Some compilers provide custom function to explicit the fact
that a pointer is indded aligned on a given boundary. This
PR introduces BOOST_ALIGN_ASSUME_ALIGNED to provide a portable
way to use such hints.
2015-05-01 18:02:55 +02:00
Glen Fernandes
8c0b44f9d6
Simplify two alignment_of implementations
2014-09-06 19:39:28 -07:00
Glen Fernandes
31b36c91c5
Compensate for template support in gcc 4.4
2014-09-05 19:20:26 -07:00
Glen Fernandes
834d610424
Rename certain identifiers in detail namespace
2014-09-05 05:16:38 -07:00
Glen Fernandes
c751d71fc5
Further integral constant usage changes
2014-09-05 02:46:20 -07:00
Glen Fernandes
19d5a2602c
alignment_of with integral_constant interface
2014-09-05 02:05:09 -07:00
Glen Fernandes
dc76004d4f
Update reference and tutorial documentation
2014-09-02 09:56:40 -07:00
Glen Fernandes
2712f1b160
Update contact information in comments
2014-09-01 01:02:38 -07:00
Glen Fernandes
d57ef40e4e
Remove unnecessary namespace qualifiers
2014-08-31 10:30:49 -07:00