MCPcopy Create free account
hub / github.com/RaftLib/RaftLib / wrapIndicator

Method wrapIndicator

src/pointer.cpp:105–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105std::size_t
106Pointer::wrapIndicator( Pointer &ptr )
107{
108#ifdef JVEC_MACHINE
109 struct{
110 std::uint64_t a;
111 std::uint64_t b;
112 }copy;
113 do{
114 copy.a = ptr.wrap_a;
115 copy.b = ptr.wrap_b;
116 }while( copy.a != copy.b );
117 return( copy.b );
118#else
119 return( ptr.wrap_a );
120#endif
121}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected