Lines Matching refs:__n
131 void* _STLP_CALL __malloc_alloc::allocate(size_t __n) in allocate() argument
133 void *__result = malloc(__n); in allocate()
148 __result = malloc(__n); in allocate()
268 static _Obj* _S_refill(size_t __n);
312 static void* _M_allocate(size_t& __n);
314 static void _M_deallocate(void *__p, size_t __n);
318 void* __node_alloc_impl::_M_allocate(size_t& __n) { in _M_allocate() argument
319 __n = _S_round_up(__n); in _M_allocate()
320 _Obj * _STLP_VOLATILE * __my_free_list = _S_free_list + _S_FREELIST_INDEX(__n); in _M_allocate()
331 __r = _S_refill(__n); in _M_allocate()
340 void __node_alloc_impl::_M_deallocate(void *__p, size_t __n) { in _M_deallocate() argument
341 _Obj * _STLP_VOLATILE * __my_free_list = _S_free_list + _S_FREELIST_INDEX(__n); in _M_deallocate()
434 _Node_alloc_obj* __node_alloc_impl::_S_refill(size_t __n) { in _S_refill() argument
436 char* __chunk = _S_chunk_alloc(__n, __nobjs); in _S_refill()
440 _Obj* _STLP_VOLATILE* __my_free_list = _S_free_list + _S_FREELIST_INDEX(__n); in _S_refill()
447 *__my_free_list = __next_obj = __REINTERPRET_CAST(_Obj*, __chunk + __n); in _S_refill()
450 __next_obj = __REINTERPRET_CAST(_Obj*, __REINTERPRET_CAST(char*, __next_obj) + __n); in _S_refill()
484 void* __node_alloc_impl::_M_allocate(size_t& __n) { in _M_allocate() argument
485 __n = _S_round_up(__n); in _M_allocate()
486 _Obj* __r = _S_free_list[_S_FREELIST_INDEX(__n)].pop(); in _M_allocate()
488 { __r = _S_refill(__n); } in _M_allocate()
496 void __node_alloc_impl::_M_deallocate(void *__p, size_t __n) { in _M_deallocate() argument
497 _S_free_list[_S_FREELIST_INDEX(__n)].push(__STATIC_CAST(_Obj*, __p)); in _M_deallocate()
507 __node_alloc_impl::_Obj* __node_alloc_impl::_S_refill(size_t __n) { in _S_refill() argument
509 char* __chunk = _S_chunk_alloc(__n, __nobjs); in _S_refill()
517 _Freelist* __my_freelist = _S_free_list + _S_FREELIST_INDEX(__n); in _S_refill()
519 __cur_item = __REINTERPRET_CAST(_Obj*, __REINTERPRET_CAST(char*, __cur_item) + __n); in _S_refill()
742 void * _STLP_CALL __node_alloc::_M_allocate(size_t& __n) in _M_allocate() argument
743 { return __node_alloc_impl::_M_allocate(__n); } in _M_allocate()
745 void _STLP_CALL __node_alloc::_M_deallocate(void *__p, size_t __n) in _M_deallocate() argument
746 { __node_alloc_impl::_M_deallocate(__p, __n); } in _M_deallocate()
777 void *_M_refill(size_t __n);
835 static void * allocate(size_t& __n);
838 static void deallocate(void *__p, size_t __n);
842 static void * allocate(size_t& __n, __state_type* __a);
845 static void deallocate(void *__p, size_t __n, __state_type* __a);
853 void *_Pthread_alloc_per_thread_state::_M_refill(size_t __n) { in _M_refill() argument
856 char * __chunk = _Pthread_alloc_impl::_S_chunk_alloc(__n, __nobjs, this); in _M_refill()
866 __my_free_list = __free_list + _Pthread_alloc_impl::_S_freelist_index(__n); in _M_refill()
870 *__my_free_list = __next_obj = (__obj *)(__chunk + __n); in _M_refill()
873 __next_obj = (__obj *)((char *)__next_obj + __n); in _M_refill()
990 void *_Pthread_alloc_impl::allocate(size_t& __n) { in allocate() argument
996 if (__n > _MAX_BYTES) { in allocate()
997 return __malloc_alloc::allocate(__n); in allocate()
1000 __n = _S_round_up(__n); in allocate()
1003 __my_free_list = __a->__free_list + _S_freelist_index(__n); in allocate()
1006 void *__r = __a->_M_refill(__n); in allocate()
1014 void _Pthread_alloc_impl::deallocate(void *__p, size_t __n) { in deallocate() argument
1020 if (__n > _MAX_BYTES) { in deallocate()
1021 __malloc_alloc::deallocate(__p, __n); in deallocate()
1027 __my_free_list = __a->__free_list + _S_freelist_index(__n); in deallocate()
1034 void *_Pthread_alloc_impl::allocate(size_t& __n, __state_type* __a) { in allocate() argument
1039 if (__n > _MAX_BYTES) { in allocate()
1040 return __malloc_alloc::allocate(__n); in allocate()
1042 __n = _S_round_up(__n); in allocate()
1048 __my_free_list = __a->__free_list + _S_freelist_index(__n); in allocate()
1051 void *__r = __a->_M_refill(__n); in allocate()
1059 void _Pthread_alloc_impl::deallocate(void *__p, size_t __n, __state_type* __a) { in deallocate() argument
1064 if (__n > _MAX_BYTES) { in deallocate()
1065 __malloc_alloc::deallocate(__p, __n); in deallocate()
1073 __my_free_list = __a->__free_list + _S_freelist_index(__n); in deallocate()
1102 void * _STLP_CALL _Pthread_alloc::allocate(size_t& __n) in allocate() argument
1103 { return _Pthread_alloc_impl::allocate(__n); } in allocate()
1104 void _STLP_CALL _Pthread_alloc::deallocate(void *__p, size_t __n) in deallocate() argument
1105 { _Pthread_alloc_impl::deallocate(__p, __n); } in deallocate()
1106 void * _STLP_CALL _Pthread_alloc::allocate(size_t& __n, __state_type* __a) in allocate() argument
1107 { return _Pthread_alloc_impl::allocate(__n, __a); } in allocate()
1108 void _STLP_CALL _Pthread_alloc::deallocate(void *__p, size_t __n, __state_type* __a) in deallocate() argument
1109 { _Pthread_alloc_impl::deallocate(__p, __n, __a); } in deallocate()