direct.c
/* Compare two box indices for sorting and searching. */
Compare two box indices for sorting and searching.
Compare two box indices for sorting and searching .
int idxcomp (const void *vl, const void *vr) {
	int *bl = (int *)vl, *br = (int *)vr;
	if (bl[0] != br[0]) return bl[0] - br[0];
	if (bl[1] != br[1]) return bl[1] - br[1];
	return bl[2] - br[2];
}
int idxcomp ( const void * vl , const void * vr ) { int * bl = ( int * ) vl , * br = ( int * ) vr ; if ( bl [ 0 ] != br [ 0 ] ) return bl [ 0 ] - br [ 0 ] ; if ( bl [ 1 ] != br [ 1 ] ) return bl [ 1 ] - br [ 1 ] ; return bl [ 2 ] - br [ 2 ] ; }
Compare two box indices for sorting and searching.
Compare two box indices for sorting and searching .