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

Method inc

src/pointer.cpp:64–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void
65Pointer::inc( Pointer &ptr )
66{
67#ifdef JVEC_MACHINE
68 ptr.a = ( ptr.a + 1 ) % ptr.max_cap;
69 ptr.b = ( ptr.b + 1 ) % ptr.max_cap;
70 if( ptr.b == 0 )
71 {
72 ptr.wrap_a++;
73 ptr.wrap_b++;
74 }
75#else
76 ptr.a = ( ptr.a + 1 ) % ptr.max_cap;
77 if( ptr.a == 0 )
78 {
79 ptr.wrap_a++;
80 }
81#endif
82}
83
84void
85Pointer::incBy( Pointer &ptr,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected