Home | History | Annotate | Download | only in utils

Lines Matching refs:item

18 _arefSet_hashItem( void*  item )
22 hash = (uint32_t)(ptrdiff_t)item >> 2;
23 if (sizeof(item) > 4)
24 hash ^= ((uint64_t)(ptrdiff_t)item >> 32);
30 _arefSet_lookup( ARefSet* s, void* item)
32 uint32_t hash = _arefSet_hashItem(item);
38 if (*pnode == item || *pnode == NULL)
48 _arefSet_lookupInsert( ARefSet* s, void* item)
50 uint32_t hash = _arefSet_hashItem(item);
62 } else if (*pnode == item)
70 arefSet_has( ARefSet* s, void* item )
74 if (item == NULL || s->max_buckets == 0)
77 lookup = _arefSet_lookup(s, item);
78 return (*lookup == item);
93 void* item = s->buckets[nn];
94 if (item != NULL && item != AREFSET_DELETED) {
95 void** lookup = _arefSet_lookup(&newSet, item);
96 *lookup = item;
107 arefSet_add( ARefSet* s, void* item )
111 if (item == NULL)
120 lookup = _arefSet_lookupInsert(s, item);
121 if (*lookup == item)
124 *lookup = item;
134 arefSet_del( ARefSet* s, void* item )
138 if (item == NULL || s->max_buckets == 0)
141 lookup = _arefSet_lookup(s, item);
142 if (*lookup != item)