MCPcopy Create free account
hub / github.com/Genivia/RE-flex / hash_pos

Method hash_pos

include/reflex/pattern.h:1284–1290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282 modifiers[mod] += modified;
1283 }
1284 static inline uint16_t hash_pos(const Positions *pos)
1285 {
1286 uint16_t h = 0;
1287 for (Positions::const_iterator i = pos->begin(); i != pos->end(); ++i)
1288 h += h + static_cast<uint16_t>(*i ^ (*i >> 24));
1289 return h;
1290 }
1291 static inline bool valid_goto_index(Index index)
1292 {
1293 return index <= Const::GMAX;

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected