Lines Matching defs:cache
49 static void *RawInternalAlloc(uptr size, InternalAllocatorCache *cache,
52 if (cache == 0) {
57 return internal_allocator()->Allocate(cache, size, alignment);
61 InternalAllocatorCache *cache) {
63 if (cache == 0) {
68 return internal_allocator()->Reallocate(cache, ptr, size, alignment);
71 static void RawInternalFree(void *ptr, InternalAllocatorCache *cache) {
72 if (!cache) {
76 internal_allocator()->Deallocate(cache, ptr);
86 void *InternalAlloc(uptr size, InternalAllocatorCache *cache, uptr alignment) {
87 void *p = RawInternalAlloc(size, cache, alignment);
93 void *InternalRealloc(void *addr, uptr size, InternalAllocatorCache *cache) {
94 void *p = RawInternalRealloc(addr, size, cache);
101 InternalAllocatorCache *cache) {
109 return InternalRealloc(addr, count * size, cache);
112 void *InternalCalloc(uptr count, uptr size, InternalAllocatorCache *cache) {
119 void *p = InternalAlloc(count * size, cache);
125 void InternalFree(void *addr, InternalAllocatorCache *cache) {
126 RawInternalFree(addr, cache);