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

⟦9d275f34d⟧ TextFile

    Length: 463 (0x1cf)
    Types: TextFile
    Names: »xwrap.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Empire.V/V1.1/EMPSUBS/xwrap.c« 

TextFile

extern  int     w_xsize, w_ysize;

xwrap(x)
int     x;
{
        register int    q, wxh;

        wxh = w_xsize;
        wxh >>= 1;
        q = x;
        q += wxh;
        while( q <= 0 ) q += w_xsize;
        return(((q-1)%w_xsize) + 1 - wxh );
}

ywrap(y)
int     y;
{
        register int    q, wyh;

        wyh = w_ysize;
        wyh >>= 1;
        q = y;
        q += wyh;
        while( q <= 0 ) q += w_ysize;
        return(((q-1)%w_ysize) + 1 - wyh);
}