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

Function mark

gecode/support/marked-pointer.hpp:57–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 return (reinterpret_cast<ptrdiff_t>(p) & 1) != 0;
56 }
57 forceinline void*
58 mark(void* p) {
59 assert(!marked(p));
60 return reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(p)+1);
61 }
62 forceinline void*
63 unmark(void* p) {
64 assert(marked(p));

Callers 7

recomputeMethod · 0.85
acquireSpaceMethod · 0.85
afc_unshareMethod · 0.85
nextMethod · 0.85
addMethod · 0.85
core.hppFile · 0.85
heap_allocMethod · 0.85

Calls 1

markedFunction · 0.85

Tested by

no test coverage detected