OpenCores
URL https://opencores.org/ocsvn/thor/thor/trunk

Subversion Repositories thor

[/] [thor/] [trunk/] [FT64v5/] [software/] [AS64/] [source/] [HT.H] - Blame information for rev 48

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 48 robfinch
#ifndef HT_H
2
 
3
typedef struct {
4
   unsigned int hash;
5
   unsigned int delta;
6
} SHashVal;
7
 
8
typedef struct {
9
   SHashVal (*Hash)(void *);
10
   int (*IsEqual)(const void *, const void*);   // Must return 0 if hash entry = entry search for
11
   int  (*IsEqualName)(char *, const void *);
12
   int size;
13
   int width;
14
   void *table;
15
} SHashTbl;
16
 
17
void *htFind(SHashTbl *, void *);
18
void *htFind2(SHashTbl *, char *);
19
void *htDelete(SHashTbl *, void *);
20
void *htInsert(SHashTbl *, void *);
21
SHashVal htSymHash(SHashTbl *, char *);
22
#define HT_H
23
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.