legacy_sources/v1/libparallel.c
/*----------------------------------------------------------*/
/* Element idx1 of type1 depends on element idx2 of type2	*/
/*----------------------------------------------------------*/
Element idx1 of type1 depends on element idx2 of type2
Element idx1 of type1 depends on element idx2 of type2
void AddDependency(int idx1, int idx2)
{
	WrkSct *wrk;
	wrk = &par->CurTyp->WrkTab[ (idx1-1) / WrkSiz ];
	if(!GetBit(wrk->dep, (idx2-1) / DepSiz ))
	{
		SetBit(wrk->dep, (idx2-1) / DepSiz );
		wrk->NmbBit++;
	}
}
void AddDependency ( int idx1 , int idx2 ) { WrkSct * wrk ; wrk = & par -> CurTyp -> WrkTab [ ( idx1 - 1 ) / WrkSiz ] ; if ( ! GetBit ( wrk -> dep , ( idx2 - 1 ) / DepSiz ) ) { SetBit ( wrk -> dep , ( idx2 - 1 ) / DepSiz ) ; wrk -> NmbBit ++ ; } }
Element idx1 of type1 depends on element idx2 of type2
Element idx1 of type1 depends on element idx2 of type2
/* Set and count dependency bit */