legacy_sources/v1/libparallel.c
/*----------------------------------------------------------*/
/* Compare two workpackages number of bits					*/
/*----------------------------------------------------------*/
Compare two workpackages number of bits
Compare two workpackages number of bits
int CmpWrk(const void *ptr1, const void *ptr2)
{
	WrkSct *w1, *w2;
	w1 = (WrkSct *)ptr1;
	w2 = (WrkSct *)ptr2;
	if(w1->NmbBit > w2->NmbBit)
		return(-1);
	else if(w1->NmbBit < w2->NmbBit)
		return(1);
	else
		return(0);
}
int CmpWrk ( const void * ptr1 , const void * ptr2 ) { WrkSct * w1 , * w2 ; w1 = ( WrkSct * ) ptr1 ; w2 = ( WrkSct * ) ptr2 ; if ( w1 -> NmbBit > w2 -> NmbBit ) return ( -1 ) ; else if ( w1 -> NmbBit < w2 -> NmbBit ) return ( 1 ) ; else return ( 0 ) ; }
Compare two workpackages number of bits
Compare two workpackages number of bits