Home | History | Annotate | Download | only in src

Lines Matching full:args

57   PHashTableArgs args;
74 ESR_ReturnCode PHashTableCreate(PHashTableArgs *args,
82 (args != NULL && args->maxLoadFactor <= 0.0))
89 if (args == NULL)
91 tmp->args.capacity = PHASH_TABLE_DEFAULT_CAPACITY;
92 tmp->args.maxLoadFactor = PHASH_TABLE_DEFAULT_MAX_LOAD_FACTOR;
93 tmp->args.hashFunction = PHASH_TABLE_DEFAULT_HASH_FUNCTION;
94 tmp->args.compFunction = PHASH_TABLE_DEFAULT_COMP_FUNCTION;
98 memcpy(&tmp->args, args, sizeof(PHashTableArgs));
100 if (tmp->args.hashFunction == PHASH_TABLE_DEFAULT_HASH_FUNCTION)
101 tmp->args.hashFunction = hashString;
103 if (tmp->args.compFunction == PHASH_TABLE_DEFAULT_COMP_FUNCTION)
104 tmp->args.compFunction = LSTRCMP;
106 tmp->entries = NEW_ARRAY(PHashTableEntry *, tmp->args.capacity, memTag);
114 for (i = tmp->args.capacity; i > 0;)
121 tmp->threshold = (unsigned int)(tmp->args.capacity * tmp->args.maxLoadFactor);
180 if (entry->hashCode == hashCode && table->args.compFunction(key, entry->key) == 0)
217 hashCode = table->args.hashFunction(key);
218 idx = hashCode % table->args.capacity;
264 hashCode = table->args.hashFunction(key);
265 idx = hashCode % table->args.capacity;
277 unsigned int oldCapacity = table->args.capacity;
290 table->args.capacity = newCapacity;
291 table->threshold = (unsigned int)(newCapacity * table->args.maxLoadFactor);
348 hashCode = table->args.hashFunction(key);
349 idx = hashCode % table->args.capacity;
365 idx = hashCode % table->args.capacity;
437 hashCode = table->args.hashFunction(key);
438 idx = hashCode % table->args.capacity;
512 while (++idx < table->args.capacity)
524 for (idx = 0; idx < table->args.capacity; ++idx)