diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2014-04-14 09:06:14 -0500 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2014-04-14 09:06:14 -0500 |
commit | 02cf86939178ce0f95b98a4c7b432d4375a872e5 (patch) | |
tree | 2050cb947436114aa3fd7f4edb0d66bbb3109d38 /src/map/if/ifMan.c | |
parent | 5cd9145046219f25d6d2ba2d746fcd7bb9531ef2 (diff) | |
download | abc-02cf86939178ce0f95b98a4c7b432d4375a872e5.tar.gz abc-02cf86939178ce0f95b98a4c7b432d4375a872e5.tar.bz2 abc-02cf86939178ce0f95b98a4c7b432d4375a872e5.zip |
Changes in the LUT mapper data-structures.
Diffstat (limited to 'src/map/if/ifMan.c')
-rw-r--r-- | src/map/if/ifMan.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/src/map/if/ifMan.c b/src/map/if/ifMan.c index c13fc57a..633f7695 100644 --- a/src/map/if/ifMan.c +++ b/src/map/if/ifMan.c @@ -419,26 +419,6 @@ void If_ManCreateChoice( If_Man_t * p, If_Obj_t * pObj ) /**Function************************************************************* - Synopsis [Prepares memory for one cut.] - - Description [] - - SideEffects [] - - SeeAlso [] - -***********************************************************************/ -void If_ManSetupCut( If_Man_t * p, If_Cut_t * pCut ) -{ - memset( pCut, 0, sizeof(If_Cut_t) ); - pCut->nLimit = p->pPars->nLutSize; - pCut->pLeaves = (int *)(pCut + 1); - if ( p->pPars->fUsePerm ) - pCut->pPerm = (char *)(pCut->pLeaves + p->pPars->nLutSize); -} - -/**Function************************************************************* - Synopsis [Prepares memory for one cutset.] Description [] @@ -459,7 +439,7 @@ void If_ManSetupSet( If_Man_t * p, If_Set_t * pSet ) for ( i = 0; i <= pSet->nCutsMax; i++ ) { pSet->ppCuts[i] = (If_Cut_t *)(pArray + i * p->nCutBytes); - If_ManSetupCut( p, pSet->ppCuts[i] ); + If_CutSetup( p, pSet->ppCuts[i] ); } // pArray += (pSet->nCutsMax + 1) * p->nCutBytes; // assert( ((char *)pArray) - ((char *)pSet) == p->nSetBytes ); @@ -505,7 +485,7 @@ If_Obj_t * If_ManSetupObj( If_Man_t * p ) // get memory for the object pObj = (If_Obj_t *)Mem_FixedEntryFetch( p->pMemObj ); memset( pObj, 0, sizeof(If_Obj_t) ); - If_ManSetupCut( p, &pObj->CutBest ); + If_CutSetup( p, &pObj->CutBest ); // assign ID and save pObj->Id = Vec_PtrSize(p->vObjs); Vec_PtrPush( p->vObjs, pObj ); |