MCPcopy Create free account
hub / github.com/Gecode/gecode / fl_alloc

Method fl_alloc

gecode/kernel/memory/manager.hpp:419–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417
418 template<size_t s>
419 forceinline void*
420 MemoryManager::fl_alloc(SharedMemory& sm) {
421 size_t i = sz2i(s);
422 FreeList* f = fl[i];
423 if (f == nullptr) {
424 fl_refill<s>(sm); f = fl[i];
425 }
426 FreeList* n = f->next();
427 fl[i] = n;
428 return f;
429 }
430
431 template<size_t s>
432 forceinline void

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected