summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-06-22 23:05:02 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-06-22 23:05:02 -0700
commitb288bac6b3567c0eccde1cb3ed1b6f7eff1d6408 (patch)
treedd9db86011e5121f4d2515c0839d5a2d477c459a /src/misc
parentda65e88e3b346bcd70198b980e918ea9f1e11b4e (diff)
downloadabc-b288bac6b3567c0eccde1cb3ed1b6f7eff1d6408.tar.gz
abc-b288bac6b3567c0eccde1cb3ed1b6f7eff1d6408.tar.bz2
abc-b288bac6b3567c0eccde1cb3ed1b6f7eff1d6408.zip
Version abc90807
committer: Baruch Sterin <baruchs@gmail.com>
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/nm/nmApi.c3
-rw-r--r--src/misc/vec/vecPtr.h21
2 files changed, 23 insertions, 1 deletions
diff --git a/src/misc/nm/nmApi.c b/src/misc/nm/nmApi.c
index 7f7cbb97..0d79a84c 100644
--- a/src/misc/nm/nmApi.c
+++ b/src/misc/nm/nmApi.c
@@ -118,7 +118,8 @@ char * Nm_ManStoreIdName( Nm_Man_t * p, int ObjId, int Type, char * pName, char
}
// create a new entry
nEntrySize = sizeof(Nm_Entry_t) + strlen(pName) + (pSuffix?strlen(pSuffix):0) + 1;
- nEntrySize = (nEntrySize / 4 + ((nEntrySize % 4) > 0)) * 4;
+// nEntrySize = (nEntrySize / 4 + ((nEntrySize % 4) > 0)) * 4;
+ nEntrySize = (nEntrySize / 8 + ((nEntrySize % 8) > 0)) * 8;
pEntry = (Nm_Entry_t *)Extra_MmFlexEntryFetch( p->pMem, nEntrySize );
pEntry->pNextI2N = pEntry->pNextN2I = pEntry->pNameSake = NULL;
pEntry->ObjId = ObjId;
diff --git a/src/misc/vec/vecPtr.h b/src/misc/vec/vecPtr.h
index 3f958b6f..7b153d90 100644
--- a/src/misc/vec/vecPtr.h
+++ b/src/misc/vec/vecPtr.h
@@ -465,6 +465,27 @@ static inline void Vec_PtrClear( Vec_Ptr_t * p )
/**Function*************************************************************
+ Synopsis [Deallocates array of memory pointers.]
+
+ Description []
+
+ SideEffects []
+
+ SeeAlso []
+
+***********************************************************************/
+static inline void Vec_PtrFreeFree( Vec_Ptr_t * p )
+{
+ void * pTemp;
+ int i;
+ if ( p == NULL ) return;
+ Vec_PtrForEachEntry( p, pTemp, i )
+ ABC_FREE( pTemp );
+ Vec_PtrFree( p );
+}
+
+/**Function*************************************************************
+
Synopsis [Copies the interger array.]
Description []