#include "eg_macros.h"
#include "eg_listint.h"
#include <limits.h>
#include <inttypes.h>
Include dependency graph for eg_hash.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | EGhash_t |
| struct | EGhashList_t |
| struct | EGhashListNode__ |
Defines | |
| #define | EGhashFunction(key, maxsize, vptr) |
| #define | EGnewHash(A, B) __EGnewHash(A,B,__FILE__,__LINE__); |
Typedefs | |
| typedef EGhashListNode_t | EGhashData_t |
| typedef EGhashListNode__ | EGhashListNode_t |
| typedef uint64_t | EGkey_t |
Functions | |
| EGhash_t * | __EGnewHash (size_t maxsize, EGmemPool_t *mempool, const char *file, const int line) |
| void | EGfreeHash (void *hash) |
| void | EGhashClear (EGhash_t *hash, EGfree_f dataFree) |
| int | EGhashDisplay (const EGhash_t *hash, FILE *logFile) |
| int | EGhashErase (EGhash_t *, EGkey_t) |
| EGhashData_t * | EGhashFind (const EGhash_t *hash, const EGkey_t key) |
| int | EGhashInsert (EGhash_t *hash, const EGkey_t key, void *data) |
| void | EGhashTest (void) |
Variables | |
| EGkey_t | EGhashA |
| EGkey_t | EGhashB |
| EGkey_t | EGhashPrime |
|
|
Value: {*(vptr) = ((unsigned int)( \
(((EGkey_t)(key)) * EGhashB + EGhashA )% EGhashPrime)) % (maxsize);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Definition at line 141 of file eg_hash.c. Here is the call graph for this function: ![]() |
|
|
Definition at line 261 of file eg_hash.c. Here is the call graph for this function: ![]() |
|
|
|
|
|
|
|
|
|
1.4.5