DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦8ff2cb0fb⟧ TextFile

    Length: 173 (0xad)
    Types: TextFile
    Names: »logaux.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Nobs/logaux.c« 

TextFile

#include "defs.h"

int
cindex(a, b)
CARD a, b;
{
	register t, u;
	t = RANK(a);
	u = RANK(b);
	if (t < u) {
		t = RANK(b);
		u = RANK(a);
	}
	return u - 1 + (t * (t-1))/2;
}