Searched refs:COND_SWAP (Results 1 – 2 of 2) sorted by relevance
189 #define COND_SWAP(n) (is_be ? be32toh(n) : le32toh(n)) macro224 if (COND_SWAP(hdr->magic) != ELFHINTS_MAGIC) in read_elf_hints()228 hdr_version = COND_SWAP(hdr->version); in read_elf_hints()233 strtab = (char *)mapbase + COND_SWAP(hdr->strtab); in read_elf_hints()234 dirlist = strtab + COND_SWAP(hdr->dirlist); in read_elf_hints()284 hdr.magic = COND_SWAP(ELFHINTS_MAGIC); in write_elf_hints()285 hdr.version = COND_SWAP(1); in write_elf_hints()286 hdr.strtab = COND_SWAP(sizeof hdr); in write_elf_hints()297 hdr.dirlistlen = COND_SWAP(hdr.strsize); in write_elf_hints()300 hdr.strsize = COND_SWAP(hdr.strsize); in write_elf_hints()
2059 #define COND_SWAP(n) (is_le ? le32toh(n) : be32toh(n)) in gethints() 2124 magic = COND_SWAP(hdr.magic); in gethints() 2125 version = COND_SWAP(hdr.version); in gethints() 2126 strtab = COND_SWAP(hdr.strtab); in gethints() 2127 dirlist = COND_SWAP(hdr.dirlist); in gethints() 2128 dirlistlen = COND_SWAP(hdr.dirlistlen); in gethints() 2048 #define COND_SWAP( global() macro