Searched refs:COND_SWAP (Results 1 – 2 of 2) sorted by relevance
189 #define COND_SWAP(n) (is_be ? be32toh(n) : le32toh(n)) macro 224 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(hd in write_elf_hints() [all...]
2067 #define COND_SWAP(n) (is_le ? le32toh(n) : be32toh(n)) macro2132 magic = COND_SWAP(hdr.magic); in gethints()2133 version = COND_SWAP(hdr.version); in gethints()2134 strtab = COND_SWAP(hdr.strtab); in gethints()2135 dirlist = COND_SWAP(hdr.dirlist); in gethints()2136 dirlistlen = COND_SWAP(hdr.dirlistlen); in gethints()