| /openbsd-src/gnu/gcc/libstdc++-v3/include/ext/ |
| H A D | pool_allocator.h | 103 _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 D | mt_allocator.h | 147 _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 D | codecvt_specializations.h | 101 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 D | unsynchronized_pool_resource.h | 41 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 D | memory_resource.h | 35 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 D | synchronized_pool_resource.h | 65 _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 D | monotonic_buffer_resource.h | 100 void* do_allocate(size_t __bytes, size_t __alignment) override; // key function
|
| /openbsd-src/gnu/llvm/libcxx/include/experimental/ |
| H A D | memory_resource | 113 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 D | simd | 728 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 D | mt_allocator.cc | 103 __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 D | pool_allocator.cc | 47 __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 D | pthread_allocimpl.h | 124 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 D | stl_alloc.h | 356 _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 D | basic_string.tcc | 1052 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 D | cd9660.h | 90 #define CD9660_BLOCKS(__sector_size, __bytes) \ argument 91 howmany((__bytes), (__sector_size))
|
| /openbsd-src/gnu/llvm/libcxx/include/__memory/ |
| H A D | shared_ptr.h | 1077 size_t __bytes = __elements == 0 ? sizeof(__unbounded_array_control_block) 1080 return (__bytes + __align - 1) & ~(__align - 1);
|