diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2010-11-01 01:35:04 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2010-11-01 01:35:04 -0700 |
commit | 6130e39b18b5f53902e4eab14f6d5cdde5219563 (patch) | |
tree | 0db0628479a1b750e9af1f66cb8379ebd0913d31 /src/bdd/cudd/cuddLCache.c | |
parent | f0e77f6797c0504b0da25a56152b707d3357f386 (diff) | |
download | abc-6130e39b18b5f53902e4eab14f6d5cdde5219563.tar.gz abc-6130e39b18b5f53902e4eab14f6d5cdde5219563.tar.bz2 abc-6130e39b18b5f53902e4eab14f6d5cdde5219563.zip |
initial commit of public abc
Diffstat (limited to 'src/bdd/cudd/cuddLCache.c')
-rw-r--r-- | src/bdd/cudd/cuddLCache.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/bdd/cudd/cuddLCache.c b/src/bdd/cudd/cuddLCache.c index 97546cda..bf6af8bd 100644 --- a/src/bdd/cudd/cuddLCache.c +++ b/src/bdd/cudd/cuddLCache.c @@ -48,6 +48,9 @@ #include "util_hack.h" #include "cuddInt.h" +ABC_NAMESPACE_IMPL_START + + /*---------------------------------------------------------------------------*/ /* Constant declarations */ /*---------------------------------------------------------------------------*/ @@ -658,7 +661,7 @@ cuddHashTableInsert( is an entry for the given key in the table; NULL otherwise. If the entry is present, its reference counter is decremented if not saturated. If the counter reaches 0, the value of the entry is - dereferenced, and the entry is returned to the ABC_FREE list.] + dereferenced, and the entry is returned to the free list.] SideEffects [None] @@ -1071,7 +1074,7 @@ cuddLocalCacheResize( int i, shift; unsigned int posn; unsigned int slots, oldslots; - extern void (*MMoutOfMemory)(long); +// extern void (*MMoutOfMemory)(long); void (*saveHandler)(long); olditem = cache->item; @@ -1261,7 +1264,7 @@ cuddHashTableResize( #endif int shift; int oldNumBuckets = hash->numBuckets; - extern void (*MMoutOfMemory)(long); +// extern void (*MMoutOfMemory)(long); void (*saveHandler)(long); /* Compute the new size of the table. */ @@ -1362,7 +1365,7 @@ cuddHashTableAlloc( { int i; unsigned int itemsize = hash->itemsize; - extern void (*MMoutOfMemory)(long); +// extern void (*MMoutOfMemory)(long); void (*saveHandler)(long); #ifdef __osf__ #pragma pointer_size save @@ -1384,7 +1387,7 @@ cuddHashTableAlloc( hash->manager->stash = NULL; /* Inhibit resizing of tables. */ hash->manager->maxCacheHard = hash->manager->cacheSlots - 1; - hash->manager->cacheSlack = -(hash->manager->cacheSlots + 1); + hash->manager->cacheSlack = -(int)(hash->manager->cacheSlots + 1); for (i = 0; i < hash->manager->size; i++) { hash->manager->subtables[i].maxKeys <<= 2; } @@ -1426,3 +1429,5 @@ cuddHashTableAlloc( return(item); } /* end of cuddHashTableAlloc */ +ABC_NAMESPACE_IMPL_END + |