diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2008-02-07 08:01:00 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2008-02-07 08:01:00 -0800 |
commit | 5a6924060bffb688101f54711f967305fc3fa480 (patch) | |
tree | 388d896072828c76216de12f3fdac7775f6160f7 /src/misc/vec/vecPtr.h | |
parent | 7174787abafe80437892b55a53f994da85a37342 (diff) | |
download | abc-5a6924060bffb688101f54711f967305fc3fa480.tar.gz abc-5a6924060bffb688101f54711f967305fc3fa480.tar.bz2 abc-5a6924060bffb688101f54711f967305fc3fa480.zip |
Version abc80207
Diffstat (limited to 'src/misc/vec/vecPtr.h')
-rw-r--r-- | src/misc/vec/vecPtr.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/misc/vec/vecPtr.h b/src/misc/vec/vecPtr.h index 9595bc72..df06168c 100644 --- a/src/misc/vec/vecPtr.h +++ b/src/misc/vec/vecPtr.h @@ -705,6 +705,24 @@ static inline void Vec_PtrCleanSimInfo( Vec_Ptr_t * vInfo, int iWord, int nWords /**Function************************************************************* + Synopsis [Cleans simulation info of each entry beginning with iWord.] + + Description [] + + SideEffects [] + + SeeAlso [] + +***********************************************************************/ +static inline void Vec_PtrFillSimInfo( Vec_Ptr_t * vInfo, int iWord, int nWords ) +{ + int i; + for ( i = 0; i < vInfo->nSize; i++ ) + memset( (char*)Vec_PtrEntry(vInfo,i) + 4*iWord, 0xFF, 4*(nWords-iWord) ); +} + +/**Function************************************************************* + Synopsis [Resizes the array of simulation info.] Description [Doubles the number of objects for which siminfo is allocated.] |