ABC: A System for Sequential Synthesis and Verification
 
Loading...
Searching...
No Matches
hashPtr.h File Reference
#include <stdio.h>
#include "misc/extra/extra.h"
Include dependency graph for hashPtr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Hash_Ptr_Entry_t_
 
struct  Hash_Ptr_t_
 

Macros

#define Hash_PtrForEachEntry(pHash, pEntry, bin)
 MACRO DEFINITIONS ///.
 

Typedefs

typedef struct Hash_Ptr_t_ Hash_Ptr_t
 PARAMETERS ///.
 
typedef struct Hash_Ptr_Entry_t_ Hash_Ptr_Entry_t
 

Functions

ABC_NAMESPACE_HEADER_START int Hash_DefaultHashFunc (int key, int nBins)
 INCLUDES ///.
 

Macro Definition Documentation

◆ Hash_PtrForEachEntry

#define Hash_PtrForEachEntry ( pHash,
pEntry,
bin )
Value:
for(bin=-1, pEntry=NULL; bin < pHash->nBins; (!pEntry)?(pEntry=pHash->pArray[++bin]):(pEntry=pEntry->pNext)) \
if (pEntry)

MACRO DEFINITIONS ///.

Definition at line 69 of file hashPtr.h.

69#define Hash_PtrForEachEntry( pHash, pEntry, bin ) \
70 for(bin=-1, pEntry=NULL; bin < pHash->nBins; (!pEntry)?(pEntry=pHash->pArray[++bin]):(pEntry=pEntry->pNext)) \
71 if (pEntry)

Typedef Documentation

◆ Hash_Ptr_Entry_t

Definition at line 46 of file hashPtr.h.

◆ Hash_Ptr_t

typedef struct Hash_Ptr_t_ Hash_Ptr_t

PARAMETERS ///.

BASIC TYPES ///

Definition at line 45 of file hashPtr.h.

Function Documentation

◆ Hash_DefaultHashFunc()

ABC_NAMESPACE_HEADER_START int Hash_DefaultHashFunc ( int key,
int nBins )
extern

INCLUDES ///.

CFile****************************************************************

FileName [hashFlt.h]

SystemName [ABC: Logic synthesis and verification system.]

PackageName [Hash maps.]

Synopsis [Hash maps.]

Author [Aaron P. Hurst]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - May 16, 2006.]

Revision [

Id
vecInt.h,v 1.00 2005/06/20 00:00:00 ahurst Exp

]

CFile****************************************************************

FileName [hash.h]

SystemName [ABC: Logic synthesis and verification system.]

PackageName [Hash map.]

Synopsis [External declarations.]

Author [Aaron P. Hurst]

Affiliation [UC Berkeley]

Date [Ver. 1.0. Started - May 16, 2005.]

Revision [

Id
vec.h,v 1.00 2005/06/20 00:00:00 ahurst Exp

] PARAMETERS /// BASIC TYPES /// MACRO DEFINITIONS /// FUNCTION DECLARATIONS ///

Definition at line 57 of file hash.h.

57 {
58 return Abc_AbsInt( ( (key+11)*(key)*7+3 ) % nBins );
59}
enum keys key
Definition main.h:25