name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
Blowfish_stream2word
static uint32_t Blowfish_stream2word(const uint8_t *data, uint16_t databytes, uint16_t *current) { uint8_t i; uint16_t j; uint32_t temp; temp = 0x00000000; j = *current; for(i = 0; i < 4; i++, j++) { if(j >= databytes) j = 0; temp = (temp << 8) ...
pushq %rbp movq %rsp, %rbp movw %si, %ax movq %rdi, -0x8(%rbp) movw %ax, -0xa(%rbp) movq %rdx, -0x18(%rbp) movl $0x0, -0x20(%rbp) movq -0x18(%rbp), %rax movw (%rax), %ax movw %ax, -0x1c(%rbp) movb $0x0, -0x19(%rbp) movzbl -0x19(%rbp), %eax cmpl $0x4, %eax jge 0x2b121 movzwl -0x1c(%rbp), %eax movzwl -0xa(%rbp), %ecx cmp...
/palmin[P]libssh2/src/blowfish.c
blf_enc
static void blf_enc(blf_ctx *c, uint32_t *data, uint16_t blocks) { uint32_t *d; uint16_t i; d = data; for(i = 0; i < blocks; i++) { Blowfish_encipher(c, d, d + 1); d += 2; } }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movw %dx, %ax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movw %ax, -0x12(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movw $0x0, -0x22(%rbp) movzwl -0x22(%rbp), %eax movzwl -0x12(%rbp), %ecx cmpl %ecx, %eax jge 0x2b1a0 movq -0x8(%rbp), %rdi movq -0x20(%rbp), %rsi mov...
/palmin[P]libssh2/src/blowfish.c
Blowfish_encipher
static void Blowfish_encipher(blf_ctx *c, uint32_t *xl, uint32_t *xr) { uint32_t Xl; uint32_t Xr; uint32_t *s = c->S[0]; uint32_t *p = c->P; Xl = *xl; Xr = *xr; Xl ^= p[0]; BLFRND(s, p, Xr, Xl, 1); BLFRND(s, p, Xl, Xr, 2); BLFRND(s, p, Xr, Xl, 3); BLFRND(s, p, Xl, Xr, 4); BLFRN...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x8(%rbp), %rax addq $0x1000, %rax # imm = 0x1000 movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movl (%rax), %eax movl %eax, -0x1c(%rbp) movq -0x18(%rbp), %rax movl...
/palmin[P]libssh2/src/blowfish.c
comp_method_none_comp
static int comp_method_none_comp(LIBSSH2_SESSION *session, unsigned char *dest, size_t *dest_len, const unsigned char *src, size_t src_len, void **abstract) { (void)session; (void)abstract; (void)de...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) xorl %eax, %eax popq %rbp retq
/palmin[P]libssh2/src/comp.c
llvm::SmallVectorImpl<llvm::object::Elf_Crel_Impl<true>>::assignRemote(llvm::SmallVectorImpl<llvm::object::Elf_Crel_Impl<true>>&&)
void assignRemote(SmallVectorImpl &&RHS) { this->destroy_range(this->begin(), this->end()); if (!this->isSmall()) free(this->begin()); this->BeginX = RHS.BeginX; this->Size = RHS.Size; this->Capacity = RHS.Capacity; RHS.resetToSmall(); }
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x20(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x380170 movq 0x10(%rsp), %rdi movq %rax, 0x8(%rsp) callq 0x380180 movq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x380160 movq 0x10(%rsp), %rdi callq 0x380200 testb $0x1, %al jne 0x380979 movq 0x10(%rsp), %rdi ca...
/llvm/ADT/SmallVector.h
llvm::Expected<llvm::ArrayRef<llvm::object::Elf_Rel_Impl<llvm::object::ELFType<(llvm::endianness)1, true>, false>>> llvm::object::ELFFile<llvm::object::ELFType<(llvm::endianness)1, true>>::getSectionContentsAsArray<llvm::object::Elf_Rel_Impl<llvm::object::ELFType<(llvm::endianness)1, true>, false>>(llvm::object::Elf_Sh...
Expected<ArrayRef<T>> ELFFile<ELFT>::getSectionContentsAsArray(const Elf_Shdr &Sec) const { if (Sec.sh_entsize != sizeof(T) && sizeof(T) != 1) return createError("section " + getSecIndexForError(*this, Sec) + " has invalid sh_entsize: expected " + Twine(sizeof(T)) + "...
subq $0x848, %rsp # imm = 0x848 movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x840(%rsp) movq %rsi, 0x838(%rsp) movq %rdx, 0x830(%rsp) movq 0x838(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x830(%rsp), %rdi addq $0x38, %rdi callq 0x2f9ae0 cmpq $0x10, %rax je 0x381c45 movq 0x20(%rsp), %r...
/llvm/Object/ELF.h
llvm::object::ELFFile<llvm::object::ELFType<(llvm::endianness)0, true>>::getRelocationTypeName(unsigned int, llvm::SmallVectorImpl<char>&) const
void ELFFile<ELFT>::getRelocationTypeName(uint32_t Type, SmallVectorImpl<char> &Result) const { if (!isMipsELF64()) { StringRef Name = getRelocationTypeName(Type); Result.append(Name.begin(), Name.end()); } else { // The Mips N64 ABI allows up to three operation...
subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movl %esi, 0x9c(%rsp) movq %rdx, 0x90(%rsp) movq 0xa0(%rsp), %rdi movq %rdi, 0x40(%rsp) callq 0x392b40 testb $0x1, %al jne 0x392cc8 movq 0x40(%rsp), %rdi movl 0x9c(%rsp), %esi callq 0x392e50 movq %rax, 0x80(%rsp) movq %rdx, 0x88(%rsp) movq 0x90(%rsp), %rax movq %rax, 0x30(%rsp) le...
/llvm/Object/ELF.h
llvm::object::MachOObjectFile::isDebugSection(llvm::object::DataRefImpl) const
bool MachOObjectFile::isDebugSection(DataRefImpl Sec) const { Expected<StringRef> SectionNameOrErr = getSectionName(Sec); if (!SectionNameOrErr) { // TODO: Report the error message properly. consumeError(SectionNameOrErr.takeError()); return false; } StringRef SectionName = SectionNameOrErr.get(); ...
subq $0xd8, %rsp movq %rsi, 0xc8(%rsp) movq %rdi, 0xc0(%rsp) movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rax movq %rax, 0xa0(%rsp) movq 0xa0(%rsp), %rdx movq (%rsi), %rax leaq 0xa8(%rsp), %rdi callq *0x90(%rax) leaq 0xa8(%rsp), %rdi callq 0xd0ce0 testb $0x1, %al jne 0x3ad5b0 leaq 0x98(%rsp), %rdi leaq 0xa8(%rsp), %rsi call...
/Object/MachOObjectFile.cpp
llvm::ModuleSymbolTable::addModule(llvm::Module*)
void ModuleSymbolTable::addModule(Module *M) { if (FirstMod) assert(FirstMod->getTargetTriple() == M->getTargetTriple()); else FirstMod = M; for (GlobalValue &GV : M->global_values()) SymTab.push_back(&GV); CollectAsmSymbols(*M, [this](StringRef Name, BasicSymbolRef::Flags Flags) { SymTab.push...
subq $0x158, %rsp # imm = 0x158 movq %rdi, 0x150(%rsp) movq %rsi, 0x148(%rsp) movq 0x150(%rsp), %rax movq %rax, 0x10(%rsp) cmpq $0x0, (%rax) je 0x3b815c jmp 0x3b816c movq 0x10(%rsp), %rax movq 0x148(%rsp), %rcx movq %rcx, (%rax) movq 0x148(%rsp), %rsi leaq 0xc0(%rsp), %rdi callq 0x751fc0 leaq 0xc0(%rsp), %ra...
/Object/ModuleSymbolTable.cpp
llvm::CodeViewYAML::YAMLDebugSubsection::fromCodeViewSubection(llvm::codeview::StringsAndChecksumsRef const&, llvm::codeview::DebugSubsectionRecord const&)
Expected<YAMLDebugSubsection> YAMLDebugSubsection::fromCodeViewSubection(const StringsAndChecksumsRef &SC, const DebugSubsectionRecord &SS) { SubsectionConversionVisitor V; if (auto EC = visitDebugSubsection(SS, V, SC)) return std::move(EC); return V.Subsection; }
subq $0x58, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdx, 0x40(%rsp) leaq 0x28(%rsp), %rdi callq 0x3d18a0 movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rcx leaq 0x20(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x8e5430 leaq 0x20(%rsp), %rdi callq 0xb8ff0 te...
/ObjectYAML/CodeViewYAMLDebugSections.cpp
(anonymous namespace)::YAMLInlineeLinesSubsection::toCodeViewSubsection(llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::codeview::StringsAndChecksums const&) const
std::shared_ptr<DebugSubsection> YAMLInlineeLinesSubsection::toCodeViewSubsection( BumpPtrAllocator &Allocator, const codeview::StringsAndChecksums &SC) const { assert(SC.hasChecksums()); auto Result = std::make_shared<DebugInlineeLinesSubsection>( *SC.checksums(), InlineeLines.HasExtraFiles); for ...
subq $0xc8, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0xc0(%rsp) movq %rsi, 0xb8(%rsp) movq %rdx, 0xb0(%rsp) movq %rcx, 0xa8(%rsp) movq 0xb8(%rsp), %rax movq %rax, 0x20(%rsp) movq 0xa8(%rsp), %rdi callq 0x3e22d0 movq %rax, %rdi callq 0x3e22e0 movq 0x20(%rsp), %rdx movq %rax, %rsi addq ...
/ObjectYAML/CodeViewYAMLDebugSections.cpp
(anonymous namespace)::YAMLCrossModuleImportsSubsection::toCodeViewSubsection(llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::codeview::StringsAndChecksums const&) const
std::shared_ptr<DebugSubsection> YAMLCrossModuleImportsSubsection::toCodeViewSubsection( BumpPtrAllocator &Allocator, const codeview::StringsAndChecksums &SC) const { assert(SC.hasStrings()); auto Result = std::make_shared<DebugCrossModuleImportsSubsection>(*SC.strings()); for (const auto &M : Impo...
subq $0x98, %rsp movq %rdi, (%rsp) movq %rdi, %rax movq %rax, 0x8(%rsp) movq %rdi, 0x90(%rsp) movq %rsi, 0x88(%rsp) movq %rdx, 0x80(%rsp) movq %rcx, 0x78(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x78(%rsp), %rdi callq 0x143f30 movq %rax, %rdi callq 0x144950 movq %rax, %rsi leaq 0x68(%rsp), %rdi callq 0x3e...
/ObjectYAML/CodeViewYAMLDebugSections.cpp
llvm::Expected<llvm::CodeViewYAML::SymbolRecord> fromCodeViewSymbolImpl<llvm::CodeViewYAML::detail::SymbolRecordImpl<llvm::codeview::InlineSiteSym>>(llvm::codeview::CVRecord<llvm::codeview::SymbolKind>)
static inline Expected<CodeViewYAML::SymbolRecord> fromCodeViewSymbolImpl(CVSymbol Symbol) { CodeViewYAML::SymbolRecord Result; auto Impl = std::make_shared<SymbolType>(Symbol.kind()); if (auto EC = Impl->fromCodeViewSymbol(Symbol)) return std::move(EC); Result.Symbol = Impl; return Result; }
subq $0x78, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x70(%rsp) movq %rsi, 0x60(%rsp) movq %rdx, 0x68(%rsp) leaq 0x50(%rsp), %rdi callq 0x1b6500 leaq 0x60(%rsp), %rdi callq 0xd73c0 movw %ax, 0x3e(%rsp) leaq 0x40(%rsp), %rdi leaq 0x3e(%rsp), %rsi callq 0x406d50 leaq 0x40(%rsp), %rdi cal...
/ObjectYAML/CodeViewYAMLSymbols.cpp
llvm::codeview::CVRecord<llvm::codeview::SymbolKind> llvm::codeview::SymbolSerializer::writeOneSymbol<llvm::codeview::SectionSym>(llvm::codeview::SectionSym&, llvm::BumpPtrAllocatorImpl<llvm::MallocAllocator, 4096ul, 4096ul, 128ul>&, llvm::codeview::CodeViewContainer)
static CVSymbol writeOneSymbol(SymType &Sym, BumpPtrAllocator &Storage, CodeViewContainer Container) { RecordPrefix Prefix{uint16_t(Sym.Kind)}; CVSymbol Result(&Prefix, sizeof(Prefix)); SymbolSerializer Serializer(Storage, Container); consumeError(Serializer.visitSymbolB...
subq $0x10068, %rsp # imm = 0x10068 movq %rdi, 0x10050(%rsp) movq %rsi, 0x10048(%rsp) movl %edx, 0x10044(%rsp) movq 0x10050(%rsp), %rax movzwl (%rax), %esi leaq 0x10040(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x1de2e0 movq 0x8(%rsp), %rsi leaq 0x10058(%rsp), %rdi movq %rdi, 0x20(%rsp) movl $0x4, %edx callq 0x2b...
/llvm/DebugInfo/CodeView/SymbolSerializer.h
llvm::Error llvm::codeview::TypeDeserializer::deserializeAs<llvm::codeview::StringListRecord>(llvm::codeview::CVRecord<llvm::codeview::TypeLeafKind>&, llvm::codeview::StringListRecord&)
static Error deserializeAs(CVType &CVT, T &Record) { Record.Kind = static_cast<TypeRecordKind>(CVT.kind()); MappingInfo I(CVT.content()); if (auto EC = I.Mapping.visitTypeBegin(CVT)) return EC; if (auto EC = I.Mapping.visitKnownRecord(CVT, Record)) return EC; if (auto EC = I.Mapping.visi...
subq $0x108, %rsp # imm = 0x108 movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, (%rsp) movq %rdi, 0x100(%rsp) movq %rsi, 0xf8(%rsp) movq %rdx, 0xf0(%rsp) movq 0xf8(%rsp), %rdi callq 0xcd430 movw %ax, %cx movq 0xf0(%rsp), %rax movw %cx, (%rax) movq 0xf8(%rsp), %rdi callq 0x1d4330 movq %rax, 0x28(%rsp) movq %r...
/llvm/DebugInfo/CodeView/TypeDeserializer.h
llvm::detail::ilogb(llvm::detail::IEEEFloat const&)
int ilogb(const IEEEFloat &Arg) { if (Arg.isNaN()) return IEEEFloat::IEK_NaN; if (Arg.isZero()) return IEEEFloat::IEK_Zero; if (Arg.isInfinity()) return IEEEFloat::IEK_Inf; if (!Arg.isDenormal()) return Arg.exponent; IEEEFloat Normalized(Arg); int SignificandBits = Arg.getSemantics().precis...
subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq 0x28(%rsp), %rdi callq 0x4596f0 testb $0x1, %al jne 0x459ca9 jmp 0x459cb6 movl $0x80000000, 0x34(%rsp) # imm = 0x80000000 jmp 0x459d5f movq 0x28(%rsp), %rdi callq 0x4596d0 testb $0x1, %al jne 0x459cc6 jmp 0x459cd3 movl $0x80000001, 0x34(%rsp) # imm = 0x80000001 jmp 0x459d5f m...
/Support/APFloat.cpp
bool llvm::DenseMapBase<llvm::DenseMap<llvm::DIAssignID*, llvm::SmallVector<llvm::Instruction*, 1u>, llvm::DenseMapInfo<llvm::DIAssignID*, void>, llvm::detail::DenseMapPair<llvm::DIAssignID*, llvm::SmallVector<llvm::Instruction*, 1u>>>, llvm::DIAssignID*, llvm::SmallVector<llvm::Instruction*, 1u>, llvm::DenseMapInfo<ll...
bool LookupBucketFor(const LookupKeyT &Val, const BucketT *&FoundBucket) const { const BucketT *BucketsPtr = getBuckets(); const unsigned NumBuckets = getNumBuckets(); if (NumBuckets == 0) { FoundBucket = nullptr; return false; } // FoundTombstone - Keep track of...
subq $0x78, %rsp movq %rdi, 0x68(%rsp) movq %rsi, 0x60(%rsp) movq %rdx, 0x58(%rsp) movq 0x68(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x69cca0 movq 0x18(%rsp), %rdi movq %rax, 0x50(%rsp) callq 0x69ccb0 movl %eax, 0x4c(%rsp) cmpl $0x0, 0x4c(%rsp) jne 0x69cb52 movq 0x58(%rsp), %rax movq $0x0, (%rax) movb $0x0, 0x77(%rsp) ...
/llvm/ADT/DenseMap.h
llvm::DISubprogram* llvm::MDNode::storeImpl<llvm::DISubprogram, llvm::DenseSet<llvm::DISubprogram*, llvm::MDNodeInfo<llvm::DISubprogram>>>(llvm::DISubprogram*, llvm::Metadata::StorageType, llvm::DenseSet<llvm::DISubprogram*, llvm::MDNodeInfo<llvm::DISubprogram>>&)
T *MDNode::storeImpl(T *N, StorageType Storage, StoreT &Store) { switch (Storage) { case Uniqued: Store.insert(N); break; case Distinct: N->storeDistinctInContext(); break; case Temporary: break; } return N; }
subq $0x38, %rsp movq %rdi, 0x30(%rsp) movl %esi, 0x2c(%rsp) movq %rdx, 0x20(%rsp) movl 0x2c(%rsp), %eax movl %eax, 0x4(%rsp) testl %eax, %eax je 0x6a3e46 jmp 0x6a3e30 movl 0x4(%rsp), %eax subl $0x1, %eax je 0x6a3e5c jmp 0x6a3e3b movl 0x4(%rsp), %eax subl $0x2, %eax je 0x6a3e68 jmp 0x6a3e6a movq 0x20(%rsp), %rsi leaq 0...
/IR/MetadataImpl.h
llvm::DILexicalBlock::getImpl(llvm::LLVMContext&, llvm::Metadata*, llvm::Metadata*, unsigned int, unsigned int, llvm::Metadata::StorageType, bool)
DILexicalBlock *DILexicalBlock::getImpl(LLVMContext &Context, Metadata *Scope, Metadata *File, unsigned Line, unsigned Column, StorageType Storage, bool ShouldCreate) { // Fixup column. adjustColu...
subq $0xb8, %rsp movb 0xc0(%rsp), %al movq %rdi, 0xa8(%rsp) movq %rsi, 0xa0(%rsp) movq %rdx, 0x98(%rsp) movl %ecx, 0x94(%rsp) movl %r8d, 0x90(%rsp) movl %r9d, 0x8c(%rsp) andb $0x1, %al movb %al, 0x8b(%rsp) leaq 0x90(%rsp), %rdi callq 0x69d7f0 cmpl $0x0, 0x8c(%rsp) jne 0x6a4074 movq 0xa8(%rsp), %rax movq (%rax), %rax ad...
/IR/DebugInfoMetadata.cpp
llvm::DILexicalBlock* llvm::MDNode::storeImpl<llvm::DILexicalBlock, llvm::DenseSet<llvm::DILexicalBlock*, llvm::MDNodeInfo<llvm::DILexicalBlock>>>(llvm::DILexicalBlock*, llvm::Metadata::StorageType, llvm::DenseSet<llvm::DILexicalBlock*, llvm::MDNodeInfo<llvm::DILexicalBlock>>&)
T *MDNode::storeImpl(T *N, StorageType Storage, StoreT &Store) { switch (Storage) { case Uniqued: Store.insert(N); break; case Distinct: N->storeDistinctInContext(); break; case Temporary: break; } return N; }
subq $0x38, %rsp movq %rdi, 0x30(%rsp) movl %esi, 0x2c(%rsp) movq %rdx, 0x20(%rsp) movl 0x2c(%rsp), %eax movl %eax, 0x4(%rsp) testl %eax, %eax je 0x6a4256 jmp 0x6a4240 movl 0x4(%rsp), %eax subl $0x1, %eax je 0x6a426c jmp 0x6a424b movl 0x4(%rsp), %eax subl $0x2, %eax je 0x6a4278 jmp 0x6a427a movq 0x20(%rsp), %rsi leaq 0...
/IR/MetadataImpl.h
llvm::SmallDenseMap<void*, std::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*, llvm::DebugValueUser*>, unsigned long>, 4u, llvm::DenseMapInfo<void*, void>, llvm::detail::DenseMapPair<void*, std::pair<llvm::PointerUnion<llvm::MetadataAsValue*, llvm::Metadata*, llvm::DebugValueUser*>, unsigned long>>>::...
void deallocateBuckets() { if (Small) return; deallocate_buffer(getLargeRep()->Buckets, sizeof(BucketT) * getLargeRep()->NumBuckets, alignof(BucketT)); getLargeRep()->~LargeRep(); }
subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) movl (%rax), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x6ab6af jmp 0x6ab6e9 movq 0x8(%rsp), %rdi callq 0x6ab010 movq 0x8(%rsp), %rdi movq (%rax), %rax movq %rax, (%rsp) callq 0x6ab010 movq (%rsp), %rdi movl 0x8(%rax), %eax imulq $0x18, %ra...
/llvm/ADT/DenseMap.h
llvm::DenseMapIterator<llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm::DIEnumerator*>, false> llvm::DenseMapBase<llvm::DenseMap<llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm...
iterator find_as(const LookupKeyT &Val) { BucketT *TheBucket; if (LookupBucketFor(Val, TheBucket)) return makeIterator(TheBucket, shouldReverseIterate<KeyT>() ? getBuckets() : getBucketsEnd(), *this,...
subq $0x48, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x30(%rsp), %rdi movq %rdi, 0x18(%rsp) movq 0x28(%rsp), %rsi leaq 0x20(%rsp), %rdx callq 0x6b2a80 testb $0x1, %al jne 0x6b29cd jmp 0x6b2a2b movq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) callq 0x6b2bb0 testb $0x1, %al jne 0x6b29e2 jmp 0x6b29f3 movq 0x18(%rs...
/llvm/ADT/DenseMap.h
llvm::DenseMapBase<llvm::DenseMap<llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm::DIEnumerator*>>, llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm::DIEnumerator*>>::makeIterat...
iterator makeIterator(BucketT *P, BucketT *E, DebugEpochBase &Epoch, bool NoAdvance=false) { if (shouldReverseIterate<KeyT>()) { BucketT *B = P == getBucketsEnd() ? getBuckets() : P + 1; return iterator(B, E, Epoch, NoAdvance); } return iterator(P,...
subq $0x58, %rsp movb %r8b, %al movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movq %rdx, 0x30(%rsp) movq %rcx, 0x28(%rsp) andb $0x1, %al movb %al, 0x27(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x10(%rsp) callq 0x6b2bb0 testb $0x1, %al jne 0x6b2b06 jmp 0x6b2b72 movq 0x10(%rsp), %rdi movq 0x38(%rsp), %rax movq %rax, 0x8(%rsp...
/llvm/ADT/DenseMap.h
llvm::DenseMapIterator<llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm::DIEnumerator*>, false>::RetreatPastEmptyBuckets()
void RetreatPastEmptyBuckets() { assert(Ptr >= End); const KeyT Empty = KeyInfoT::getEmptyKey(); const KeyT Tombstone = KeyInfoT::getTombstoneKey(); while (Ptr != End && (KeyInfoT::isEqual(Ptr[-1].getFirst(), Empty) || KeyInfoT::isEqual(Ptr[-1].getFirst(), Tombstone))) -...
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) callq 0x6b2fb0 movq %rax, 0x18(%rsp) callq 0x6b2fe0 movq %rax, 0x10(%rsp) movq 0x8(%rsp), %rdx movq (%rdx), %rcx xorl %eax, %eax cmpq 0x8(%rdx), %rcx movb %al, 0x7(%rsp) je 0x6b33a0 movq 0x8(%rsp), %rax movq (%rax), %rdi addq $-0x8, %rdi ...
/llvm/ADT/DenseMap.h
llvm::DenseMapBase<llvm::DenseMap<llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm::DIEnumerator*>>, llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm::DIEnumerator*>>::initEmpty(...
void initEmpty() { setNumEntries(0); setNumTombstones(0); assert((getNumBuckets() & (getNumBuckets()-1)) == 0 && "# initial buckets must be a power of two!"); const KeyT EmptyKey = getEmptyKey(); for (BucketT *B = getBuckets(), *E = getBucketsEnd(); B != E; ++B) ::new (&B->getFirst...
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq 0x20(%rsp), %rdi movq %rdi, (%rsp) xorl %esi, %esi callq 0x6b3f40 movq (%rsp), %rdi xorl %esi, %esi callq 0x6b3f60 callq 0x6b2e30 movq (%rsp), %rdi movq %rax, 0x18(%rsp) callq 0x6b2bc0 movq (%rsp), %rdi movq %rax, 0x10(%rsp) callq 0x6b2bd0 movq %rax, 0x8(%rsp) movq 0x10(%rsp)...
/llvm/ADT/DenseMap.h
llvm::DenseMapBase<llvm::DenseMap<llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm::DIEnumerator*>>, llvm::DIEnumerator*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIEnumerator>, llvm::detail::DenseSetPair<llvm::DIEnumerator*>>::moveFromOl...
void moveFromOldBuckets(BucketT *OldBucketsBegin, BucketT *OldBucketsEnd) { initEmpty(); // Insert all the old elements. const KeyT EmptyKey = getEmptyKey(); const KeyT TombstoneKey = getTombstoneKey(); for (BucketT *B = OldBucketsBegin, *E = OldBucketsEnd; B != E; ++B) { if (!KeyInfoT::isEqu...
subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdx, 0x40(%rsp) movq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x6b3d90 callq 0x6b2e30 movq %rax, 0x38(%rsp) callq 0x6b2e40 movq %rax, 0x30(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x28(%rsp), ...
/llvm/ADT/DenseMap.h
llvm::MDNodeKeyImpl<llvm::DIDerivedType>::getHashValue() const
unsigned getHashValue() const { // If this is a member inside an ODR type, only hash the type and the name. // Otherwise the hash will be stronger than // MDNodeSubsetEqualImpl::isODRMember(). if (Tag == dwarf::DW_TAG_member && Name) if (auto *CT = dyn_cast_or_null<DICompositeType>(Scope)) ...
subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x8(%rsp) cmpl $0xd, (%rax) jne 0x6b7b1d movq 0x8(%rsp), %rax cmpq $0x0, 0x8(%rax) je 0x6b7b1d movq 0x8(%rsp), %rax movq 0x20(%rax), %rdi callq 0x6b7b80 movq %rax, 0x20(%rsp) cmpq $0x0, 0x20(%rsp) je 0x6b7b1b movq 0x20(%rsp), %rdi callq 0x6b7b90 cm...
/IR/LLVMContextImpl.h
std::pair<llvm::DenseMapIterator<llvm::DIDerivedType*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIDerivedType>, llvm::detail::DenseSetPair<llvm::DIDerivedType*>, false>, bool> llvm::DenseMapBase<llvm::DenseMap<llvm::DIDerivedType*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIDerivedType>, llvm::det...
std::pair<iterator, bool> try_emplace(const KeyT &Key, Ts &&... Args) { BucketT *TheBucket; if (LookupBucketFor(Key, TheBucket)) return std::make_pair(makeIterator(TheBucket, shouldReverseIterate<KeyT>() ? getBuckets() ...
subq $0x88, %rsp movq %rdi, 0x20(%rsp) movq %rdi, 0x28(%rsp) movq %rsi, 0x80(%rsp) movq %rdx, 0x78(%rsp) movq %rcx, 0x70(%rsp) movq 0x80(%rsp), %rdi movq %rdi, 0x30(%rsp) movq 0x78(%rsp), %rsi leaq 0x68(%rsp), %rdx callq 0x6b8f00 testb $0x1, %al jne 0x6b8da5 jmp 0x6b8e1f movq 0x68(%rsp), %rax movq %rax, 0x18(%rsp) call...
/llvm/ADT/DenseMap.h
llvm::DenseMapIterator<llvm::DILexicalBlock*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DILexicalBlock>, llvm::detail::DenseSetPair<llvm::DILexicalBlock*>, false>::RetreatPastEmptyBuckets()
void RetreatPastEmptyBuckets() { assert(Ptr >= End); const KeyT Empty = KeyInfoT::getEmptyKey(); const KeyT Tombstone = KeyInfoT::getTombstoneKey(); while (Ptr != End && (KeyInfoT::isEqual(Ptr[-1].getFirst(), Empty) || KeyInfoT::isEqual(Ptr[-1].getFirst(), Tombstone))) -...
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) callq 0x6c1ee0 movq %rax, 0x18(%rsp) callq 0x6c1f10 movq %rax, 0x10(%rsp) movq 0x8(%rsp), %rdx movq (%rdx), %rcx xorl %eax, %eax cmpq 0x8(%rdx), %rcx movb %al, 0x7(%rsp) je 0x6c2370 movq 0x8(%rsp), %rax movq (%rax), %rdi addq $-0x8, %rdi ...
/llvm/ADT/DenseMap.h
llvm::DenseMapIterator<llvm::DITemplateValueParameter*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DITemplateValueParameter>, llvm::detail::DenseSetPair<llvm::DITemplateValueParameter*>, false>::DenseMapIterator(llvm::detail::DenseSetPair<llvm::DITemplateValueParameter*>*, llvm::detail::DenseSetPair<llvm::DITe...
DenseMapIterator(pointer Pos, pointer E, const DebugEpochBase &Epoch, bool NoAdvance = false) : DebugEpochBase::HandleBase(&Epoch), Ptr(Pos), End(E) { assert(isHandleInSync() && "invalid construction!"); if (NoAdvance) return; if (shouldReverseIterate<KeyT>()) { RetreatPastEm...
subq $0x38, %rsp movb %r8b, %al movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x20(%rsp) movq %rcx, 0x18(%rsp) andb $0x1, %al movb %al, 0x17(%rsp) movq 0x30(%rsp), %rdi movq %rdi, 0x8(%rsp) movq 0x18(%rsp), %rsi callq 0xd6c20 movq 0x8(%rsp), %rax movq 0x28(%rsp), %rcx movq %rcx, (%rax) movq 0x20(%rsp), %rcx mo...
/llvm/ADT/DenseMap.h
bool llvm::DenseMapBase<llvm::DenseMap<llvm::DIObjCProperty*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIObjCProperty>, llvm::detail::DenseSetPair<llvm::DIObjCProperty*>>, llvm::DIObjCProperty*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIObjCProperty>, llvm::detail::DenseSetPair<llvm::DIObjCProper...
bool LookupBucketFor(const LookupKeyT &Val, const BucketT *&FoundBucket) const { const BucketT *BucketsPtr = getBuckets(); const unsigned NumBuckets = getNumBuckets(); if (NumBuckets == 0) { FoundBucket = nullptr; return false; } // FoundTombstone - Keep track of...
subq $0x78, %rsp movq %rdi, 0x68(%rsp) movq %rsi, 0x60(%rsp) movq %rdx, 0x58(%rsp) movq 0x68(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x6d4930 movq 0x18(%rsp), %rdi movq %rax, 0x50(%rsp) callq 0x6d4940 movl %eax, 0x4c(%rsp) cmpl $0x0, 0x4c(%rsp) jne 0x6d5802 movq 0x58(%rsp), %rax movq $0x0, (%rax) movb $0x0, 0x77(%rsp) ...
/llvm/ADT/DenseMap.h
llvm::detail::DenseSetPair<llvm::DIObjCProperty*>* llvm::DenseMapBase<llvm::DenseMap<llvm::DIObjCProperty*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIObjCProperty>, llvm::detail::DenseSetPair<llvm::DIObjCProperty*>>, llvm::DIObjCProperty*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIObjCProperty>,...
BucketT *InsertIntoBucketImpl(const KeyT &Key, const LookupKeyT &Lookup, BucketT *TheBucket) { incrementEpoch(); // If the load of the hash table is more than 3/4, or if fewer than 1/8 of // the buckets are empty (meaning that many are filled with tombstones), // grow th...
subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movq %rdx, 0x30(%rsp) movq %rcx, 0x28(%rsp) movq 0x40(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0xd6ef0 movq 0x10(%rsp), %rdi callq 0x6d5bd0 movq 0x10(%rsp), %rdi addl $0x1, %eax movl %eax, 0x24(%rsp) callq 0x6d4940 movl %eax, 0x20(%rsp) movl 0x24(%rsp), %eax s...
/llvm/ADT/DenseMap.h
llvm::DenseMapBase<llvm::DenseMap<llvm::DIObjCProperty*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIObjCProperty>, llvm::detail::DenseSetPair<llvm::DIObjCProperty*>>, llvm::DIObjCProperty*, llvm::detail::DenseSetEmpty, llvm::MDNodeInfo<llvm::DIObjCProperty>, llvm::detail::DenseSetPair<llvm::DIObjCProperty*>>...
void initEmpty() { setNumEntries(0); setNumTombstones(0); assert((getNumBuckets() & (getNumBuckets()-1)) == 0 && "# initial buckets must be a power of two!"); const KeyT EmptyKey = getEmptyKey(); for (BucketT *B = getBuckets(), *E = getBucketsEnd(); B != E; ++B) ::new (&B->getFirst...
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq 0x20(%rsp), %rdi movq %rdi, (%rsp) xorl %esi, %esi callq 0x6d5f50 movq (%rsp), %rdi xorl %esi, %esi callq 0x6d5f70 callq 0x6d4950 movq (%rsp), %rdi movq %rax, 0x18(%rsp) callq 0x6d46e0 movq (%rsp), %rdi movq %rax, 0x10(%rsp) callq 0x6d46f0 movq %rax, 0x8(%rsp) movq 0x10(%rsp)...
/llvm/ADT/DenseMap.h
llvm::DbgRecord::createDebugIntrinsic(llvm::Module*, llvm::Instruction*) const
DbgInfoIntrinsic * DbgRecord::createDebugIntrinsic(Module *M, Instruction *InsertBefore) const { switch (RecordKind) { case ValueKind: return cast<DbgVariableRecord>(this)->createDebugIntrinsic(M, InsertBefore); case LabelKind: return cast<DbgLabelRecord>(this)->createDebugIntrinsic(M, InsertBefore); };...
subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq %rsi, 0x10(%rsp) movq %rdx, 0x8(%rsp) movq 0x18(%rsp), %rax movq %rax, (%rsp) movzbl 0x20(%rax), %eax testl %eax, %eax je 0x6df868 jmp 0x6df866 jmp 0x6df88a movq (%rsp), %rdi callq 0x6df770 movq %rax, %rdi movq 0x10(%rsp), %rsi movq 0x8(%rsp), %rdx callq 0x6df8c0 movq %rax, 0...
/IR/DebugProgramInstruction.cpp
llvm::Function::Function(llvm::FunctionType*, llvm::GlobalValue::LinkageTypes, unsigned int, llvm::Twine const&, llvm::Module*)
Function::Function(FunctionType *Ty, LinkageTypes Linkage, unsigned AddrSpace, const Twine &name, Module *ParentModule) : GlobalObject(Ty, Value::FunctionVal, OperandTraits<Function>::op_begin(this), 0, Linkage, name, computeAddrSpace(AddrSpace, ParentModule)...
subq $0x98, %rsp movq %rdi, 0x90(%rsp) movq %rsi, 0x88(%rsp) movl %edx, 0x84(%rsp) movl %ecx, 0x80(%rsp) movq %r8, 0x78(%rsp) movq %r9, 0x70(%rsp) movq 0x90(%rsp), %rdi movq %rdi, 0x38(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x18(%rsp) callq 0x6e2eb0 movq %rax, 0x20(%rsp) movl 0x84(%rsp), %eax movl %eax, 0x2c(%rsp) movq...
/IR/Function.cpp
Receiver::mainLoop(bool&)
void Receiver::mainLoop(bool & run) { class Listener : public Commands { protected: ControlArbiter & controlArbiter; Autonomy & autonomy; public: // Control the drone virtual void control(float aileron, float elevator, float thrust, float rudder) { Control c; c.aileron = aileron; ...
pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq (%rdi), %rax movq 0x10(%rdi), %rcx leaq 0xbf1d(%rip), %rdx # 0x19bc8 movq %rdx, 0x8(%rsp) movq %rax, 0x10(%rsp) movq %rcx, 0x18(%rsp) cmpb $0x1, (%rsi) jne 0xdcdc movq %rsi, %rbx movq %rdi, %r14 leaq 0x8(%rsp), %r15 movq 0x8(%r14), %rdi movq (%rdi), %rax movq ...
/CUA-BatDrone[P]Bat-Drone-Software/fsw/receiver.cpp
TripleBuffer<Control>::swapBackIfReady()
int swapBackIfReady() { unique_lock<mutex> ul(m); if (count > 0) swap(back, middle); int r = count; count = 0; return r; }
pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx leaq 0x48(%rdi), %rax movq %rsp, %r14 movq %rax, (%r14) movb $0x0, 0x8(%r14) movq %r14, %rdi callq 0xd7a0 movb $0x1, 0x8(%r14) movl 0xa0(%rbx), %ebp testl %ebp, %ebp jle 0xed8c movdqu 0x38(%rbx), %xmm0 pshufd $0x4e, %xmm0, %xmm0 # xmm0 = xmm0[2,3,0,1...
/CUA-BatDrone[P]Bat-Drone-Software/fsw/triple_buffer.hpp
CmdTlm::blobs(std::vector<Commands::Blob, std::allocator<Commands::Blob>>&)
void CmdTlm::blobs(vector<Blob> & blobs) { *packetWriter << (uint8_t) 4 << (uint16_t) blobs.size(); for (Blob &blob : blobs) { *packetWriter << blob.x << blob.y << blob.size; } packetWriter->write_packet(); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r15 movq %rdi, %rbx movq 0x10(%rdi), %r12 movq (%r12), %rax movq -0x20(%rax), %r13 leaq (%r12,%r13), %r14 leaq 0x5(%rsp), %rsi movb $0x4, (%rsi) movq (%r12,%r13), %rax movq %r14, %rdi movl $0x1, %edx callq *(%rax) movl 0x8(%r15), %...
/CUA-BatDrone[P]Bat-Drone-Software/libs/libcmdtlm/cmd_tlm.cpp
fp::collector::collector(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
collector(const std::string &name) : m_thread_last{thread_clock::now()}, m_steady_last{steady_clock::now()}, m_count{0}, m_thread_accumulator{0}, m_steady_accumulator{0}, m_last_report{steady_clock::now()} { std::ostringstream os; os << "[FP] " << std::hex << std::this_thread...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x198, %rsp # imm = 0x198 movq %rsi, %r14 movq %rdi, %r15 leaq 0x20(%rsp), %rsi movl $0x3, %edi callq 0x61e0 testl %eax, %eax jne 0x6b7a leaq 0x20(%rsp), %rsi imulq $0x3b9aca00, (%rsi), %rax # imm = 0x3B9ACA00 addq 0x8(%rsi), %rax movq %rax, (%r15) movl $0x1,...
/kode9[P]function_profiler/function_profiler.hpp
fp::collector::~collector()
~collector() noexcept { report(); }
pushq %rbx movq %rdi, %rbx movq 0x10(%rdi), %rsi testq %rsi, %rsi je 0x6c73 movsd 0x18(%rbx), %xmm0 movsd 0x1414(%rip), %xmm1 # 0x8010 unpcklps %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1] movapd 0x1419(%rip), %xmm4 # 0x8020 subpd %xmm4, %xmm0 movapd %xmm0, %xmm3 unpckhpd %xmm0, %xmm3 ...
/kode9[P]function_profiler/function_profiler.hpp
QIntC::IntConverter<unsigned long, int, false, true>::convert(unsigned long const&)
inline static To convert(From const& i) { // From is unsigned, and to is signed. Convert To's max to the // unsigned version of To and compare i against that. auto maxval = static_cast<typename to_u<To>::type>(std::numeric_limits<To>::max()); if (i > maxva...
movq (%rdi), %rax testq $-0x80000000, %rax # imm = 0x80000000 je 0x2906b pushq %rbx movq %rdi, %rbx movq %rax, %rdi callq 0x2906c movq (%rbx), %rax popq %rbx retq
/jberkenbilt[P]qpdf/include/qpdf/QIntC.hh
ParticleFilter::dataAssociation(std::vector<LandmarkObs, std::allocator<LandmarkObs>>, std::vector<LandmarkObs, std::allocator<LandmarkObs>>&)
void ParticleFilter::dataAssociation(std::vector<LandmarkObs> map_landmarks_in_range, std::vector<LandmarkObs>& observations_in_map_coordinates) { std::vector<LandmarkObs> result; for (int i=0; i<observations_in_map_coordinates.size(); i++) { int map_index; double dist_comp = 1.0e99; for (int j=0; j<...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %rbx xorpd %xmm0, %xmm0 movapd %xmm0, (%rsp) movq $0x0, 0x10(%rsp) movq (%rdx), %rax cmpq %rax, 0x8(%rdx) je 0x6d39 movq %rsi, %r14 xorl %r13d, %r13d leaq 0x20(%rsp), %r12 movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAA...
/ColinShaw[P]cpp-particle-filter-localization/src/particle_filter.cpp
testing::internal::PrettyUnitTestResultPrinter::PrintSkippedTests(testing::UnitTest const&)
void PrettyUnitTestResultPrinter::PrintSkippedTests(const UnitTest& unit_test) { const int skipped_test_count = unit_test.skipped_test_count(); if (skipped_test_count == 0) { return; } for (int i = 0; i < unit_test.total_test_suite_count(); ++i) { const TestSuite& test_suite = *unit_test.GetTestSuite(i...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movq 0x40(%rdi), %rdi callq 0xa8fe testl %eax, %eax je 0x11d68 movq 0x40(%rbx), %rcx movq 0xb8(%rcx), %rax movq 0xc0(%rcx), %rdx subq %rax, %rdx shrq $0x3, %rdx testl %edx, %edx jle 0x11d68 leaq 0x175a5(%rip), %r15 # 0x291e...
/LLNL[P]Adiak/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest/src/gtest.cc
testing::internal::PrettyUnitTestResultPrinter::OnTestIterationEnd(testing::UnitTest const&, int)
void PrettyUnitTestResultPrinter::OnTestIterationEnd(const UnitTest& unit_test, int /*iteration*/) { ColoredPrintf(COLOR_GREEN, "[==========] "); printf("%s from %s ran.", FormatTestCount(unit_test.test_to_run_count()).c_str(), FormatTestSuiteC...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %rbx leaq 0x1738b(%rip), %rsi # 0x29121 xorl %ebp, %ebp movl $0x2, %edi xorl %eax, %eax callq 0x10adf movq 0x40(%rbx), %rdi callq 0xac72 leaq 0x152de(%rip), %rdx # 0x27092 leaq 0x17397(%rip), %rcx # 0x29152 leaq 0x8(%rsp), %rdi movl %ea...
/LLNL[P]Adiak/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest/src/gtest.cc
testing::internal::TestEventRepeater::~TestEventRepeater()
TestEventRepeater::~TestEventRepeater() { ForEach(listeners_, Delete<TestEventListener>); }
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x2625f(%rip), %rax # 0x382a8 addq $0x10, %rax movq %rax, (%rdi) movq 0x10(%rdi), %r14 movq 0x18(%rdi), %r15 cmpq %r15, %r14 je 0x12071 movq (%r14), %rdi testq %rdi, %rdi je 0x1206b movq (%rdi), %rax callq *0x8(%rax) addq $0x8, %r14 jmp 0x12058 movq 0x10(%rbx), ...
/LLNL[P]Adiak/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest/src/gtest.cc
testing::internal::TestEventRepeater::OnTestIterationStart(testing::UnitTest const&, int)
void TestEventRepeater::OnTestIterationStart(const UnitTest& unit_test, int iteration) { if (forwarding_enabled_) { for (size_t i = 0; i < listeners_.size(); i++) { listeners_[i]->OnTestIterationStart(unit_test, iteration); } } }
cmpb $0x1, 0x8(%rdi) jne 0x124f4 pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r15 movq 0x10(%rdi), %rax cmpq %rax, 0x18(%rdi) je 0x124e9 movl %edx, %ebx movq %rsi, %r14 xorl %r12d, %r12d movq (%rax,%r12,8), %rdi movq (%rdi), %rax movq %r14, %rsi movl %ebx, %edx callq *0x18(%rax) incq %r12 movq 0x1...
/LLNL[P]Adiak/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest/src/gtest.cc
testing::internal::TestEventRepeater::OnTestIterationEnd(testing::UnitTest const&, int)
void TestEventRepeater::OnTestIterationEnd(const UnitTest& unit_test, int iteration) { if (forwarding_enabled_) { for (size_t i = listeners_.size(); i > 0; i--) { listeners_[i - 1]->OnTestIterationEnd(unit_test, iteration); } } }
cmpb $0x1, 0x8(%rdi) jne 0x1253e pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %r15 movq 0x18(%rdi), %r12 subq 0x10(%rdi), %r12 je 0x12533 movl %edx, %ebx movq %rsi, %r14 sarq $0x3, %r12 movq 0x10(%r15), %rax movq -0x8(%rax,%r12,8), %rdi movq (%rdi), %rax movq %r14, %rsi movl %ebx, %edx callq *0x78(...
/LLNL[P]Adiak/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest/src/gtest.cc
testing::internal::FormatTimeInMillisAsSeconds[abi:cxx11](long)
std::string FormatTimeInMillisAsSeconds(TimeInMillis ms) { ::std::stringstream ss; ss << (static_cast<double>(ms) * 1e-3); return ss.str(); }
pushq %r14 pushq %rbx subq $0x188, %rsp # imm = 0x188 movq %rsi, %r14 movq %rdi, %rbx movq %rsp, %rdi callq 0x62d0 leaq 0x10(%rsp), %rdi cvtsi2sd %r14, %xmm0 mulsd 0x141c1(%rip), %xmm0 # 0x27520 callq 0x67c0 leaq 0x18(%rsp), %rsi movq %rbx, %rdi callq 0x67a0 movq 0x25c10(%rip), %rsi # 0x38f88 movq %rs...
/LLNL[P]Adiak/blt/thirdparty_builtin/googletest-master-2020-01-07/googletest/src/gtest.cc
bitset_intersection_count
size_t bitset_intersection_count(const bitset_t *CBITSET_RESTRICT b1, const bitset_t *CBITSET_RESTRICT b2) { size_t answer = 0; size_t minlength = b1->arraysize < b2->arraysize ? b1->arraysize : b2->arraysize; for (size_t k = 0; k < minlength; ++k) { answer +...
movq 0x8(%rdi), %rax movq 0x8(%rsi), %rcx cmpq %rcx, %rax cmovbq %rax, %rcx testq %rcx, %rcx je 0x10355 pushq %r14 pushq %rbx movq (%rdi), %rdx movq (%rsi), %rsi xorl %edi, %edi movabsq $0x5555555555555555, %r8 # imm = 0x5555555555555555 movabsq $0x3333333333333333, %r9 # imm = 0x3333333333333333 movabsq $0xf0f0f0f0f0f...
/lucaderi[P]CRoaring/src/bitset.c
bitset_symmetric_difference_count
size_t bitset_symmetric_difference_count(const bitset_t *CBITSET_RESTRICT b1, const bitset_t *CBITSET_RESTRICT b2) { size_t minlength = b1->arraysize < b2->arraysize ? b1->arraysize : b2->arraysize; size_t k = 0; size_t answer = 0; for (; k < minlength; +...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq 0x8(%rdi), %r11 movq 0x8(%rsi), %rbx cmpq %rbx, %r11 movq %rbx, %rcx cmovbq %r11, %rcx movabsq $0x5555555555555555, %rdx # imm = 0x5555555555555555 movabsq $0x3333333333333333, %r8 # imm = 0x3333333333333333 movabsq $0xf0f0f0f0f0f0f0f, %r9 # imm = 0...
/lucaderi[P]CRoaring/src/bitset.c
bitset_trim
bool bitset_trim(bitset_t *bitset) { size_t newsize = bitset->arraysize; while (newsize > 0) { if (bitset->array[newsize - 1] == 0) newsize -= 1; else break; } if (bitset->capacity == newsize) return true; // nothing to do uint64_t *newarray; if ((newarra...
pushq %rbp pushq %r14 pushq %rbx movq %rdi, %rbx movq 0x8(%rdi), %rax leaq (,%rax,8), %rcx negq %rcx movq %rax, %r14 movq %rcx, %rsi subq $0x1, %rax jb 0x10660 movq (%rbx), %rdx leaq 0x8(%rsi), %rcx cmpq $0x0, (%rdx,%rax,8) je 0x10646 movb $0x1, %bpl cmpq %r14, 0x10(%rbx) je 0x10688 movq (%rbx), %rdi negq %rsi callq 0x...
/lucaderi[P]CRoaring/src/bitset.c
array_container_index_equalorlarger
inline int array_container_index_equalorlarger(const array_container_t *arr, uint16_t x) { const int32_t idx = binarySearch(arr->array, arr->cardinality, x); const bool is_present = idx >= 0; if (is_present) { return idx; } else { int32_t ca...
movl (%rdi), %ecx testl %ecx, %ecx jle 0x106ed movq 0x8(%rdi), %rdi leal -0x1(%rcx), %r8d xorl %edx, %edx leal (%r8,%rdx), %r9d movl %r9d, %eax shrl %eax andl $-0x2, %r9d cmpw %si, (%rdi,%r9) jae 0x106df incl %eax movl %eax, %edx jmp 0x106e6 jbe 0x106f9 decl %eax movl %eax, %r8d cmpl %r8d, %edx jle 0x106c5 jmp 0x106ef ...
/lucaderi[P]CRoaring/include/roaring/containers/array.h
array_container_rank
inline int array_container_rank(const array_container_t *arr, uint16_t x) { const int32_t idx = binarySearch(arr->array, arr->cardinality, x); const bool is_present = idx >= 0; if (is_present) { return idx + 1; } else { return -idx - 1; } }
movl (%rdi), %edx testl %edx, %edx jle 0x10734 movq 0x8(%rdi), %rcx decl %edx xorl %edi, %edi leal (%rdx,%rdi), %r8d movl %r8d, %eax shrl %eax andl $-0x2, %r8d cmpw %si, (%rcx,%r8) jae 0x10722 incl %eax movl %eax, %edi jmp 0x10728 jbe 0x10737 decl %eax movl %eax, %edx cmpl %edx, %edi jle 0x10708 movl %edi, %eax negl %e...
/lucaderi[P]CRoaring/include/roaring/containers/array.h
array_container_rank_many
inline uint32_t array_container_rank_many(const array_container_t *arr, uint64_t start_rank, const uint32_t *begin, const uint32_t *end, uint64_t *ans) { const uint16_t high = (uint16_t)((*b...
movq %rdx, %rax cmpq %rcx, %rdx je 0x107ee pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movl (%rdx), %r9d xorl %r10d, %r10d movq %rdx, %rax movl (%rax), %ebx movl %ebx, %r11d xorl %r9d, %r11d cmpl $0xffff, %r11d # imm = 0xFFFF ja 0x107e4 movl %r10d, %r11d movl (%rdi), %r15d subl %r10d, %r1...
/lucaderi[P]CRoaring/include/roaring/containers/array.h
array_container_get_index
inline int array_container_get_index(const array_container_t *arr, uint16_t x) { const int32_t idx = binarySearch(arr->array, arr->cardinality, x); const bool is_present = idx >= 0; if (is_present) { return idx; } else { return -1; } }
movl (%rdi), %edx testl %edx, %edx jle 0x10832 movq 0x8(%rdi), %rcx decl %edx xorl %edi, %edi leal (%rdx,%rdi), %r8d movl %r8d, %eax shrl %eax andl $-0x2, %r8d cmpw %si, (%rcx,%r8) jae 0x1081e incl %eax movl %eax, %edi jmp 0x10824 jbe 0x10837 decl %eax movl %eax, %edx cmpl %edx, %edi jle 0x10804 movl %edi, %eax sarl $0...
/lucaderi[P]CRoaring/include/roaring/containers/array.h
array_container_contains
inline bool array_container_contains(const array_container_t *arr, uint16_t pos) { // return binarySearch(arr->array, arr->cardinality, pos) >= 0; // binary search with fallback to linear search for short ranges int32_t low = 0; const uint16_t *carr = (const uint1...
movq 0x8(%rdi), %rcx movl (%rdi), %edi xorl %eax, %eax leal -0x1(%rdi), %edx leal 0x10(%rax), %r8d cmpl %r8d, %edi jle 0x10878 leal (%rax,%rdx), %r9d movl %r9d, %r8d shrl %r8d andl $-0x2, %r9d cmpw %si, (%rcx,%r9) jae 0x10870 leal 0x1(%r8), %eax addl $0x11, %r8d cmpl %r8d, %edi jg 0x1084c jmp 0x10878 movl %r8d, %edi ja...
/lucaderi[P]CRoaring/include/roaring/containers/array.h
array_container_offset
void array_container_offset(const array_container_t *c, container_t **loc, container_t **hic, uint16_t offset) { array_container_t *lo = NULL, *hi = NULL; int top, lo_cap, hi_cap; top = (1 << 16) - offset; lo_cap = count_less(c->array, c->cardinality, top); if (loc && l...
movq %rdi, %r11 movl %ecx, %eax negl %eax movl (%rdi), %edi testl %edi, %edi je 0x10c96 pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx leaq -0x28(%rsp), %rsp movl %ecx, %r14d jle 0x109e3 movq 0x8(%r11), %rcx leal -0x1(%rdi), %r8d xorl %r10d, %r10d leal (%r8,%r10), %r9d movl %r9d, %ebx shrl %ebx andl ...
/lucaderi[P]CRoaring/src/containers/array.c
array_container_grow
void array_container_grow(array_container_t *container, int32_t min, bool preserve) { int32_t max = (min <= DEFAULT_MAX_SIZE ? DEFAULT_MAX_SIZE : 65536); int32_t new_capacity = clamp(grow_capacity(container->capacity), min, max); container->capacity = new_capacity; uint16_t *a...
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx cmpl $0x1001, %esi # imm = 0x1001 movl $0x10000, %eax # imm = 0x10000 movl $0x1000, %r14d # imm = 0x1000 cmovgel %eax, %r14d movl 0x4(%rdi), %eax testl %eax, %eax jle 0x10d3c cmpl $0x3f, %eax ja 0x10d40 addl %eax, %eax jmp 0x10d52 xorl %eax, %...
/lucaderi[P]CRoaring/src/containers/array.c
array_container_add_from_range
void array_container_add_from_range(array_container_t *arr, uint32_t min, uint32_t max, uint16_t step) { for (uint32_t value = min; value < max; value += step) { array_container_append(arr, value); } }
cmpl %edx, %esi jae 0x10e48 pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edx, %ebx movl %esi, %ebp movq %rdi, %r14 movzwl %cx, %r15d movl (%rdi), %esi cmpl 0x4(%r14), %esi jne 0x10e24 incl %esi movq %r14, %rdi movl $0x1, %edx callq 0x10d0f movl (%r14), %esi movq 0x8(%r14), %rax movslq %esi, %rcx leal 0x...
/lucaderi[P]CRoaring/src/containers/array.c
array_container_union
void array_container_union(const array_container_t *array_1, const array_container_t *array_2, array_container_t *out) { const int32_t card_1 = array_1->cardinality, card_2 = array_2->cardinality; const int32_t max_cardinality = card_1 + card_2; if (out...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, %rbx movq %rsi, %r12 movq %rdi, %r13 movslq (%rdi), %r14 movslq (%rsi), %r15 leal (%r15,%r14), %esi cmpl %esi, 0x4(%rdx) jge 0x10e74 movq %rbx, %rdi xorl %edx, %edx callq 0x10d0f movq 0x8(%r13), %rdi movq 0x8(%r12), %rdx movq 0x8(%rbx), %r8 movq %r14, %r...
/lucaderi[P]CRoaring/src/containers/array.c
array_container_validate
bool array_container_validate(const array_container_t *v, const char **reason) { if (v->capacity < 0) { *reason = "negative capacity"; return false; } if (v->cardinality < 0) { *reason = "negative cardinality"; return false; } if (v->cardinality > v->capacity) { ...
movl 0x4(%rdi), %eax testl %eax, %eax js 0x112cb movl (%rdi), %ecx testl %ecx, %ecx js 0x112d4 cmpl %eax, %ecx jbe 0x112dd leaq 0x12f5f(%rip), %rdx # 0x24228 jmp 0x1133c leaq 0x12f2f(%rip), %rdx # 0x24201 jmp 0x1133c leaq 0x12f38(%rip), %rdx # 0x24213 jmp 0x1133c cmpl $0x1000, %ecx # imm = 0x1000 ...
/lucaderi[P]CRoaring/src/containers/array.c
array_container_is_subset
bool array_container_is_subset(const array_container_t *container1, const array_container_t *container2) { if (container1->cardinality > container2->cardinality) { return false; } int i1 = 0, i2 = 0; while (i1 < container1->cardinality && i2 < container2->cardinali...
movl (%rdi), %ecx movl (%rsi), %edx xorl %eax, %eax cmpl %edx, %ecx jg 0x113ea testl %ecx, %ecx jle 0x113e5 movq 0x8(%rdi), %rdi movq 0x8(%rsi), %rsi xorl %eax, %eax movl $0x1, %r8d movslq %eax, %r9 movzwl (%rdi,%r9,2), %r9d movzwl -0x2(%rsi,%r8,2), %r10d cmpw %r10w, %r9w jne 0x113d3 incl %eax jmp 0x113d5 jbe 0x113eb c...
/lucaderi[P]CRoaring/src/containers/array.c
array_container_read
int32_t array_container_read(int32_t cardinality, array_container_t *container, const char *buf) { if (container->capacity < cardinality) { array_container_grow(container, cardinality, false); } container->cardinality = cardinality; memcpy(container->array, buf, cont...
pushq %rbp pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %rbx movl %edi, %ebp cmpl %edi, 0x4(%rsi) jge 0x1140b movq %rbx, %rdi movl %ebp, %esi xorl %edx, %edx callq 0x10d0f movl %ebp, (%rbx) movq 0x8(%rbx), %rdi movslq %ebp, %rdx addq %rdx, %rdx movq %r14, %rsi callq 0x10a0 movl (%rbx), %eax addl %eax, %eax popq %rb...
/lucaderi[P]CRoaring/src/containers/array.c
bitset_container_set_range
void bitset_container_set_range(bitset_container_t *bitset, uint32_t begin, uint32_t end) { bitset_set_range(bitset->words, begin, end); bitset->cardinality = bitset_container_compute_cardinality(bitset); // could be smarter }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx cmpl %edx, %esi je 0x11d11 movl %edx, %r14d movq 0x8(%rbx), %r15 movl %esi, %eax shrl $0x6, %eax movq $-0x1, %rdx movl %esi, %ecx shlq %cl, %rdx leal -0x1(%r14), %ebp shrl $0x6, %ebp movl %ebp, %ecx subl %eax, %ecx jne 0x11cd1 negb %r14b movl %r14d,...
/lucaderi[P]CRoaring/src/containers/bitset.c
bitset_container_intersect
bool bitset_container_intersect(const bitset_container_t *src_1, const bitset_container_t *src_2) { // could vectorize, but this is probably already quite fast in practice const uint64_t *__restrict__ words_1 = src_1->words; const uint64_t *__restrict__ words_2 = src_2->words...
movq 0x8(%rdi), %rcx movq 0x8(%rsi), %rdx movq (%rdx), %rsi movb $0x1, %al testq %rsi, (%rcx) je 0x11d39 retq xorl %esi, %esi movq %rsi, %rax cmpq $0x3ff, %rsi # imm = 0x3FF je 0x11d57 movq 0x8(%rdx,%rax,8), %rdi leaq 0x1(%rax), %rsi testq %rdi, 0x8(%rcx,%rax,8) je 0x11d3b cmpq $0x3ff, %rax # imm ...
/lucaderi[P]CRoaring/src/containers/bitset.c
avx512_vpopcount
static inline uint64_t avx512_vpopcount(const __m512i *data, const uint64_t size) { const uint64_t limit = size - size % 4; __m512i total = _mm512_setzero_si512(); uint64_t i = 0; for (; i < limit; i += 4) { VPOPCNT_AND_ADD(data + i, 0, total); VP...
addq $0xc0, %rdi vpxor %xmm0, %xmm0, %xmm0 movq $-0x4, %rax vpopcntq -0xc0(%rdi), %zmm1 vpaddq %zmm0, %zmm1, %zmm0 vpopcntq -0x80(%rdi), %zmm1 vpopcntq -0x40(%rdi), %zmm2 vpaddq %zmm2, %zmm1, %zmm1 vpaddq %zmm1, %zmm0, %zmm0 vpopcntq (%rdi), %zmm1 vpaddq %zmm1, %zmm0, %zmm0 addq $0x4, %rax addq $0x100, %rdi ...
/lucaderi[P]CRoaring/include/roaring/bitset_util.h
bitset_container_number_of_runs
int bitset_container_number_of_runs(bitset_container_t *bc) { int num_runs = 0; uint64_t next_word = bc->words[0]; for (int i = 0; i < BITSET_CONTAINER_SIZE_IN_WORDS-1; ++i) { uint64_t word = next_word; next_word = bc->words[i+1]; num_runs += roaring_hamming((~word) & (word << 1)) + ( (word >> 63) & ...
pushq %r15 pushq %r14 pushq %rbx movq 0x8(%rdi), %r9 movq (%r9), %rcx xorl %eax, %eax movl $0x1, %r10d movabsq $0x5555555555555555, %r8 # imm = 0x5555555555555555 movabsq $0x3333333333333333, %rdi # imm = 0x3333333333333333 movabsq $0xf0f0f0f0f0f0f0f, %rsi # imm = 0xF0F0F0F0F0F0F0F movabsq $0x101010101010101, %rdx # im...
/lucaderi[P]CRoaring/src/containers/bitset.c
bitset_container_iterate
bool bitset_container_iterate(const bitset_container_t *cont, uint32_t base, roaring_iterator iterator, void *ptr) { for (int32_t i = 0; i < BITSET_CONTAINER_SIZE_IN_WORDS; ++i ) { uint64_t w = cont->words[i]; while (w != 0) { uint64_t t = w & (~w + 1); int r = roaring_trailing_zeroes(w); if...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rcx, %rbx movq %rdx, %r14 movl %esi, %ebp xorl %r13d, %r13d xorl %r12d, %r12d movq %rdi, (%rsp) movq 0x8(%rdi), %rax movq (%rax,%r13,8), %r15 testq %r15, %r15 je 0x17cf8 bsfq %r15, %rdi addl %ebp, %edi movq %rbx, %rsi callq *%r14 leaq -0...
/lucaderi[P]CRoaring/src/containers/bitset.c
array_run_container_union
void array_run_container_union(const array_container_t *src_1, const run_container_t *src_2, run_container_t *dst) { if (run_container_is_full(src_2)) { run_container_copy(src_2, dst); return; } // TODO: see whether the "2*" is sp...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl (%rsi), %esi cmpl $0x1, %esi jne 0x1aa89 movq 0x8(%r14), %rax cmpw $0x0, (%rax) jne 0x1aa89 cmpw $-0x1, 0x2(%rax) je 0x1acab addl (%r15), %esi addl %esi, %esi xorl %ebp, %ebp movq %rbx, %rdi xorl %edx, %edx callq...
/lucaderi[P]CRoaring/src/containers/mixed_union.c
curlx_uztosi
int curlx_uztosi(size_t uznum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(uznum <= (size_t) CURL_MASK_SINT); return (int)(uznum & (size_t) CURL_MASK_SINT); #ifdef __INTEL_COMPILER # pragma warning(pop) #endif }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) jmp 0x2aba movq -0x8(%rbp), %rax andq $0x7fffffff, %rax # imm = 0x7FFFFFFF popq %rbp retq nopw %cs:(%rax,%rax)
/macressler[P]curl/lib/warnless.c
curlx_sltous
unsigned short curlx_sltous(long slnum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(slnum >= 0); DEBUGASSERT((unsigned long) slnum <= (unsigned long) CURL_MASK_USHORT); return (unsigned short)(slnum & (long) CURL_M...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) jmp 0x2b5a jmp 0x2b5c jmp 0x2b5e movq -0x8(%rbp), %rax andq $0xffff, %rax # imm = 0xFFFF popq %rbp retq nopw (%rax,%rax)
/macressler[P]curl/lib/warnless.c
curlx_uztosz
ssize_t curlx_uztosz(size_t uznum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(uznum <= (size_t) CURL_MASK_SSIZE_T); return (ssize_t)(uznum & (size_t) CURL_MASK_SSIZE_T); #ifdef __INTEL_COMPILER # pragma warning(po...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) jmp 0x2b7a movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF andq -0x8(%rbp), %rax popq %rbp retq nopw (%rax,%rax)
/macressler[P]curl/lib/warnless.c
curlx_sotouz
size_t curlx_sotouz(curl_off_t sonum) { #ifdef __INTEL_COMPILER # pragma warning(push) # pragma warning(disable:810) /* conversion may lose significant bits */ #endif DEBUGASSERT(sonum >= 0); return (size_t)(sonum & (curl_off_t) CURL_MASK_USIZE_T); #ifdef __INTEL_COMPILER # pragma warning(pop) #endif }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) jmp 0x2b9a movq -0x8(%rbp), %rax andq $-0x1, %rax popq %rbp retq nopw %cs:(%rax,%rax)
/macressler[P]curl/lib/warnless.c
test
static void test() { //#define X86_CODE32 "\x01\xd8\x81\xc6\x34\x12\x00\x00\x05\x78\x56\x00\x00" //#define X86_CODE32 "\x05\x78\x56\x00\x00" //#define X86_CODE32 "\x01\xd8" //#define X86_CODE32 "\x05\x23\x01\x00\x00" //#define X86_CODE32 "\x8d\x87\x89\x67\x00\x00" //#define X86_CODE32 "\xa1\x13\x48\x6d\x3a\x8b\x81\x23\...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp leaq -0xa0(%rbp), %rdi leaq 0x191a87(%rip), %rsi # 0x1d3ce0 movl $0xa0, %edx callq 0x420c0 movq $0x1000, -0xa8(%rbp) # imm = 0x1000 movl $0x0, -0xb4(%rbp) movslq -0xb4(%rbp), %rax cmpq $0x4, %rax jae 0x42622 movslq -0xb4(%rbp), %rcx leaq -0xa0(%rbp), %rax imulq $0x28, %rcx...
/sidneyp[P]capstone-tricore/tests/test_x86.c
print_insn_detail
static void print_insn_detail(csh ud, cs_mode mode, cs_insn *ins) { int count, i; cs_x86 *x86; // detail can be NULL on "data" instruction if SKIPDATA option is turned ON if (ins->detail == NULL) return; x86 = &(ins->detail->x86); print_string_hex("\tPrefix:", x86->prefix, 4); print_string_hex("\tOpcode:",...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x0, 0xe8(%rax) jne 0x426d6 jmp 0x42b88 movq -0x18(%rbp), %rax movq 0xe8(%rax), %rax addq $0x30, %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rsi leaq 0xf4a4c(%rip), %rdi # 0...
/sidneyp[P]capstone-tricore/tests/test_x86.c
archs_enable
static void archs_enable(void) { static bool initialized = false; if (initialized) return; #ifdef CAPSTONE_HAS_ARM ARM_enable(); #endif #ifdef CAPSTONE_HAS_ARM64 AArch64_enable(); #endif #ifdef CAPSTONE_HAS_MIPS Mips_enable(); #endif #ifdef CAPSTONE_HAS_POWERPC PPC_enable(); #endif #ifdef CAPSTONE_HAS_SPARC ...
pushq %rbp movq %rsp, %rbp testb $0x1, 0x2bdaf9(%rip) # 0x3006e4 je 0x42bef jmp 0x42c1e callq 0x45540 callq 0x45730 callq 0x458a0 callq 0x45a70 callq 0x4b0a0 callq 0x4b220 callq 0x45bf0 callq 0x4b370 movb $0x1, 0x2bdac6(%rip) # 0x3006e4 popq %rbp retq
/sidneyp[P]capstone-tricore/cs.c
cs_support
CAPSTONE_EXPORT bool cs_support(int query) { archs_enable(); if (query == CS_ARCH_ALL) return all_arch == ((1 << CS_ARCH_ARM) | (1 << CS_ARCH_ARM64) | (1 << CS_ARCH_MIPS) | (1 << CS_ARCH_X86) | (1 << CS_ARCH_PPC) | (1 << CS_ARCH_SPARC) | (1 << CS_ARCH_SYSZ) | (1 << CS_ARCH_XCORE)); if ((unsigned int)...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x8(%rbp) callq 0x42be0 cmpl $0xffff, -0x8(%rbp) # imm = 0xFFFF jne 0x42c4d cmpl $0xff, 0x2bda9d(%rip) # 0x3006e0 sete %al andb $0x1, %al movb %al, -0x1(%rbp) jmp 0x42c96 cmpl $0x8, -0x8(%rbp) jae 0x42c74 movl 0x2bda87(%rip), %eax # 0x3006e0 movl -0x8(%rb...
/sidneyp[P]capstone-tricore/cs.c
cs_strerror
CAPSTONE_EXPORT const char *cs_strerror(cs_err code) { switch(code) { default: return "Unknown error code"; case CS_ERR_OK: return "OK (CS_ERR_OK)"; case CS_ERR_MEM: return "Out of memory (CS_ERR_MEM)"; case CS_ERR_ARCH: return "Invalid architecture (CS_ERR_ARCH)"; case CS_ERR_HANDLE: return "...
pushq %rbp movq %rsp, %rbp movl %edi, -0xc(%rbp) movl -0xc(%rbp), %eax movq %rax, -0x18(%rbp) subq $0xb, %rax ja 0x42d08 movq -0x18(%rbp), %rax leaq 0xf46b5(%rip), %rcx # 0x1373b4 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0xf4735(%rip), %rax # 0x137444 movq %rax, -0x8(%rbp) jmp 0x42db8 leaq 0xf...
/sidneyp[P]capstone-tricore/cs.c
cs_open
CAPSTONE_EXPORT cs_err cs_open(cs_arch arch, cs_mode mode, csh *handle) { cs_err err; struct cs_struct *ud; if (!cs_mem_malloc || !cs_mem_calloc || !cs_mem_realloc || !cs_mem_free || !cs_vsnprintf) // Error: before cs_open(), dynamic memory management must be initialized // with cs_option(CS_OPT_MEM) return CS...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) cmpq $0x0, 0x1912c6(%rip) # 0x1d40a0 je 0x42e04 cmpq $0x0, 0x1912c4(%rip) # 0x1d40a8 je 0x42e04 cmpq $0x0, 0x1912c2(%rip) # 0x1d40b0 je 0x42e04 cmpq $0x0, 0x1912c0(%rip) # 0x1d40b8 je 0x42e04 cmpq ...
/sidneyp[P]capstone-tricore/cs.c
cs_close
CAPSTONE_EXPORT cs_err cs_close(csh *handle) { struct cs_struct *ud; if (*handle == 0) // invalid handle return CS_ERR_CSH; ud = (struct cs_struct *)(*handle); if (ud->printer_info) cs_mem_free(ud->printer_info); cs_mem_free(ud->insn_cache); memset(ud, 0, sizeof(*ud)); cs_mem_free(ud); // invalidate...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax cmpq $0x0, (%rax) jne 0x42f4f movl $0x4, -0x4(%rbp) jmp 0x42fb6 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x0, 0x10(%rax) je 0x42f76 movq 0x19114c(%rip), %rax # 0x1d40b8 movq -...
/sidneyp[P]capstone-tricore/cs.c
cs_option
CAPSTONE_EXPORT cs_err cs_option(csh ud, cs_opt_type type, size_t value) { struct cs_struct *handle; archs_enable(); // cs_option() can be called with NULL handle just for CS_OPT_MEM // This is supposed to be executed before all other APIs (even cs_open()) if (type == CS_OPT_MEM) { cs_opt_mem *mem = (cs_opt_mem...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) callq 0x42be0 cmpl $0x4, -0x14(%rbp) jne 0x4303c movq -0x20(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, 0x1910ac(%rip) # 0x1d40a0 movq -0x30(%rbp), %rax movq 0x8...
/sidneyp[P]capstone-tricore/cs.c
skipdata_size
static uint8_t skipdata_size(cs_struct *handle) { switch(handle->arch) { default: // should never reach return -1; case CS_ARCH_ARM: // skip 2 bytes on Thumb mode. if (handle->mode & CS_MODE_THUMB) return 2; // otherwise, skip 4 bytes return 4; case CS_ARCH_ARM64: case CS_ARCH_MIPS: cas...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movl (%rax), %eax movq %rax, -0x18(%rbp) subq $0x7, %rax ja 0x4317c movq -0x18(%rbp), %rax leaq 0xf4271(%rip), %rcx # 0x1373e4 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movb $-0x1, -0x1(%rbp) jmp 0x431b3 movq -0x10(%rbp), %rax movl...
/sidneyp[P]capstone-tricore/cs.c
cs_disasm
CAPSTONE_EXPORT size_t cs_disasm(csh ud, const uint8_t *buffer, size_t size, uint64_t offset, size_t count, cs_insn **insn) { struct cs_struct *handle; MCInst mci; uint16_t insn_size; size_t c = 0, i; unsigned int f = 0; // index of the next instruction in the cache cs_insn *insn_cache; // cache contains disassem...
pushq %rbp movq %rsp, %rbp subq $0x600, %rsp # imm = 0x600 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq $0x0, -0x380(%rbp) movl $0x0, -0x38c(%rbp) movq $0x0, -0x3a0(%rbp) movq $0x0, -0x3a8(%rbp) movl $0x20, -0x3dc...
/sidneyp[P]capstone-tricore/cs.c
fill_insn
static void fill_insn(struct cs_struct *handle, cs_insn *insn, char *buffer, MCInst *mci, PostPrinter_t postprinter, const uint8_t *code) { #ifndef CAPSTONE_DIET char *sp, *mnem; #endif unsigned int copy_size = MIN(sizeof(insn->bytes), insn->size); // fill the instruction bytes. // we might skip some redundant b...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x10(%rbp), %rax movzwl 0x10(%rax), %eax movl %eax, %ecx movl $0x10, %eax cmpq %rcx, %rax jae 0x438ff movl $0x10, %eax movq %rax, -0x50...
/sidneyp[P]capstone-tricore/cs.c
skipdata_opstr
static void skipdata_opstr(char *opstr, const uint8_t *buffer, size_t size) { char *p = opstr; int len; size_t i; if (!size) { opstr[0] = '\0'; return; } len = sprintf(p, "0x%02x", buffer[0]); p+= len; for(i = 1; i < size; i++) { len = sprintf(p, ", 0x%02x", buffer[i]); p+= len; } }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x20(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x43abc movq -0x8(%rbp), %rax movb $0x0, (%rax) jmp 0x43b3b movq -0x20(%rbp), %rdi movq -0x10(%rbp), %rax movzbl (%rax), %edx leaq 0xf3b...
/sidneyp[P]capstone-tricore/cs.c
cs_reg_read
CAPSTONE_EXPORT bool cs_reg_read(csh ud, const cs_insn *insn, unsigned int reg_id) { struct cs_struct *handle; if (!ud) return false; handle = (struct cs_struct *)(uintptr_t)ud; if (!handle->detail) { handle->errnum = CS_ERR_DETAIL; return false; } if(!insn->id) { handle->errnum = CS_ERR_SKIPDATA; re...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) cmpq $0x0, -0x10(%rbp) jne 0x44223 movb $0x0, -0x1(%rbp) jmp 0x442a8 movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpl $0x0, 0x68(%rax) jne 0x44246 movq -0x28(%rbp), %rax movl $0x7, 0...
/sidneyp[P]capstone-tricore/cs.c
cs_reg_write
CAPSTONE_EXPORT bool cs_reg_write(csh ud, const cs_insn *insn, unsigned int reg_id) { struct cs_struct *handle; if (!ud) return false; handle = (struct cs_struct *)(uintptr_t)ud; if (!handle->detail) { handle->errnum = CS_ERR_DETAIL; return false; } if(!insn->id) { handle->errnum = CS_ERR_SKIPDATA; r...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) cmpq $0x0, -0x10(%rbp) jne 0x442e3 movb $0x0, -0x1(%rbp) jmp 0x4436c movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpl $0x0, 0x68(%rax) jne 0x44306 movq -0x28(%rbp), %rax movl $0x7, 0...
/sidneyp[P]capstone-tricore/cs.c
cs_op_count
CAPSTONE_EXPORT int cs_op_count(csh ud, const cs_insn *insn, unsigned int op_type) { struct cs_struct *handle; unsigned int count = 0, i; if (!ud) return -1; handle = (struct cs_struct *)(uintptr_t)ud; if (!handle->detail) { handle->errnum = CS_ERR_DETAIL; return -1; } if(!insn->id) { handle->errnum =...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl $0x0, -0x2c(%rbp) cmpq $0x0, -0x10(%rbp) jne 0x443a9 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x4473f movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpl $0x0, 0x68(%rax) jne 0x443d2 mov...
/sidneyp[P]capstone-tricore/cs.c
cs_op_index
CAPSTONE_EXPORT int cs_op_index(csh ud, const cs_insn *insn, unsigned int op_type, unsigned int post) { struct cs_struct *handle; unsigned int count = 0, i; if (!ud) return -1; handle = (struct cs_struct *)(uintptr_t)ud; if (!handle->detail) { handle->errnum = CS_ERR_DETAIL; return -1; } if(!insn->id)...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movl %ecx, -0x20(%rbp) movl $0x0, -0x2c(%rbp) cmpq $0x0, -0x10(%rbp) jne 0x4477c movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x44ba5 movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax cmpl $0x0, 0x6...
/sidneyp[P]capstone-tricore/cs.c
MCInst_insert0
void MCInst_insert0(MCInst *inst, int index, MCOperand *Op) { int i; for(i = inst->size; i > index; i--) //memcpy(&(inst->Operands[i]), &(inst->Operands[i-1]), sizeof(MCOperand)); inst->Operands[i] = inst->Operands[i-1]; inst->Operands[index] = *Op; inst->size++; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movzbl 0x4(%rax), %eax movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax cmpl -0xc(%rbp), %eax jle 0x44c76 movq -0x8(%rbp), %rax addq $0x10, %rax movslq -0x1c(%rbp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq ...
/sidneyp[P]capstone-tricore/MCInst.c
SStream_concat0
void SStream_concat0(SStream *ss, char *s) { #ifndef CAPSTONE_DIET unsigned int len = (unsigned int) strlen(s); memcpy(ss->buffer + ss->index, s, len); ss->index += len; ss->buffer[ss->index] = '\0'; #endif }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x42060 movl %eax, -0x14(%rbp) movq -0x8(%rbp), %rdi movq -0x8(%rbp), %rax movslq 0x200(%rax), %rax addq %rax, %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %eax movl %eax, %edx callq 0x420c0 movl -0x14...
/sidneyp[P]capstone-tricore/SStream.c
SStream_concat
void SStream_concat(SStream *ss, const char *fmt, ...) { #ifndef CAPSTONE_DIET va_list ap; int ret; va_start(ap, fmt); ret = cs_vsnprintf(ss->buffer + ss->index, sizeof(ss->buffer) - (ss->index + 1), fmt, ap); va_end(ap); ss->index += ret; #endif }
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp testb %al, %al je 0x450fb movaps %xmm0, -0xc0(%rbp) movaps %xmm1, -0xb0(%rbp) movaps %xmm2, -0xa0(%rbp) movaps %xmm3, -0x90(%rbp) movaps %xmm4, -0x80(%rbp) movaps %xmm5, -0x70(%rbp) movaps %xmm6, -0x60(%rbp) movaps %xmm7, -0x50(%rbp) movq %r9, -0xc8(%rbp) movq %r8, -0xd0(%rbp...
/sidneyp[P]capstone-tricore/SStream.c
printInt64Bang
void printInt64Bang(SStream *O, int64_t val) { if (val >= 0) { if (val > HEX_THRESHOLD) SStream_concat(O, "#0x%"PRIx64, val); else SStream_concat(O, "#%"PRIu64, val); } else { if (val <- HEX_THRESHOLD) SStream_concat(O, "#-0x%"PRIx64, -val); else SStream_concat(O, "#-%"PRIu64, -val); } }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) jl 0x451ee cmpq $0x9, -0x10(%rbp) jle 0x451d6 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx leaq 0xf247d(%rip), %rsi # 0x13764a movb $0x0, %al callq 0x450c0 jmp 0x451ec movq -0x8(%rbp), %rdi movq -0x10(%rb...
/sidneyp[P]capstone-tricore/SStream.c
printInt64
void printInt64(SStream *O, int64_t val) { if (val >= 0) { if (val > HEX_THRESHOLD) SStream_concat(O, "0x%"PRIx64, val); else SStream_concat(O, "%"PRIu64, val); } else { if (val <- HEX_THRESHOLD) SStream_concat(O, "-0x%"PRIx64, -val); else SStream_concat(O, "-%"PRIu64, -val); } }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) jl 0x452de cmpq $0x9, -0x10(%rbp) jle 0x452c6 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rdx leaq 0x179d08(%rip), %rsi # 0x1befc5 movb $0x0, %al callq 0x450c0 jmp 0x452dc movq -0x8(%rbp), %rdi movq -0x10(%rb...
/sidneyp[P]capstone-tricore/SStream.c
printInt32Bang
void printInt32Bang(SStream *O, int32_t val) { if (val >= 0) { if (val > HEX_THRESHOLD) SStream_concat(O, "#0x%x", val); else SStream_concat(O, "#%u", val); } else { if (val <- HEX_THRESHOLD) SStream_concat(O, "#-0x%x", -val); else SStream_concat(O, "#-%u", -val); } }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) cmpl $0x0, -0xc(%rbp) jl 0x453c9 cmpl $0x9, -0xc(%rbp) jle 0x453b2 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %edx leaq 0x106655(%rip), %rsi # 0x14b9fe movb $0x0, %al callq 0x450c0 jmp 0x453c7 movq -0x8(%rbp), %rdi movl -0xc(%rbp), %...
/sidneyp[P]capstone-tricore/SStream.c
init
static cs_err init(cs_struct *ud) { MCRegisterInfo *mri; // verify if requested mode is valid if (ud->mode & ~(CS_MODE_LITTLE_ENDIAN | CS_MODE_ARM | CS_MODE_V8 | CS_MODE_MCLASS | CS_MODE_THUMB | CS_MODE_BIG_ENDIAN)) return CS_ERR_MODE; mri = cs_mem_malloc(sizeof(*mri)); ARM_init(mri); ARM_getRegName(ud, ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movl 0x4(%rax), %eax andl $0x7fffff8f, %eax # imm = 0x7FFFFF8F cmpl $0x0, %eax je 0x455b9 movl $0x5, -0x4(%rbp) jmp 0x4567b movl $0x58, %edi leaq 0x18eadb(%rip), %rax # 0x1d40a0 callq *(%rax) movq %rax, -0x18(%rbp) movq -...
/sidneyp[P]capstone-tricore/arch/ARM/ARMModule.c
option
static cs_err option(cs_struct *handle, cs_opt_type type, size_t value) { switch(type) { case CS_OPT_MODE: if (value & CS_MODE_THUMB) handle->disasm = Thumb_getInstruction; else handle->disasm = ARM_getInstruction; handle->mode = (cs_mode)value; break; case CS_OPT_SYNTAX: ARM_getRegName(han...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movl -0xc(%rbp), %eax movl %eax, -0x1c(%rbp) subl $0x1, %eax je 0x456f7 jmp 0x456b0 movl -0x1c(%rbp), %eax subl $0x3, %eax jne 0x45715 jmp 0x456ba movq -0x18(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0x4...
/sidneyp[P]capstone-tricore/arch/ARM/ARMModule.c
init
static cs_err init(cs_struct *ud) { MCRegisterInfo *mri; // verify if requested mode is valid if (ud->mode & ~(CS_MODE_LITTLE_ENDIAN | CS_MODE_ARM | CS_MODE_BIG_ENDIAN)) return CS_ERR_MODE; mri = cs_mem_malloc(sizeof(*mri)); AArch64_init(mri); ud->printer = AArch64_printInst; ud->printer_info = mri; ud->ge...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movl 0x4(%rax), %eax andl $0x7fffffff, %eax # imm = 0x7FFFFFFF cmpl $0x0, %eax je 0x457b9 movl $0x5, -0x4(%rbp) jmp 0x4585c movl $0x58, %edi leaq 0x18e8db(%rip), %rax # 0x1d40a0 callq *(%rax) movq %rax, -0x18(%rbp) movq -...
/sidneyp[P]capstone-tricore/arch/AArch64/AArch64Module.c
init
static cs_err init(cs_struct *ud) { MCRegisterInfo *mri; // verify if requested mode is valid if (ud->mode & ~(CS_MODE_LITTLE_ENDIAN | CS_MODE_32 | CS_MODE_64 | CS_MODE_MICRO | CS_MODE_MIPS32R6 | CS_MODE_MIPSGP64 | CS_MODE_BIG_ENDIAN)) return CS_ERR_MODE; mri = cs_mem_malloc(sizeof(*mri)); Mips_init(m...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movl 0x4(%rax), %eax andl $0x7fffff23, %eax # imm = 0x7FFFFF23 cmpl $0x0, %eax je 0x45929 movl $0x5, -0x4(%rbp) jmp 0x459ec movl $0x58, %edi leaq 0x18e76b(%rip), %rax # 0x1d40a0 callq *(%rax) movq %rax, -0x18(%rbp) movq -...
/sidneyp[P]capstone-tricore/arch/Mips/MipsModule.c
option
static cs_err option(cs_struct *handle, cs_opt_type type, size_t value) { if (type == CS_OPT_MODE) { if (value & CS_MODE_32) handle->disasm = Mips_getInstruction; else handle->disasm = Mips64_getInstruction; handle->mode = (cs_mode)value; } return CS_ERR_OK; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) cmpl $0x3, -0xc(%rbp) jne 0x45a50 movq -0x18(%rbp), %rax andq $0x4, %rax cmpq $0x0, %rax je 0x45a34 movq -0x8(%rbp), %rax leaq 0x88fb2(%rip), %rcx # 0xce9e0 movq %rcx, 0x18(%rax) jmp 0x45a43 movq -0x8(%rbp), %rax leaq 0x89...
/sidneyp[P]capstone-tricore/arch/Mips/MipsModule.c