Home
last modified time | relevance | path

Searched refs:__alignment (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/libcxx/include/__memory/
H A Daligned_alloc.h30 inline _LIBCPP_HIDE_FROM_ABI void* __libcpp_aligned_alloc(std::size_t __alignment, std::size_t __size) {
32 return ::_aligned_malloc(__size, __alignment); in __libcpp_aligned_alloc()
34 // aligned_alloc() requires that __size is a multiple of __alignment, in __libcpp_aligned_alloc()
39 // round __size up to the next multiple of __alignment. in __libcpp_aligned_alloc()
40 size_t __rounded_size = (__size + __alignment - 1) & ~(__alignment - 1); in __libcpp_aligned_alloc()
43 return ::aligned_alloc(__alignment, __size > __rounded_size ? __size : __rounded_size); in __libcpp_aligned_alloc()
46 (void)::posix_memalign(&__result, __alignment, __size); in __libcpp_aligned_alloc()
31 __libcpp_aligned_alloc(std::size_t __alignment,std::size_t __size) __libcpp_aligned_alloc() argument
/freebsd/contrib/llvm-project/clang/lib/Headers/ppc_wrappers/
H A Dmm_malloc.h26 static __inline void *_mm_malloc(size_t __size, size_t __alignment) { in _mm_malloc() argument
31 if (__alignment < __vec_align) in _mm_malloc()
32 __alignment = __vec_align; in _mm_malloc()
33 if (posix_memalign(&__ptr, __alignment, __size) == 0) in _mm_malloc()
/freebsd/contrib/llvm-project/libcxx/include/__format/
H A Dparser_std_format_spec.h177 enum class __alignment : uint8_t { enum
241 __alignment __alignment_ : 3;
249 __alignment __alignment_ : 3;
296 __alignment __alignment_ : 3;
466 if (!__fields.__zero_padding_ && __alignment_ == __alignment::__zero_padding) {
524 __alignment __alignment_ : 3 {__alignment::__default};
562 __alignment_ = __alignment::__left;
566 __alignment_ = __alignment::__center;
570 __alignment_ = __alignment::__right;
709 if (__alignment_ == __alignment::__default)
[all …]
H A Dformatter_output.h71 __padding_size(size_t __size, size_t __width, __format_spec::__alignment __align) { in __padding_size()
74 …__align != __format_spec::__alignment::__zero_padding, "the caller should have handled the zero-pa… in __padding_size()
78 case __format_spec::__alignment::__zero_padding: in __padding_size()
81 case __format_spec::__alignment::__left: in __padding_size()
84 case __format_spec::__alignment::__center: { in __padding_size()
92 case __format_spec::__alignment::__default: in __padding_size()
93 case __format_spec::__alignment::__right: in __padding_size()
H A Dformatter_floating_point.h523 …bool __zero_padding = __specs.__alignment_ == __format_spec::__alignment:…
526 __specs.__alignment_ = __format_spec::__alignment::__right;
601 if (__specs.__alignment_ == __format_spec::__alignment::__zero_padding)
602 __specs.__alignment_ = __format_spec::__alignment::__right;
731 if (__specs.__alignment_ == __format_spec::__alignment ::__zero_padding) {
739 __specs.__alignment_ = __format_spec::__alignment::__right;
H A Dformatter_integral.h227 if (__specs.__alignment_ == __format_spec::__alignment::__zero_padding) { in __write_using_decimal_separators()
321 if (__specs.__alignment_ != __format_spec::__alignment::__zero_padding) in __format_integer()
330 __specs.__alignment_ = __format_spec::__alignment::__right; in __format_integer()
H A Dformatter_tuple.h129 __format_spec::__parser<_CharT> __parser_{.__alignment_ = __format_spec::__alignment::__left};
H A Dformatter_string.h56 __format_spec::__parser<_CharT> __parser_{.__alignment_ = __format_spec::__alignment::__left};
H A Drange_formatter.h209 __format_spec::__parser<_CharT> __parser_{.__alignment_ = __format_spec::__alignment::__left}; in __format_as_sequence()
/freebsd/contrib/llvm-project/clang/lib/Headers/
H A Dmm_malloc.h19 extern int posix_memalign(void **__memptr, size_t __alignment, size_t __size);
25 extern "C" int posix_memalign(void **__memptr, size_t __alignment, size_t __size);
/freebsd/contrib/llvm-project/libcxx/include/__memory_resource/
H A Dpolymorphic_allocator.h81 allocate_bytes(size_t __nbytes, size_t __alignment = alignof(max_align_t)) {
82 return __res_->allocate(__nbytes, __alignment);
85 …_LIBCPP_HIDE_FROM_ABI void deallocate_bytes(void* __ptr, size_t __nbytes, size_t __alignment = ali…
86 __res_->deallocate(__ptr, __nbytes, __alignment);
H A Dmonotonic_buffer_resource.h102 void* do_allocate(size_t __bytes, size_t __alignment) override; // key function
/freebsd/contrib/llvm-project/libcxx/include/__thread/
H A Dformatter.h71 __format_spec::__parser<_CharT> __parser_{.__alignment_ = __format_spec::__alignment::__right};
/freebsd/contrib/llvm-project/libcxx/include/
H A Dstring1291 return __m - __alignment;
1294 return __uses_lsb ? __m - __alignment : (__m / 2) - __alignment;
2061 enum { __alignment = 8 };
2066 …const size_type __boundary = sizeof(value_type) < __alignment ? __alignment / sizeof(value_type) :…
2486 …__old_cap < __ms / 2 - __alignment ? __recommend(std::max(__old_cap + __delta_cap, 2 * __old_cap))…
2529 …__old_cap < __ms / 2 - __alignment ? __recommend(std::max(__old_cap + __delta_cap, 2 * __old_cap))…