|
#define | st__NUMCMP(x, y) ((x) != (y)) |
|
#define | st__NUMHASH(x, size) (Abc_AbsInt((long)x)%(size)) |
|
#define | st__PTRHASH(x, size) ((int)(((ABC_PTRUINT_T)(x)>>2)%size)) |
|
#define | EQUAL(func, x, y) |
|
#define | do_hash(key, table) |
|
#define | PTR_NOT_EQUAL(table, ptr, user_key) (ptr != NULL && !EQUAL(table->compare, user_key, (ptr)->key)) |
|
#define | FIND_ENTRY(table, hash_val, key, ptr, last) |
|
#define | ADD_DIRECT(table, key, value, hash_val, new) |
|
|
static int | rehash (st__table *table) |
|
int | st__numhash (const char *, int) |
|
int | st__ptrhash (const char *, int) |
|
int | st__numcmp (const char *, const char *) |
|
int | st__ptrcmp (const char *, const char *) |
|
st__table * | st__init_table_with_params (st__compare_func_type compare, st__hash_func_type hash, int size, int density, double grow_factor, int reorder_flag) |
|
st__table * | st__init_table (st__compare_func_type compare, st__hash_func_type hash) |
|
void | st__free_table (st__table *table) |
|
int | st__lookup (st__table *table, const char *key, char **value) |
|
int | st__lookup_int (st__table *table, char *key, int *value) |
|
int | st__insert (st__table *table, const char *key, char *value) |
|
int | st__add_direct (st__table *table, char *key, char *value) |
|
int | st__find_or_add (st__table *table, char *key, char ***slot) |
|
int | st__find (st__table *table, char *key, char ***slot) |
|
st__table * | st__copy (st__table *old_table) |
|
int | st__delete (st__table *table, const char **keyp, char **value) |
|
int | st__delete_int (st__table *table, long *keyp, char **value) |
|
int | st__foreach (st__table *table, enum st__retval(*func)(char *, char *, char *), char *arg) |
|
int | st__strhash (const char *string, int modulus) |
|
st__generator * | st__init_gen (st__table *table) |
|
int | st__gen (st__generator *gen, const char **key_p, char **value_p) |
|
int | st__gen_int (st__generator *gen, const char **key_p, long *value_p) |
|
void | st__free_gen (st__generator *gen) |
|