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

Subversion Repositories thor

[/] [thor/] [trunk/] [FT64v5/] [software/] [AS64/] [source/] [HT.H] - Rev 48

Compare with Previous | Blame | View Log

#ifndef HT_H

typedef struct {
   unsigned int hash;
   unsigned int delta;
} SHashVal;

typedef struct {
   SHashVal (*Hash)(void *);
   int (*IsEqual)(const void *, const void*);   // Must return 0 if hash entry = entry search for
   int  (*IsEqualName)(char *, const void *);
   int size;
   int width;
   void *table;
} SHashTbl;

void *htFind(SHashTbl *, void *);
void *htFind2(SHashTbl *, char *);
void *htDelete(SHashTbl *, void *);
void *htInsert(SHashTbl *, void *);
SHashVal htSymHash(SHashTbl *, char *);
#define HT_H
#endif

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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