Lines Matching defs:flip
69 static uint32_t flip(uint32_t, uint32_t);
355 flip(uint32_t v, uint32_t magic)
414 table = (struct mosysdepstr *)(base + flip(ofstable[i], magic));
417 while (flip(table->segs[count++].ref, magic) != MO_LASTSEG)
426 table_h[i]->off = (const char *)(base + flip(table->off, magic));
429 flip(table->segs[j].len, magic);
431 flip(table->segs[j].ref, magic);
507 mohandle->mo.mo_sysdep_nsegs = flip(mo->mo_sysdep_nsegs, magic);
508 mohandle->mo.mo_sysdep_nstring = flip(mo->mo_sysdep_nstring, magic);
525 stable = (struct moentry *)(base + flip(mo->mo_sysdep_segoff, magic));
527 v = base + flip(stable[i].off, magic);
541 ofstable = (uint32_t *)(base + flip(mo->mo_sysdep_otable, magic));
552 ofstable = (uint32_t *)(base + flip(mo->mo_sysdep_ttable, magic));
613 switch (flip(revision, magic)) {
636 /* flip endian. do not flip magic number! */
638 mohandle->mo.mo_revision = flip(mo->mo_revision, magic);
639 mohandle->mo.mo_nstring = flip(mo->mo_nstring, magic);
640 mohandle->mo.mo_hsize = flip(mo->mo_hsize, magic);
645 otable = (struct moentry *)(base + flip(mo->mo_otable, magic));
647 ttable = (struct moentry *)(base + flip(mo->mo_ttable, magic));
673 p[i].len = flip(otable[i].len, magic);
674 p[i].off = base + flip(otable[i].off, magic);
684 p[i].len = flip(ttable[i].len, magic);
685 p[i].off = base + flip(ttable[i].off, magic);
702 htable = (const uint32_t *)(base+flip(mo->mo_hoffset, magic));
704 mohandle->mo.mo_htable[i] = flip(htable[i], magic);