flip
table = (struct mosysdepstr *)(base + flip(ofstable[i], magic));
while (flip(table->segs[count++].ref, magic) != MO_LASTSEG)
table_h[i]->off = (const char *)(base + flip(table->off, magic));
flip(table->segs[j].len, magic);
flip(table->segs[j].ref, magic);
mohandle->mo.mo_sysdep_nsegs = flip(mo->mo_sysdep_nsegs, magic);
mohandle->mo.mo_sysdep_nstring = flip(mo->mo_sysdep_nstring, magic);
stable = (struct moentry *)(base + flip(mo->mo_sysdep_segoff, magic));
v = base + flip(stable[i].off, magic);
ofstable = (uint32_t *)(base + flip(mo->mo_sysdep_otable, magic));
ofstable = (uint32_t *)(base + flip(mo->mo_sysdep_ttable, magic));
switch (flip(revision, magic)) {
mohandle->mo.mo_revision = flip(mo->mo_revision, magic);
mohandle->mo.mo_nstring = flip(mo->mo_nstring, magic);
mohandle->mo.mo_hsize = flip(mo->mo_hsize, magic);
otable = (struct moentry *)(base + flip(mo->mo_otable, magic));
ttable = (struct moentry *)(base + flip(mo->mo_ttable, magic));
p[i].len = flip(otable[i].len, magic);
p[i].off = base + flip(otable[i].off, magic);
p[i].len = flip(ttable[i].len, magic);
p[i].off = base + flip(ttable[i].off, magic);
static uint32_t flip(uint32_t, uint32_t);
htable = (const uint32_t *)(base+flip(mo->mo_hoffset, magic));
mohandle->mo.mo_htable[i] = flip(htable[i], magic);
static const uint8_t flip[256] = {
half = (flip[msk] << 8) | flip[img];
static const uint8_t flip[256] = {
half = (flip[img] << 8) | flip[msk];
int i, flip, clr, set;
flip = 0;
flip = 0200; /* reverse bit 7 */
partab[i] = ((evenpartab[i] ^ flip) | set) & clr;
addunit(struct unittype * theunit, const char *toadd, int flip)
if (doingtop ^ flip)
if (doingtop ^ flip)
if (doingtop ^ flip)
flipthis ^= doingtop ^ flip;
reduceproduct(struct unittype * theunit, int flip)
if (flip)
if (addunit(theunit, toadd, flip))