Searched refs:ByteSwap_32 (Results 1 – 9 of 9) sorted by relevance
152 header.magic = llvm::ByteSwap_32(header.magic); in GetDynamicLoaderAddress()153 header.cputype = llvm::ByteSwap_32(header.cputype); in GetDynamicLoaderAddress()154 header.cpusubtype = llvm::ByteSwap_32(header.cpusubtype); in GetDynamicLoaderAddress()155 header.filetype = llvm::ByteSwap_32(header.filetype); in GetDynamicLoaderAddress()156 header.ncmds = llvm::ByteSwap_32(header.ncmds); in GetDynamicLoaderAddress()157 header.sizeofcmds = llvm::ByteSwap_32(header.sizeofcmds); in GetDynamicLoaderAddress()158 header.flags = llvm::ByteSwap_32(header.flags); in GetDynamicLoaderAddress()
134 TEST(MathExtras, ByteSwap_32) { in TEST() argument135 EXPECT_EQ(0x44332211u, ByteSwap_32(0x11223344)); in TEST()136 EXPECT_EQ(0xDDCCBBAAu, ByteSwap_32(0xAABBCCDD)); in TEST()
97 else if (Header->Magic == llvm::ByteSwap_32(HMAP_HeaderMagicNumber) && in Create()121 return llvm::ByteSwap_32(X); in getEndianAdjustedWord()
413 header.magic = llvm::ByteSwap_32(header.magic); in CheckForKernelImageAtAddress()414 header.cputype = llvm::ByteSwap_32(header.cputype); in CheckForKernelImageAtAddress()415 header.cpusubtype = llvm::ByteSwap_32(header.cpusubtype); in CheckForKernelImageAtAddress()416 header.filetype = llvm::ByteSwap_32(header.filetype); in CheckForKernelImageAtAddress()417 header.ncmds = llvm::ByteSwap_32(header.ncmds); in CheckForKernelImageAtAddress()418 header.sizeofcmds = llvm::ByteSwap_32(header.sizeofcmds); in CheckForKernelImageAtAddress()419 header.flags = llvm::ByteSwap_32(header.flags); in CheckForKernelImageAtAddress()
49 *(uint32_t *)(ptr + offset) = llvm::ByteSwap_32(value); in WriteSwappedInt32()
88 return llvm::ByteSwap_32(*(uint32_t *)(ptr + offset)); in ReadSwapInt32()105 return llvm::ByteSwap_32(*(uint32_t *)(ptr)); in ReadSwapInt32()
519 Value = ByteSwap_32(unsigned(Value)); in applyFixup()
368 inline uint32_t ByteSwap_32(uint32_t Value) {
795 return APInt(BitWidth, ByteSwap_32(unsigned(VAL))); in byteSwap()798 Tmp1 = ByteSwap_32(Tmp1); in byteSwap()