Home
last modified time | relevance | path

Searched refs:Magic (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/external/llvm-project/llvm/lib/BinaryFormat/
DMagic.cpp30 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument
31 return Magic.startswith(StringRef(S, N - 1)); in startswith()
35 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() argument
36 if (Magic.size() < 4) in identify_magic()
38 switch ((unsigned char)Magic[0]) { in identify_magic()
41 if (startswith(Magic, "\0\0\xFF\xFF")) { in identify_magic()
44 if (Magic.size() < MinSize) in identify_magic()
47 const char *Start = Magic.data() + offsetof(COFF::BigObjHeader, UUID); in identify_magic()
55 if (Magic.size() >= sizeof(COFF::WinResMagic) && in identify_magic()
56 memcmp(Magic.data(), COFF::WinResMagic, sizeof(COFF::WinResMagic)) == 0) in identify_magic()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/
DMagic.cpp29 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument
30 return Magic.startswith(StringRef(S, N - 1)); in startswith()
34 file_magic llvm::identify_magic(StringRef Magic) { in identify_magic() argument
35 if (Magic.size() < 4) in identify_magic()
37 switch ((unsigned char)Magic[0]) { in identify_magic()
40 if (startswith(Magic, "\0\0\xFF\xFF")) { in identify_magic()
43 if (Magic.size() < MinSize) in identify_magic()
46 const char *Start = Magic.data() + offsetof(COFF::BigObjHeader, UUID); in identify_magic()
54 if (Magic.size() >= sizeof(COFF::WinResMagic) && in identify_magic()
55 memcmp(Magic.data(), COFF::WinResMagic, sizeof(COFF::WinResMagic)) == 0) in identify_magic()
[all …]
/external/llvm/lib/Support/
DPath.cpp982 file_magic identify_magic(StringRef Magic) { in identify_magic() argument
983 if (Magic.size() < 4) in identify_magic()
985 switch ((unsigned char)Magic[0]) { in identify_magic()
988 if (Magic[1] == (char)0x00 && Magic[2] == (char)0xff && in identify_magic()
989 Magic[3] == (char)0xff) { in identify_magic()
991 if (Magic.size() < MinSize) in identify_magic()
995 Magic.data() + offsetof(COFF::BigObjHeader, Version)); in identify_magic()
999 const char *Start = Magic.data() + offsetof(COFF::BigObjHeader, UUID); in identify_magic()
1006 if (Magic.size() >= sizeof(Expected) && in identify_magic()
1007 memcmp(Magic.data(), Expected, sizeof(Expected)) == 0) in identify_magic()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/
DMachO.cpp41 uint32_t Magic; in jitLink_MachO() local
42 memcpy(&Magic, Data.data(), sizeof(uint32_t)); in jitLink_MachO()
44 dbgs() << "jitLink_MachO: magic = " << format("0x%08" PRIx32, Magic) in jitLink_MachO()
49 if (Magic == MachO::MH_MAGIC || Magic == MachO::MH_CIGAM) { in jitLink_MachO()
53 } else if (Magic == MachO::MH_MAGIC_64 || Magic == MachO::MH_CIGAM_64) { in jitLink_MachO()
57 if (Magic == MachO::MH_CIGAM_64) in jitLink_MachO()
/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/
DMachO.cpp43 uint32_t Magic; in jitLink_MachO() local
44 memcpy(&Magic, Data.data(), sizeof(uint32_t)); in jitLink_MachO()
46 dbgs() << "jitLink_MachO: magic = " << format("0x%08" PRIx32, Magic) in jitLink_MachO()
51 if (Magic == MachO::MH_MAGIC || Magic == MachO::MH_CIGAM) { in jitLink_MachO()
55 } else if (Magic == MachO::MH_MAGIC_64 || Magic == MachO::MH_CIGAM_64) { in jitLink_MachO()
67 if (Magic == MachO::MH_CIGAM_64) in jitLink_MachO()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DPath.cpp984 static bool startswith(StringRef Magic, const char (&S)[N]) { in startswith() argument
985 return Magic.startswith(StringRef(S, N - 1)); in startswith()
989 file_magic identify_magic(StringRef Magic) { in identify_magic() argument
990 if (Magic.size() < 4) in identify_magic()
992 switch ((unsigned char)Magic[0]) { in identify_magic()
995 if (startswith(Magic, "\0\0\xFF\xFF")) { in identify_magic()
997 if (Magic.size() < MinSize) in identify_magic()
1000 const char *Start = Magic.data() + offsetof(COFF::BigObjHeader, UUID); in identify_magic()
1008 if (startswith(Magic, "\0\0\0\0\x20\0\0\0\xFF")) in identify_magic()
1011 if (Magic[1] == 0) in identify_magic()
[all …]
/external/llvm-project/llvm/lib/DebugInfo/GSYM/
DHeader.cpp25 OS << " Magic = " << HEX32(H.Magic) << "\n"; in operator <<()
42 if (Magic != GSYM_MAGIC) in checkForError()
44 "invalid GSYM magic 0x%8.8x", Magic); in checkForError()
71 H.Magic = Data.getU32(&Offset); in decode()
89 O.writeU32(Magic); in encode()
102 return LHS.Magic == RHS.Magic && LHS.Version == RHS.Version && in operator ==()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/GSYM/
DHeader.cpp25 OS << " Magic = " << HEX32(H.Magic) << "\n"; in operator <<()
42 if (Magic != GSYM_MAGIC) in checkForError()
44 "invalid GSYM magic 0x%8.8x", Magic); in checkForError()
71 H.Magic = Data.getU32(&Offset); in decode()
89 O.writeU32(Magic); in encode()
102 return LHS.Magic == RHS.Magic && LHS.Version == RHS.Version && in operator ==()
/external/llvm-project/llvm/tools/obj2yaml/
Darchive2yaml.cpp26 StringRef Magic = "!<arch>\n"; in dump() local
27 if (!Buffer.startswith(Magic)) in dump()
30 Obj->Magic = Magic; in dump()
31 Buffer = Buffer.drop_front(Magic.size()); in dump()
/external/llvm-project/llvm/lib/ToolDrivers/llvm-lib/
DLibDriver.cpp191 file_magic Magic = identify_magic(MB.getBuffer()); in appendFile() local
193 if (Magic != file_magic::coff_object && Magic != file_magic::bitcode && in appendFile()
194 Magic != file_magic::archive && Magic != file_magic::windows_resource && in appendFile()
195 Magic != file_magic::coff_import_library) { in appendFile()
206 if (Magic == file_magic::archive) { in appendFile()
235 if (Magic == file_magic::coff_object || Magic == file_magic::bitcode) { in appendFile()
236 COFF::MachineTypes FileMachine = (Magic == file_magic::coff_object) in appendFile()
/external/llvm-project/llvm/test/tools/llvm-readobj/MachO/
Dfile-headers.test10 # I386-NEXT: Magic: Magic (0xFEEDFACE)
41 # X86-64-NEXT: Magic: Magic64 (0xFEEDFACF)
74 # PPC-NEXT: Magic: Magic (0xFEEDFACE)
106 # PPC64-NEXT: Magic: Magic64 (0xFEEDFACF)
140 # ARM-NEXT: Magic: Magic (0xFEEDFACE)
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ToolDrivers/llvm-lib/
DLibDriver.cpp194 file_magic Magic = identify_magic(MB.getBuffer()); in appendFile() local
196 if (Magic != file_magic::coff_object && Magic != file_magic::bitcode && in appendFile()
197 Magic != file_magic::archive && Magic != file_magic::windows_resource) { in appendFile()
207 if (Magic == file_magic::archive) { in appendFile()
236 if (Magic == file_magic::coff_object || Magic == file_magic::bitcode) { in appendFile()
237 COFF::MachineTypes FileMachine = (Magic == file_magic::coff_object) in appendFile()
/external/tcpdump/tests/
DQinQpacketv.out6 Magic Cookie 0x63825363
19 Magic Cookie 0x63825363
33 Magic Cookie 0x63825363
46 Magic Cookie 0x63825363
59 Magic Cookie 0x63825363
72 Magic Cookie 0x63825363
85 Magic Cookie 0x63825363
98 Magic Cookie 0x63825363
116 Magic Cookie 0x63825363
129 Magic Cookie 0x63825363
[all …]
Ddhcp-rfc5859-v.out5 Magic Cookie 0x63825363
15 Magic Cookie 0x63825363
26 Magic Cookie 0x63825363
38 Magic Cookie 0x63825363
Ddhcp-rfc3004-v.out5 Magic Cookie 0x63825363
20 Magic Cookie 0x63825363
32 Magic Cookie 0x63825363
48 Magic Cookie 0x63825363
/external/llvm/lib/Object/
DMachOUniversal.cpp115 : Binary(Binary::ID_MachOUniversalBinary, Source), Magic(0), in MachOUniversalBinary()
128 Magic = H.magic; in MachOUniversalBinary()
131 if (Magic == MachO::FAT_MAGIC) in MachOUniversalBinary()
133 else if (Magic == MachO::FAT_MAGIC_64) in MachOUniversalBinary()
141 Twine(Magic == MachO::FAT_MAGIC ? "" : "_64") + in MachOUniversalBinary()
/external/llvm/lib/ProfileData/
DInstrProfReader.cpp257 uint64_t Magic = in hasFormat() local
259 return RawInstrProf::getMagic<IntPtrT>() == Magic || in hasFormat()
260 sys::getSwappedBytes(RawInstrProf::getMagic<IntPtrT>()) == Magic; in hasFormat()
271 ShouldSwapBytes = Header->Magic != RawInstrProf::getMagic<IntPtrT>(); in readHeader()
292 uint64_t Magic = *reinterpret_cast<const uint64_t *>(CurrentPos); in readNextHeader() local
293 if (Magic != swap(RawInstrProf::getMagic<IntPtrT>())) in readNextHeader()
570 uint64_t Magic = in hasFormat() local
573 return Magic == IndexedInstrProf::Magic; in hasFormat()
638 uint64_t Magic = endian::byte_swap<uint64_t, little>(Header->Magic); in readHeader() local
639 if (Magic != IndexedInstrProf::Magic) in readHeader()
/external/llvm-project/llvm/include/llvm/Remarks/
DRemarkFormat.h22 constexpr StringLiteral Magic("REMARKS");
31 Expected<Format> magicToFormat(StringRef Magic);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Remarks/
DRemarkFormat.h22 constexpr StringLiteral Magic("REMARKS");
31 Expected<Format> magicToFormat(StringRef Magic);
/external/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc322 inline static uintptr_t Magic(uintptr_t magic, AllocList::Header *ptr) { in Magic() function
360 Magic(kMagicUnallocated, &freelist.header); in Arena()
397 region->header.magic == Magic(kMagicUnallocated, &region->header), in DeleteArena()
458 next->header.magic == Magic(kMagicUnallocated, &next->header), in Next()
494 ABSL_RAW_CHECK(f->header.magic == Magic(kMagicAllocated, &f->header), in AddToFreelist()
502 f->header.magic = Magic(kMagicUnallocated, &f->header); in AddToFreelist()
578 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
590 n->header.magic = Magic(kMagicAllocated, &n->header); in DoAllocWithArena()
595 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc322 inline static uintptr_t Magic(uintptr_t magic, AllocList::Header *ptr) { in Magic() function
360 Magic(kMagicUnallocated, &freelist.header); in Arena()
397 region->header.magic == Magic(kMagicUnallocated, &region->header), in DeleteArena()
458 next->header.magic == Magic(kMagicUnallocated, &next->header), in Next()
494 ABSL_RAW_CHECK(f->header.magic == Magic(kMagicAllocated, &f->header), in AddToFreelist()
502 f->header.magic = Magic(kMagicUnallocated, &f->header); in AddToFreelist()
578 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
590 n->header.magic = Magic(kMagicAllocated, &n->header); in DoAllocWithArena()
595 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
/external/openscreen/third_party/abseil/src/absl/base/internal/
Dlow_level_alloc.cc322 inline static uintptr_t Magic(uintptr_t magic, AllocList::Header *ptr) { in Magic() function
360 Magic(kMagicUnallocated, &freelist.header); in Arena()
397 region->header.magic == Magic(kMagicUnallocated, &region->header), in DeleteArena()
458 next->header.magic == Magic(kMagicUnallocated, &next->header), in Next()
494 ABSL_RAW_CHECK(f->header.magic == Magic(kMagicAllocated, &f->header), in AddToFreelist()
502 f->header.magic = Magic(kMagicUnallocated, &f->header); in AddToFreelist()
578 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
590 n->header.magic = Magic(kMagicAllocated, &n->header); in DoAllocWithArena()
595 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
/external/angle/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc322 inline static uintptr_t Magic(uintptr_t magic, AllocList::Header *ptr) { in Magic() function
360 Magic(kMagicUnallocated, &freelist.header); in Arena()
397 region->header.magic == Magic(kMagicUnallocated, &region->header), in DeleteArena()
458 next->header.magic == Magic(kMagicUnallocated, &next->header), in Next()
494 ABSL_RAW_CHECK(f->header.magic == Magic(kMagicAllocated, &f->header), in AddToFreelist()
502 f->header.magic = Magic(kMagicUnallocated, &f->header); in AddToFreelist()
578 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
590 n->header.magic = Magic(kMagicAllocated, &n->header); in DoAllocWithArena()
595 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
/external/libtextclassifier/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc322 inline static uintptr_t Magic(uintptr_t magic, AllocList::Header *ptr) { in Magic() function
360 Magic(kMagicUnallocated, &freelist.header); in Arena()
397 region->header.magic == Magic(kMagicUnallocated, &region->header), in DeleteArena()
458 next->header.magic == Magic(kMagicUnallocated, &next->header), in Next()
494 ABSL_RAW_CHECK(f->header.magic == Magic(kMagicAllocated, &f->header), in AddToFreelist()
502 f->header.magic = Magic(kMagicUnallocated, &f->header); in AddToFreelist()
578 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
590 n->header.magic = Magic(kMagicAllocated, &n->header); in DoAllocWithArena()
595 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
/external/webrtc/third_party/abseil-cpp/absl/base/internal/
Dlow_level_alloc.cc322 inline static uintptr_t Magic(uintptr_t magic, AllocList::Header *ptr) { in Magic() function
360 Magic(kMagicUnallocated, &freelist.header); in Arena()
397 region->header.magic == Magic(kMagicUnallocated, &region->header), in DeleteArena()
458 next->header.magic == Magic(kMagicUnallocated, &next->header), in Next()
494 ABSL_RAW_CHECK(f->header.magic == Magic(kMagicAllocated, &f->header), in AddToFreelist()
502 f->header.magic = Magic(kMagicUnallocated, &f->header); in AddToFreelist()
578 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()
590 n->header.magic = Magic(kMagicAllocated, &n->header); in DoAllocWithArena()
595 s->header.magic = Magic(kMagicAllocated, &s->header); in DoAllocWithArena()

12345678910>>...16