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

Method val

src/pointer.cpp:46–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46std::size_t
47Pointer::val( Pointer &ptr )
48{
49#ifdef JVEC_MACHINE
50 struct{
51 std::uint64_t a;
52 std::uint64_t b;
53 }copy;
54 do{
55 copy.a = ptr.a;
56 copy.b = ptr.b;
57 }while( copy.a != copy.b );
58 return( copy.b );
59#else
60 return( ptr.a );
61#endif
62}
63
64void
65Pointer::inc( Pointer &ptr )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected