MCPcopy Create free account
hub / github.com/boostorg/build / list_hash

Function list_hash

v2/engine/modules/property-set.c:33–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33static unsigned list_hash(LIST * key)
34{
35 unsigned int hash = 0;
36 LISTITER iter = list_begin( key ), end = list_end( key );
37 for ( ; iter != end; ++iter )
38 {
39 hash = hash * 2147059363 + object_hash( list_item( iter ) );
40 }
41 return hash;
42}
43
44static int list_equal( LIST * lhs, LIST * rhs )
45{

Callers 2

ps_map_rehashFunction · 0.85
ps_map_insertFunction · 0.85

Calls 3

list_beginFunction · 0.85
list_endFunction · 0.85
object_hashFunction · 0.85

Tested by

no test coverage detected