MCPcopy Create free account
hub / github.com/SoarGroup/Soar / alpha_hash_value

Function alpha_hash_value

Core/SoarKernel/src/rete.cpp:1490–1497  ·  view source on GitHub ↗

--- Returns hash value for the given id/attr/value symbols --- */ define alpha_hash_value(i,a,v,num_bits) \ ( ( ((i) ? ((Symbol *)(i))->hash_id : 0) ^ \ ((a) ? ((Symbol *)(a))->hash_id : 0) ^ \ ((v) ? ((Symbol *)(v))->hash_id : 0) ) & \ masks_for_n_low_order_bits[(num_bits)] )*/

Source from the content-addressed store, hash-verified

1488 ((v) ? ((Symbol *)(v))->hash_id : 0) ) & \
1489 masks_for_n_low_order_bits[(num_bits)] )*/
1490inline uint32_t alpha_hash_value(Symbol* i, Symbol* a, Symbol* v, short num_bits)
1491{
1492 return
1493 (((i ? i->hash_id : 0) ^
1494 (a ? a->hash_id : 0) ^
1495 (v ? v->hash_id : 0)) &
1496 masks_for_n_low_order_bits[(num_bits)]);
1497}
1498
1499/* --- rehash funciton for resizable hash table routines --- */
1500uint32_t hash_alpha_mem(void* item, short num_bits)

Callers 2

hash_alpha_memFunction · 0.85
find_alpha_memFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected