Go to the source code of this file.
Macros | |
#define | DEBUGF(x) /*printf x;*/ |
#define | copyKey(dest, src) memcpy(dest,src,layout.keySize()) |
#define | copyObj(dest, src) memcpy(dest,src,layout.objectSize()) |
#define | copyEntry(dest, src) memcpy(dest,src,layout.entrySize()) |
#define | e2i(entry) (((entry)-table)/layout.entrySize()) |
#define | CDECL extern "C" |
Functions | |
void | CmiAbort (const char *msg) |
CkHashCode | CkHashFunction_default (const void *keyData, size_t keyLen) |
CkHashCode | CkHashFunction_string (const void *keyData, size_t keyLen) |
int | CkHashCompare_default (const void *key1, const void *key2, size_t keyLen) |
int | CkHashCompare_string (const void *key1, const void *key2, size_t keyLen) |
static unsigned int | primeLargerThan (unsigned int x) |
CDECL CkHashtable_c | CkCreateHashtable_int (int objBytes, int initSize) |
CDECL CkHashtable_c | CkCreateHashtable_string (int objBytes, int initSize) |
CDECL void | CkDeleteHashtable (CkHashtable_c h) |
CDECL void * | CkHashtablePut (CkHashtable_c h, const void *atKey) |
CDECL void * | CkHashtableGet (CkHashtable_c h, const void *fromKey) |
CDECL void | CkHashtableRemove (CkHashtable_c h, const void *doomedKey) |
Variables | |
static const unsigned int | doublingPrimes [] |
#define CDECL extern "C" |
Definition at line 418 of file hash_table.cpp.
#define copyEntry | ( | dest, | |
src | |||
) | memcpy(dest,src,layout.entrySize()) |
Definition at line 128 of file hash_table.cpp.
#define copyKey | ( | dest, | |
src | |||
) | memcpy(dest,src,layout.keySize()) |
Definition at line 126 of file hash_table.cpp.
#define copyObj | ( | dest, | |
src | |||
) | memcpy(dest,src,layout.objectSize()) |
Definition at line 127 of file hash_table.cpp.
Definition at line 72 of file hash_table.cpp.
Referenced by CkHashCompare_default(), CkHashCompare_string(), CkHashFunction_default(), and CkHashFunction_string().
#define e2i | ( | entry | ) | (((entry)-table)/layout.entrySize()) |
CDECL CkHashtable_c CkCreateHashtable_int | ( | int | objBytes, |
int | initSize | ||
) |
Definition at line 421 of file hash_table.cpp.
CDECL CkHashtable_c CkCreateHashtable_string | ( | int | objBytes, |
int | initSize | ||
) |
Definition at line 430 of file hash_table.cpp.
References CkHashCompare_string(), and CkHashFunction_string().
CDECL void CkDeleteHashtable | ( | CkHashtable_c | h | ) |
Definition at line 438 of file hash_table.cpp.
int CkHashCompare_default | ( | const void * | key1, |
const void * | key2, | ||
size_t | keyLen | ||
) |
Definition at line 102 of file hash_table.cpp.
int CkHashCompare_string | ( | const void * | key1, |
const void * | key2, | ||
size_t | keyLen | ||
) |
Definition at line 112 of file hash_table.cpp.
References DEBUGF.
Referenced by CkCreateHashtable_string().
CkHashCode CkHashFunction_default | ( | const void * | keyData, |
size_t | keyLen | ||
) |
Definition at line 76 of file hash_table.cpp.
CkHashCode CkHashFunction_string | ( | const void * | keyData, |
size_t | keyLen | ||
) |
Definition at line 88 of file hash_table.cpp.
Referenced by CkCreateHashtable_string().
CDECL void* CkHashtableGet | ( | CkHashtable_c | h, |
const void * | fromKey | ||
) |
Definition at line 449 of file hash_table.cpp.
CDECL void* CkHashtablePut | ( | CkHashtable_c | h, |
const void * | atKey | ||
) |
Definition at line 443 of file hash_table.cpp.
CDECL void CkHashtableRemove | ( | CkHashtable_c | h, |
const void * | doomedKey | ||
) |
Definition at line 454 of file hash_table.cpp.
void CmiAbort | ( | const char * | msg | ) |
Definition at line 68 of file hash_table.cpp.
|
static |
|
static |
Definition at line 345 of file hash_table.cpp.