mn_alignment.hpp
Go to the documentation of this file.
109 using type = typename long_double_alignment<Target, alignment_of<long double>::res >= Target>::type; };
117 using type = typename long_long_alignment<Target, alignment_of<long long>::res >= Target>::type; };
char err_invalid_alignment[N > 0 ? -1 :1]
Definition: mn_alignment.hpp:51
struct __attribute__((aligned(1))) aligned1
Definition: mn_alignment.hpp:40
Definition: mn_alignment.hpp:35
Definition: mn_alignment.hpp:50
Definition: mn_alignment.hpp:62
struct mn::memory::detail::ptr_difference T
Definition: mn_atomic_singleton.hpp:38
Definition: mn_allocator_typetraits.hpp:25
constexpr integral align_up(integral x, size_t a) noexcept
Definition: mn_alignment.hpp:145
typename int_alignment< Target, alignment_of< int >::res >=Target >::type type
Definition: mn_alignment.hpp:125
constexpr bool is_aligvalid(size_t alignment) noexcept
is a valid alignment, i.e. a power of two not zero
Definition: mn_alignment.hpp:166
typename short_alignment< Target, alignment_of< short >::res >=Target >::type type
Definition: mn_alignment.hpp:129
typename long_alignment< Target, alignment_of< long >::res >=Target >::type type
Definition: mn_alignment.hpp:121
typename long_long_alignment< Target, alignment_of< long long >::res >=Target >::type type
Definition: mn_alignment.hpp:117
typename double_alignment< Target, alignment_of< double >::res >=Target >::type type
Definition: mn_alignment.hpp:113
size_t alig_offset(void *address, size_t alignment) noexcept
Definition: mn_alignment.hpp:171
constexpr integral align_down(integral x, size_t a) noexcept
Definition: mn_alignment.hpp:154
typename internal::type_with_alignment< alignment_of< T >::res > res
Definition: mn_alignment.hpp:133
constexpr bool is_aligned(integral x, size_t a) noexcept
Definition: mn_alignment.hpp:137
typename long_double_alignment< Target, alignment_of< long double >::res >=Target >::type type
Definition: mn_alignment.hpp:109
Definition: mn_alignment.hpp:132
Definition: mn_alignment.hpp:127
Definition: mn_alignment.hpp:107
Definition: mn_alignment.hpp:119
Definition: mn_alignment.hpp:115
Definition: mn_alignment.hpp:103
Definition: mn_alignment.hpp:111
Definition: mn_alignment.hpp:123
Definition: mn_alignment.hpp:83
Definition: mn_typetraits.hpp:249