MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / next

Method next

libraries/Set/Set.cpp:161–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160
161int Set::next()
162{
163 if (_current & 0x8000) return -1; // if current == -1
164 _current++;
165 uint8_t p = (uint8_t)_current / 8;
166 uint8_t q = (uint8_t)_current & 7;
167 return findNext(p, q);
168}
169
170// pointer math version ~12% faster but not for previous
171// needs investigation.

Callers 1

unittestFunction · 0.80

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.64