Home
last modified time | relevance | path

Searched refs:__bytes (Results 1 – 16 of 16) sorted by relevance

/openbsd-src/gnu/gcc/libstdc++-v3/include/ext/
H A Dpool_allocator.h103 _M_round_up(size_t __bytes) in _M_round_up() argument
104 { return ((__bytes + (size_t)_S_align - 1) & ~((size_t)_S_align - 1)); } in _M_round_up()
107 _M_get_free_list(size_t __bytes);
214 const size_t __bytes = __n * sizeof(_Tp); in allocate() local
215 if (__bytes > size_t(_S_max_bytes) || _S_force_new == 1) in allocate()
216 __ret = static_cast<_Tp*>(::operator new(__bytes)); in allocate()
219 _Obj* volatile* __free_list = _M_get_free_list(__bytes); in allocate()
224 __ret = static_cast<_Tp*>(_M_refill(_M_round_up(__bytes))); in allocate()
243 const size_t __bytes = __n * sizeof(_Tp); in deallocate() local
244 if (__bytes > static_cast<size_t>(_S_max_bytes) || _S_force_new == 1) in deallocate()
[all …]
H A Dmt_allocator.h147 _M_check_threshold(size_t __bytes) in _M_check_threshold()
148 { return __bytes > _M_options._M_max_bytes || _M_options._M_force_new; } in _M_check_threshold()
151 _M_get_binmap(size_t __bytes) in _M_get_binmap()
152 { return _M_binmap[__bytes]; } in _M_get_binmap()
224 _M_reserve_block(size_t __bytes, const size_t __thread_id);
227 _M_reclaim_block(char* __p, size_t __bytes);
335 _M_reserve_block(size_t __bytes, const size_t __thread_id);
338 _M_reclaim_block(char* __p, size_t __bytes);
680 const size_t __bytes = __n * sizeof(_Tp);
681 if (__pool._M_check_threshold(__bytes))
[all …]
H A Dcodecvt_specializations.h101 int __ibom = 0, int __ebom = 0, int __bytes = 1) in _GLIBCXX_BEGIN_NAMESPACE()
103 _M_ext_bom(__ebom), _M_int_bom(__ibom), _M_bytes(__bytes) in _GLIBCXX_BEGIN_NAMESPACE()
/openbsd-src/gnu/llvm/libcxx/include/__memory_resource/
H A Dunsynchronized_pool_resource.h41 void* __do_allocate(memory_resource* __upstream, size_t __bytes, size_t __align);
42 void __do_deallocate(memory_resource* __upstream, void* __p, size_t __bytes, size_t __align);
57 int __pool_index(size_t __bytes, size_t __align) const;
84 void* do_allocate(size_t __bytes, size_t __align) override; // key function
86 void do_deallocate(void* __p, size_t __bytes, size_t __align) override;
H A Dmemory_resource.h35 allocate(size_t __bytes, size_t __align = __max_align) {
36 return do_allocate(__bytes, __align);
40 deallocate(void* __p, size_t __bytes, size_t __align = __max_align) {
41 do_deallocate(__p, __bytes, __align);
H A Dsynchronized_pool_resource.h65 _LIBCPP_HIDE_FROM_ABI_VIRTUAL void* do_allocate(size_t __bytes, size_t __align) override { in do_allocate() argument
69 return __unsync_.allocate(__bytes, __align); in do_allocate()
72 …_LIBCPP_HIDE_FROM_ABI_VIRTUAL void do_deallocate(void* __p, size_t __bytes, size_t __align) overri… in do_deallocate() argument
76 return __unsync_.deallocate(__p, __bytes, __align); in do_deallocate()
H A Dmonotonic_buffer_resource.h100 void* do_allocate(size_t __bytes, size_t __alignment) override; // key function
/openbsd-src/gnu/llvm/libcxx/include/experimental/
H A Dmemory_resource113 void* allocate(size_t __bytes, size_t __align = __max_align)
114 { return do_allocate(__bytes, __align); }
117 void deallocate(void * __p, size_t __bytes, size_t __align = __max_align)
118 { do_deallocate(__p, __bytes, __align); }
391 void * do_allocate(size_t __bytes, size_t) override
393 if (__bytes > __max_size())
395 size_t __s = __aligned_allocation_size(__bytes, _MaxAlign) / _MaxAlign;
399 void do_deallocate(void * __p, size_t __bytes, size_t) override
401 _LIBCPP_ASSERT(__bytes <= __max_size(),
403 size_t __s = __aligned_allocation_size(__bytes, _MaxAlign) / _MaxAlign;
H A Dsimd728 template <class _Tp, size_t __bytes>
731 typedef _Tp type __attribute__((vector_size(__ceil_pow_of_2(__bytes))));
/openbsd-src/gnu/gcc/libstdc++-v3/src/
H A Dmt_allocator.cc103 __pool<false>::_M_reclaim_block(char* __p, size_t __bytes) in _M_reclaim_block() argument
106 const size_t __which = _M_binmap[__bytes]; in _M_reclaim_block()
118 __pool<false>::_M_reserve_block(size_t __bytes, const size_t __thread_id) in _M_reserve_block() argument
121 const size_t __which = _M_binmap[__bytes]; in _M_reserve_block()
251 __pool<true>::_M_reclaim_block(char* __p, size_t __bytes) in _M_reclaim_block() argument
254 const size_t __which = _M_binmap[__bytes]; in _M_reclaim_block()
336 __pool<true>::_M_reserve_block(size_t __bytes, const size_t __thread_id) in _M_reserve_block() argument
339 const size_t __which = _M_binmap[__bytes]; in _M_reserve_block()
H A Dpool_allocator.cc47 __pool_alloc_base::_M_get_free_list(size_t __bytes) in _GLIBCXX_BEGIN_NAMESPACE()
49 size_t __i = ((__bytes + (size_t)_S_align - 1) / (size_t)_S_align - 1); in _GLIBCXX_BEGIN_NAMESPACE()
/openbsd-src/gnu/lib/libstdc++/libstdc++/include/bits/
H A Dpthread_allocimpl.h124 static size_t _S_round_up(size_t __bytes) { in _S_round_up() argument
125 return (((__bytes) + (int) _S_ALIGN-1) & ~((int) _S_ALIGN - 1)); in _S_round_up()
127 static size_t _S_freelist_index(size_t __bytes) { in _S_freelist_index() argument
128 return (((__bytes) + (int) _S_ALIGN-1)/(int)_S_ALIGN - 1); in _S_freelist_index()
H A Dstl_alloc.h356 _S_round_up(size_t __bytes) in _S_round_up() argument
357 { return (((__bytes) + (size_t) _ALIGN-1) & ~((size_t) _ALIGN - 1)); } in _S_round_up()
360 _S_freelist_index(size_t __bytes) in _S_freelist_index() argument
361 { return (((__bytes) + (size_t)_ALIGN - 1)/(size_t)_ALIGN - 1); } in _S_freelist_index()
H A Dbasic_string.tcc1052 size_type __bytes = std::min(__strsize, __bufsiz - 1); in _S_string_copy() local
1053 _Traits::copy(__buf, __str.data(), __bytes); in _S_string_copy()
1054 __buf[__bytes] = _CharT(); in _S_string_copy()
/openbsd-src/usr.sbin/makefs/
H A Dcd9660.h90 #define CD9660_BLOCKS(__sector_size, __bytes) \ argument
91 howmany((__bytes), (__sector_size))
/openbsd-src/gnu/llvm/libcxx/include/__memory/
H A Dshared_ptr.h1077 size_t __bytes = __elements == 0 ? sizeof(__unbounded_array_control_block)
1080 return (__bytes + __align - 1) & ~(__align - 1);