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

Function unmark

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

Source from the content-addressed store, hash-verified

60 return reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(p)+1);
61 }
62 forceinline void*
63 unmark(void* p) {
64 assert(marked(p));
65 return reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(p)-1);
66 }
67 forceinline void*
68 fmark(void* p) {
69 return reinterpret_cast<void*>(reinterpret_cast<ptrdiff_t>(p)|1);

Callers 9

getSpaceMethod · 0.85
getWorkingSpaceMethod · 0.85
purgeMethod · 0.85
recomputeMethod · 0.85
acquireSpaceMethod · 0.85
forwardMethod · 0.85
_failMethod · 0.85
heap_allocMethod · 0.85
heap_freeMethod · 0.85

Calls 1

markedFunction · 0.85

Tested by

no test coverage detected