name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
printBranchOperand
static void printBranchOperand(MCInst *MI, unsigned OpNo, SStream *O) { if (!MCOperand_isImm(MCInst_getOperand(MI, OpNo))) { printOperand(MI, OpNo, O); return; } // Branches can take an immediate operand. This is used by the branch // selection pass to print .+8, an eight byte displacement from the PC. print...
pushq %rbp pushq %r14 pushq %rbx movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x446e4 movq %rax, %rdi callq 0x4472a movq %r14, %rdi movl %ebp, %esi movq %rbx, %rdx testb %al, %al je 0x9cc71 popq %rbx popq %r14 popq %rbp jmp 0x9cc7a popq %rbx popq %r14 popq %rbp jmp 0x8c798
/bughoho[P]capstone/arch/PowerPC/PPCInstPrinter.c
printU16ImmOperand
static void printU16ImmOperand(MCInst *MI, unsigned OpNo, SStream *O) { if (MCOperand_isImm(MCInst_getOperand(MI, OpNo))) { unsigned short Imm = (unsigned short)MCOperand_getImm(MCInst_getOperand(MI, OpNo)); if (Imm > HEX_THRESHOLD) SStream_concat(O, "0x%x", Imm); else SStream_concat(O, "%u", Imm); if (...
pushq %rbp pushq %r14 pushq %rbx movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx callq 0x446e4 movq %rax, %rdi callq 0x4472a testb %al, %al je 0x9cef2 movq %rbx, %rdi movl %ebp, %esi callq 0x446e4 movq %rax, %rdi callq 0x44742 movzwl %ax, %ebp cmpl $0xa, %ebp leaq 0x4a473(%rip), %rax # 0xe72f5 leaq 0x2f2dd(%rip), %...
/bughoho[P]capstone/arch/PowerPC/PPCInstPrinter.c
printU6ImmOperand
static void printU6ImmOperand(MCInst *MI, unsigned OpNo, SStream *O) { unsigned int Value = (unsigned int)MCOperand_getImm(MCInst_getOperand(MI, OpNo)); //assert(Value <= 63 && "Invalid u6imm argument!"); if (Value > HEX_THRESHOLD) SStream_concat(O, "0x%x", Value); else SStream_concat(O, "%u", Value); if (MI-...
pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r15 movq %rdi, %rbx callq 0x446e4 movq %rax, %rdi callq 0x44742 movq %rax, %r14 cmpl $0xa, %r14d leaq 0x4a3cc(%rip), %rax # 0xe72f5 leaq 0x2f236(%rip), %rsi # 0xcc166 cmovaeq %rax, %rsi movq %r15, %rdi movl %r14d, %edx xorl %eax, %eax callq 0x44809 movq 0x320(%rbx), ...
/bughoho[P]capstone/arch/PowerPC/PPCInstPrinter.c
PPC_reg_name
const char *PPC_reg_name(csh handle, unsigned int reg) { #ifndef CAPSTONE_DIET if (reg >= PPC_REG_ENDING) return NULL; return reg_name_maps[reg].name; #else return NULL; #endif }
cmpl $0xb1, %esi jbe 0x9d7f3 xorl %eax, %eax retq movl %esi, %eax shlq $0x4, %rax leaq 0xe9840(%rip), %rcx # 0x187040 movq 0x8(%rax,%rcx), %rax retq
/bughoho[P]capstone/arch/PowerPC/PPCMapping.c
PPC_group_name
const char *PPC_group_name(csh handle, unsigned int id) { #ifndef CAPSTONE_DIET // verify group id if (id >= PPC_GRP_ENDING || (id > PPC_GRP_JUMP && id < PPC_GRP_ALTIVEC)) return NULL; // NOTE: when new generic groups are added, 2 must be changed accordingly if (id >= 128) return group_name_maps[id - 128 + 2]....
cmpl $0x8a, %esi setae %al leal -0x2(%rsi), %ecx cmpl $0x7e, %ecx setb %cl orb %al, %cl je 0x9d944 xorl %eax, %eax retq leal -0x7e(%rsi), %eax cmpl $0x7f, %esi cmovbel %esi, %eax shlq $0x4, %rax leaq 0xea208(%rip), %rcx # 0x187b60 movq 0x8(%rax,%rcx), %rax retq
/bughoho[P]capstone/arch/PowerPC/PPCMapping.c
X86_getInstruction
bool X86_getInstruction(csh ud, const uint8_t *code, size_t code_len, MCInst *instr, uint16_t *size, uint64_t address, void *_info) { cs_struct *handle = (cs_struct *)(uintptr_t)ud; InternalInstruction insn; struct reader_info info; int ret; bool result; info.code = code; info.size = code_len; info.offset = ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x168, %rsp # imm = 0x168 movq %r9, %r12 movq %r8, %r15 movq %rcx, %rbx movq %rdi, %r14 movq %rsi, 0x150(%rsp) movq %rdx, 0x158(%rsp) movq %r9, 0x160(%rsp) leaq 0x8(%rsp), %rdi xorl %ebp, %ebp movl $0x98, %edx xorl %esi, %esi callq 0x430...
/bughoho[P]capstone/arch/X86/X86Disassembler.c
readModRM
static int readModRM(struct InternalInstruction *insn) { uint8_t mod, rm, reg; // dbgprintf(insn, "readModRM()"); // already got ModRM byte? if (insn->consumedModRM) return 0; if (consumeByte(insn, &insn->modRM)) return -1; // mark that we already got ModRM insn->consumedModRM = true; // save original ...
pushq %r15 pushq %r14 pushq %rbx xorl %ebx, %ebx cmpb $0x0, 0x70(%rdi) jne 0x9ff0d movq %rdi, %r14 leaq 0x108(%rdi), %r15 movq 0xa0(%rdi), %rdi movq 0xa8(%r14), %rdx movq %r15, %rsi callq *0x98(%r14) movl $0xffffffff, %ebx # imm = 0xFFFFFFFF testl %eax, %eax jne 0x9ff0d incq 0xa8(%r14) movb $0x1, 0x70(%r14) movb ...
/bughoho[P]capstone/arch/X86/X86DisassemblerDecoder.c
X86_Intel_printInst
void X86_Intel_printInst(MCInst *MI, SStream *O, void *Info) { char *mnem; x86_reg reg, reg2; // Try to print any aliases first. mnem = printAliasInstr(MI, O, Info); if (mnem) cs_mem_free(mnem); else printInstruction(MI, O, Info); reg = X86_insn_reg_intel(MCInst_getOpcode(MI)); if (MI->csh->detail) { //...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx callq 0x446dd cmpl $0x268, %eax # imm = 0x268 jg 0xa0ec3 cmpl $0x15, %eax je 0xa0ef1 cmpl $0x16, %eax jne 0xa108e movq %rbx, %rdi callq 0x446f2 cmpl $0x1, %eax jne 0xa108e movq %rbx, %...
/bughoho[P]capstone/arch/X86/X86IntelInstPrinter.c
printMemReference
static void printMemReference(MCInst *MI, unsigned Op, SStream *O) { bool NeedPlus = false; MCOperand *BaseReg = MCInst_getOperand(MI, Op + X86_AddrBaseReg); uint64_t ScaleVal = MCOperand_getImm(MCInst_getOperand(MI, Op + X86_AddrScaleAmt)); MCOperand *IndexReg = MCInst_getOperand(MI, Op + X86_AddrIndexReg); MCO...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, 0x18(%rsp) movl %esi, %ebp movq %rdi, %rbx callq 0x446e4 movq %rax, %r12 leal 0x1(%rbp), %esi movq %rbx, %rdi callq 0x446e4 movq %rax, %rdi callq 0x44742 movq %rax, %r13 leal 0x2(%rbp), %esi movq %rbx, %rdi movl %esi, 0xc(%rsp...
/bughoho[P]capstone/arch/X86/X86IntelInstPrinter.c
op_addReg
void op_addReg(MCInst *MI, int reg) { if (MI->csh->detail) { MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].type = X86_OP_REG; MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].reg = reg; MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].siz...
movq 0x320(%rdi), %rax cmpl $0x0, 0x68(%rax) movslq %esi, %rax je 0xa3e2b movq 0x310(%rdi), %rcx movq 0xe8(%rcx), %rcx movzbl 0x5c(%rcx), %edx leaq (%rdx,%rdx,2), %rdx shll $0x4, %edx movl $0x1, 0x60(%rcx,%rdx) movq 0x310(%rdi), %rcx movq 0xe8(%rcx), %rcx movzbl 0x5c(%rcx), %edx leaq (%rdx,%rdx,2), %rdx shll $0x4, %edx...
/bughoho[P]capstone/arch/X86/X86Mapping.c
op_addImm
void op_addImm(MCInst *MI, int v) { if (MI->csh->detail) { MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].type = X86_OP_IMM; MI->flat_insn->detail->x86.operands[MI->flat_insn->detail->x86.op_count].imm = v; // if op_count > 0, then this operand's size is taken from the destination op ...
movq 0x320(%rdi), %rax cmpl $0x0, 0x68(%rax) je 0xa3ef7 movq 0x310(%rdi), %rax movq 0xe8(%rax), %rax movzbl 0x5c(%rax), %ecx leaq (%rcx,%rcx,2), %rcx shll $0x4, %ecx movl $0x2, 0x60(%rax,%rcx) movslq %esi, %rax movq 0x310(%rdi), %rcx movq 0xe8(%rcx), %rcx movzbl 0x5c(%rcx), %edx leaq (%rdx,%rdx,2), %rdx shll $0x4, %edx...
/bughoho[P]capstone/arch/X86/X86Mapping.c
DecodeIntRegsRegisterClass
static DecodeStatus DecodeIntRegsRegisterClass(MCInst *Inst, unsigned RegNo, uint64_t Address, const void *Decoder) { unsigned Reg; if (RegNo > 31) return MCDisassembler_Fail; Reg = IntRegDecoderTable[RegNo]; MCOperand_CreateReg0(Inst, Reg); return MCDisassembler_Success; }
xorl %eax, %eax cmpl $0x1f, %esi ja 0xa4d40 pushq %rax movl %esi, %eax leaq 0xa51e1(%rip), %rcx # 0x149f10 movl (%rcx,%rax,4), %esi callq 0x4476d movl $0x3, %eax addq $0x8, %rsp retq
/bughoho[P]capstone/arch/Sparc/SparcDisassembler.c
DecodeQFPRegsRegisterClass
static DecodeStatus DecodeQFPRegsRegisterClass(MCInst *Inst, unsigned RegNo, uint64_t Address, const void *Decoder) { unsigned Reg; if (RegNo > 31) return MCDisassembler_Fail; Reg = QFPRegDecoderTable[RegNo]; if (Reg == ~0U) return MCDisassembler_Fail; MCOperand_CreateReg0(Inst, Reg); return MCDisassemb...
xorl %eax, %eax cmpl $0x1f, %esi ja 0xa4db4 movl $0xcccccccc, %ecx # imm = 0xCCCCCCCC btq %rsi, %rcx jb 0xa4db4 pushq %rax movl %esi, %eax leaq 0xa52ed(%rip), %rcx # 0x14a090 movl (%rcx,%rax,4), %esi callq 0x4476d movl $0x3, %eax addq $0x8, %rsp retq
/bughoho[P]capstone/arch/Sparc/SparcDisassembler.c
Sparc_printInst
void Sparc_printInst(MCInst *MI, SStream *O, void *Info) { char *mnem, *p; char instr[64]; // Sparc has no instruction this long mnem = printAliasInstr(MI, O, Info); if (mnem) { // fixup instruction id due to the change in alias instruction strncpy(instr, mnem, strlen(mnem)); instr[strlen(mnem)] = '\0'; //...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx callq 0xa5a8b testq %rax, %rax je 0xa50c2 movq %rax, %r15 movq %rax, %rdi callq 0x43080 movq %rsp, %r14 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x43040 movq %r15, %rdi callq 0x43080 movb $0x0, (%rsp,%rax) movq %r1...
/bughoho[P]capstone/arch/Sparc/SparcInstPrinter.c
set_mem_access
static void set_mem_access(MCInst *MI, bool status) { if (MI->csh->detail != CS_OPT_ON) return; MI->csh->doing_mem = status; if (status) { MI->flat_insn->detail->sparc.operands[MI->flat_insn->detail->sparc.op_count].type = SPARC_OP_MEM; MI->flat_insn->detail->sparc.operands[MI->flat_insn->detail->sparc.op_co...
movq 0x320(%rdi), %rax cmpl $0x3, 0x68(%rax) jne 0xbb7af movb %sil, 0x70(%rax) movq 0x310(%rdi), %rax movq 0xe8(%rax), %rax testb %sil, %sil je 0xbb7ac movzbl 0x38(%rax), %ecx leaq (%rcx,%rcx,2), %rcx movl $0x3, 0x3c(%rax,%rcx,4) movq 0x310(%rdi), %rax movq 0xe8(%rax), %rax movzbl 0x38(%rax), %ecx leaq (%rcx,%rcx,2), %...
/bughoho[P]capstone/arch/Sparc/SparcInstPrinter.c
Sparc_group_name
const char *Sparc_group_name(csh handle, unsigned int id) { #ifndef CAPSTONE_DIET // verify group id if (id >= SPARC_GRP_ENDING || (id > SPARC_GRP_JUMP && id < SPARC_GRP_HARDQUAD)) return NULL; // NOTE: when new generic groups are added, 2 must be changed accordingly if (id >= 128) return group_name_maps[id - ...
cmpl $0x87, %esi setae %al leal -0x2(%rsi), %ecx cmpl $0x7e, %ecx setb %cl orb %al, %cl je 0xbba32 xorl %eax, %eax retq leal -0x7e(%rsi), %eax cmpl $0x7f, %esi cmovbel %esi, %eax shlq $0x4, %rax leaq 0xd2eda(%rip), %rcx # 0x18e920 movq 0x8(%rax,%rcx), %rax retq
/bughoho[P]capstone/arch/Sparc/SparcMapping.c
Sparc_map_hint
sparc_hint Sparc_map_hint(const char *name) { size_t i, l1, l2; l1 = strlen(name); for(i = 0; i < ARR_SIZE(hint_maps); i++) { l2 = strlen(hint_maps[i].name); if (l1 > l2) { // compare the last part of @name with this hint string if (!strcmp(hint_maps[i].name, name + (l1 - l2))) return hint_maps[i].id;...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdi, %rbx callq 0x43080 movq %rax, %r14 movl $0x8, %r12d leaq 0xd2ed2(%rip), %r13 # 0x18e9b0 movq (%r12,%r13), %r15 movq %r15, %rdi callq 0x43080 movq %r14, %rsi subq %rax, %rsi jbe 0xbbb01 addq %rbx, %rsi movq %r15, %rdi callq 0x430d0 testl %eax, %eax je...
/bughoho[P]capstone/arch/Sparc/SparcMapping.c
decodeBDXAddr64Disp12Operand
static DecodeStatus decodeBDXAddr64Disp12Operand(MCInst *Inst, uint64_t Field, uint64_t Address, const void *Decoder) { return decodeBDXAddr12Operand(Inst, Field, SystemZMC_GR64Regs); }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movl %r14d, %eax shrl $0xc, %eax andl $0xf, %eax movl %r14d, %r15d andl $0xfff, %r15d # imm = 0xFFF xorl %ebp, %ebp movl $0x0, %esi testl %eax, %eax je 0xbd604 leaq 0x91def(%rip), %rcx # 0x14f3f0 movl (%rcx,%rax,4), %es...
/bughoho[P]capstone/arch/SystemZ/SystemZDisassembler.c
decodeBDLAddr64Disp12Len8Operand
static DecodeStatus decodeBDLAddr64Disp12Len8Operand(MCInst *Inst, uint64_t Field, uint64_t Address, const void *Decoder) { return decodeBDLAddr12Len8Operand(Inst, Field, SystemZMC_GR64Regs); }
pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movl %ebx, %eax shrl $0xc, %eax andl $0xf, %eax je 0xbd664 leaq 0x91d91(%rip), %rcx # 0x14f3f0 movl (%rcx,%rax,4), %esi jmp 0xbd666 xorl %esi, %esi movl %ebx, %r15d andl $0xfff, %r15d # imm = 0xFFF shrq $0x10, %rbx movq %r14, %rdi callq 0x44...
/bughoho[P]capstone/arch/SystemZ/SystemZDisassembler.c
decodeBDAddr20Operand
static DecodeStatus decodeBDAddr20Operand(MCInst *Inst, uint64_t Field, const unsigned *Regs) { uint64_t Base = Field >> 20; uint64_t Disp = ((Field << 12) & 0xff000) | ((Field >> 8) & 0xfff); //assert(Base < 16 && "Invalid BDAddr20"); MCOperand_CreateReg0(Inst, Base == 0 ? 0 : Regs[Base]); MCOperand_CreateImm0...
pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 xorl %esi, %esi cmpq $0x100000, %rbx # imm = 0x100000 jb 0xbd781 movq %rbx, %rax shrq $0x14, %rax movl (%rdx,%rax,4), %esi movl %ebx, %eax shll $0xc, %eax shrl $0x8, %ebx andl $0xfff, %ebx # imm = 0xFFF orl %eax, %ebx movq %r14, %rdi ca...
/bughoho[P]capstone/arch/SystemZ/SystemZDisassembler.c
SystemZ_printInst
void SystemZ_printInst(MCInst *MI, SStream *O, void *Info) { printInstruction(MI, O, Info); }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 callq 0x446dd movl %eax, %eax leaq 0x8fcbe(%rip), %rcx # 0x14d490 movl (%rcx,%rax,4), %r15d movl %r15d, %eax andl $0xfff, %eax # imm = 0xFFF leaq 0x1bd09b(%rip), %rcx # 0x27a880 leaq (%rax,%rcx), %rsi decq %rsi movq...
/bughoho[P]capstone/arch/SystemZ/SystemZInstPrinter.c
printPCRelOperand
static void printPCRelOperand(MCInst *MI, int OpNum, SStream *O) { MCOperand *MO = MCInst_getOperand(MI, OpNum); int32_t imm; if (MCOperand_isImm(MO)) { imm = (int32_t)MCOperand_getImm(MO); if (imm >= 0) { if (imm > HEX_THRESHOLD) SStream_concat(O, "0x%x", imm); else SStream_concat(O, "%u", imm); ...
pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r15 movq %rdi, %rbx callq 0x446e4 movq %rax, %r14 movq %rax, %rdi callq 0x4472a testb %al, %al je 0xbe27a movq %r14, %rdi callq 0x44742 movq %rax, %r14 testl %r14d, %r14d js 0xbe1ee cmpl $0xa, %r14d jb 0xbe202 leaq 0x29109(%rip), %rsi # 0xe72f5 jmp 0xbe209 movl %r14d, %e...
/bughoho[P]capstone/arch/SystemZ/SystemZInstPrinter.c
printCond4Operand
static void printCond4Operand(MCInst *MI, int OpNum, SStream *O) { static char *const CondNames[] = { "o", "h", "nle", "l", "nhe", "lh", "ne", "e", "nlh", "he", "nl", "le", "nh", "no" }; uint64_t Imm = MCOperand_getImm(MCInst_getOperand(MI, OpNum)); // assert(Imm > 0 && Imm < 15 && "Invalid condition"); SStre...
pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r15 movq %rdi, %rbx callq 0x446e4 movq %rax, %rdi callq 0x44742 movq %rax, %r14 leaq 0x90222(%rip), %rax # 0x14e4c4 movslq -0x4(%rax,%r14,4), %rsi addq %rax, %rsi movq %r15, %rdi callq 0x447c2 movq 0x320(%rbx), %rax cmpl $0x0, 0x68(%rax) je 0xbe2d1 movq 0x310(%rbx), %rax...
/bughoho[P]capstone/arch/SystemZ/SystemZInstPrinter.c
SystemZ_insn_name
const char *SystemZ_insn_name(csh handle, unsigned int id) { #ifndef CAPSTONE_DIET unsigned int i; if (id >= SYSZ_INS_ENDING) return NULL; // handle special alias first for (i = 0; i < ARR_SIZE(alias_insn_names); i++) { if (alias_insn_names[i].id == id) return alias_insn_names[i].name; } return insn_nam...
leal -0x2aa(%rsi), %eax cmpl $0xfffffd57, %eax # imm = 0xFFFFFD57 jae 0xbeb64 xorl %eax, %eax retq movl %esi, %eax shlq $0x4, %rax leaq 0xd009f(%rip), %rcx # 0x18ec10 movq 0x8(%rax,%rcx), %rax retq
/bughoho[P]capstone/arch/SystemZ/SystemZMapping.c
Decode2RUSInstruction
static DecodeStatus Decode2RUSInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, void *Decoder) { unsigned Op1, Op2, Op3; DecodeStatus S = Decode3OpInstruction(Insn, &Op1, &Op2, &Op3); if (S == MCDisassembler_Success) { DecodeGRRegsRegisterClass(Inst, Op1, Address, Decoder); DecodeGRRegsRegisterClass(I...
pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movl %esi, %eax movq %rdi, %rbx leaq 0xc(%rsp), %rsi leaq 0x8(%rsp), %rdx leaq 0x4(%rsp), %rcx movl %eax, %edi callq 0xc02b1 movl %eax, %ebp cmpl $0x3, %eax jne 0xbf7cb movl 0xc(%rsp), %esi movq %rbx, %rdi movq %r14, %rdx callq 0xbf6d3 movl 0x8(%rsp), %e...
/bughoho[P]capstone/arch/XCore/XCoreDisassembler.c
DecodeL3RInstruction
static DecodeStatus DecodeL3RInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, void *Decoder) { unsigned Op1, Op2, Op3; DecodeStatus S = Decode3OpInstruction(fieldFromInstruction_4(Insn, 0, 16), &Op1, &Op2, &Op3); if (S == MCDisassembler_Success) { DecodeGRRegsRegisterClass(Inst, Op1, Address, Decoder...
pushq %rbp pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %rbx movq %rdi, %r14 movzwl %si, %edi leaq 0xc(%rsp), %rsi leaq 0x8(%rsp), %rdx leaq 0x4(%rsp), %rcx callq 0xc02b1 movl %eax, %ebp cmpl $0x3, %eax jne 0xbfca3 movl 0xc(%rsp), %esi movq %r14, %rdi movq %rbx, %rdx callq 0xbf6d3 movl 0x8(%rsp), %esi movq %r14, %...
/bughoho[P]capstone/arch/XCore/XCoreDisassembler.c
DecodeL5RInstruction
static DecodeStatus DecodeL5RInstruction(MCInst *Inst, unsigned Insn, uint64_t Address, void *Decoder) { unsigned Op1, Op2, Op3, Op4, Op5; DecodeStatus S = Decode3OpInstruction(fieldFromInstruction_4(Insn, 0, 16), &Op1, &Op2, &Op3); if (S != MCDisassembler_Success) return DecodeL5RInstructionFail(Inst, Insn, A...
pushq %rbp pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r14 movzwl %bp, %edi leaq 0x1c(%rsp), %rsi leaq 0x18(%rsp), %rdx leaq 0x14(%rsp), %rcx callq 0xc02b1 cmpl $0x3, %eax jne 0xbfe7a movl %ebp, %edi shrl $0x10, %edi leaq 0x10(%rsp), %rsi leaq 0xc(%rsp), %rdx callq 0xc00f5 cmpl $0...
/bughoho[P]capstone/arch/XCore/XCoreDisassembler.c
DecodeL5RInstructionFail
static DecodeStatus DecodeL5RInstructionFail(MCInst *Inst, unsigned Insn, uint64_t Address, void *Decoder) { unsigned Opcode; // Try and decode as a L6R instruction. MCInst_clear(Inst); Opcode = fieldFromInstruction_4(Insn, 27, 5); switch (Opcode) { default: break; case 0x00: MCInst_setOpcode(Inst, XC...
pushq %rbp pushq %r14 pushq %rbx movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r14 callq 0x44693 cmpl $0x7ffffff, %ebp # imm = 0x7FFFFFF ja 0xc05c1 movq %r14, %rdi movl $0xa3, %esi callq 0x446d6 movq %r14, %rdi movl %ebp, %esi movq %rbx, %rdx popq %rbx popq %r14 popq %rbp jmp 0xbfe8f xorl %eax, %eax popq %rbx popq...
/bughoho[P]capstone/arch/XCore/XCoreDisassembler.c
XCore_reg_id
xcore_reg XCore_reg_id(char *name) { int i; for(i = 1; i < ARR_SIZE(reg_name_maps); i++) { if (!strcmp(name, reg_name_maps[i].name)) return reg_name_maps[i].id; } // not found return 0; }
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movl $0x18, %r14d leaq 0xd0550(%rip), %r15 # 0x191720 movq (%r14,%r15), %rsi movq %rbx, %rdi callq 0x430d0 testl %eax, %eax je 0xc11f1 addq $0x10, %r14 cmpq $0x1a8, %r14 # imm = 0x1A8 jne 0xc11d0 xorl %eax, %eax jmp 0xc11f6 movl -0x8(%r14,%r15), %eax popq ...
/bughoho[P]capstone/arch/XCore/XCoreMapping.c
vfprintf
int vfprintf( struct _PDCLIB_file_t * _PDCLIB_restrict stream, const char * _PDCLIB_restrict format, va_list arg ) { /* TODO: This function should interpret format as multibyte characters. */ struct _PDCLIB_status_t status; status.base = 0; status.flags = 0; status.n = SIZE_MAX; status.i = 0; ...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl $0x0, -0x78(%rbp) movl $0x0, -0x74(%rbp) movq $-0x1, -0x70(%rbp) movq $0x0, -0x68(%rbp) movq $0x0, -0x60(%rbp) movq $0x0, -0x58(%rbp) movq $0x0, -0x50(%rbp) movl $0xffffffff, -0x48(%rbp) # imm = 0xFFFFF...
/DevSolar[P]pdclib/functions/stdio/vfprintf.c
PDCLIB_bigint64
_PDCLIB_bigint_t * _PDCLIB_bigint64( _PDCLIB_bigint_t * bigint, uint_least32_t high, uint_least32_t low ) { for ( bigint->size = 0; bigint->size < DIGITS_PER_32BIT; ++bigint->size ) { bigint->data[ bigint->size ] = low & _PDCLIB_BIGINT_DIGIT_MAX; bigint->data[ bigint->size + ...
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movq -0x8(%rbp), %rax movq $0x0, 0x80(%rax) movq -0x8(%rbp), %rax cmpq $0x2, 0x80(%rax) jae 0x28e2 movl -0x10(%rbp), %eax andl $0xffff, %eax # imm = 0xFFFF movw %ax, %dx movq -0x8(%rbp), %rax movq -0x8(%rbp), %rcx mo...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_bigint64.c
PDCLIB_print_fp
static void _PDCLIB_print_fp( int sign, int exp, int dec, unsigned char const * mant, size_t mant_dig, struct _PDCLIB_status_t * status ) { /* Turning sign bit into s...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movl %edi, -0x4(%rbp) movl %esi, -0x8(%rbp) movl %edx, -0xc(%rbp) movq %rcx, -0x18(%rbp) movq %r8, -0x20(%rbp) movq %r9, -0x28(%rbp) cmpl $0x0, -0x4(%rbp) je 0x3efc movl $0x2d, -0x4(%rbp) jmp 0x3f37 movq -0x28(%rbp), %rax movl 0x4(%rax), %eax andl $0x2, %eax cmpl $0x0, %eax j...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_print_fp.c
PDCLIB_print_hexa
static void _PDCLIB_print_hexa( int sign, int exp, int dec, unsigned char const * mant, size_t mant_dig, struct _PDCLIB_status_t * status ) { size_t excess_...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movl %edi, -0x4(%rbp) movl %esi, -0x8(%rbp) movl %edx, -0xc(%rbp) movq %rcx, -0x18(%rbp) movq %r8, -0x20(%rbp) movq %r9, -0x28(%rbp) leaq -0x50(%rbp), %rdi xorl %esi, %esi movl $0x12, %edx callq 0x5b90 movq $0x0, -0x58(%rbp) movq $0x0, -0x68(%rbp) movq -0x28(%rbp), %rax movl ...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_print_fp.c
PDCLIB_print_integer
void _PDCLIB_print_integer( imaxdiv_t div, struct _PDCLIB_status_t * status ) { if ( status->current == 0 && div.quot == 0 && div.rem == 0 && status->prec == 0 ) { intformat( 0, status ); } else { ++(status->current); if ( div.quot != 0 ) { _PDCLIB_print_...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x8(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x0, 0x18(%rax) jne 0x4cb9 cmpq $0x0, -0x10(%rbp) jne 0x4cb9 cmpq $0x0, -0x8(%rbp) jne 0x4cb9 movq -0x18(%rbp), %rax cmpl $0x0, 0x30(%rax) jne 0x4cb9 movq -0x18(%rbp), %rsi xorl %...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_print_integer.c
PDCLIB_strtox_prelim
const char * _PDCLIB_strtox_prelim( const char * p, char * sign, int * base ) { /* skipping leading whitespace */ while ( isspace( (unsigned char)*p ) ) { ++p; } /* determining / skipping sign */ if ( *p != '+' && *p != '-' ) { *sign = '+'; } else { *sign...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movzbl (%rax), %edi callq 0x5ee0 cmpl $0x0, %eax je 0x5da3 movq -0x8(%rbp), %rax addq $0x1, %rax movq %rax, -0x8(%rbp) jmp 0x5d84 movq -0x8(%rbp), %rax movsbl (%rax), %eax cmpl $0x2b, %e...
/DevSolar[P]pdclib/functions/_PDCLIB/_PDCLIB_strtox_prelim.c
cnn::ComputationGraph::add_const_lookup(cnn::LookupParameters*, unsigned int)
VariableIndex ComputationGraph::add_const_lookup(LookupParameters* p, unsigned index) { VariableIndex new_node_index(nodes.size()); LookupNode* new_node = new LookupNode(p, index); nodes.push_back(new_node); set_dim_for_new_node(new_node_index); return new_node_index; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movl %ecx, %ebp movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rsi), %r15 movq %r15, %rax subq (%rsi), %rax shrq $0x3, %rax movl %eax, (%rdi) movl $0xa8, %edi callq 0x73200 movabsq $0x100000000, %rcx # imm = 0x100000000 movq %rcx, 0...
/LeonCrashCode[P]LookAheadFeature/cnn/cnn.cc
cnn::ComputationGraph::add_const_lookup(cnn::LookupParameters*, std::vector<unsigned int, std::allocator<unsigned int>> const&)
VariableIndex ComputationGraph::add_const_lookup(LookupParameters* p, const std::vector<unsigned>& indices) { VariableIndex new_node_index(nodes.size()); LookupNode* new_node = new LookupNode(p, indices); nodes.push_back(new_node); set_dim_for_new_node(new_node_index); return new_node_index; }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rcx, %r12 movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rsi), %rax subq (%rsi), %rax shrq $0x3, %rax movl %eax, (%rdi) movl $0xa8, %edi callq 0x73200 movq %rax, %r15 movq %rax, %rdi movq %r13, %rsi movq %r12, %rdx callq 0x75100 mo...
/LeonCrashCode[P]LookAheadFeature/cnn/cnn.cc
cnn::ComputationGraph::add_const_lookup(cnn::LookupParameters*, std::vector<unsigned int, std::allocator<unsigned int>> const*)
VariableIndex ComputationGraph::add_const_lookup(LookupParameters* p, const std::vector<unsigned>* indices) { VariableIndex new_node_index(nodes.size()); LookupNode* new_node = new LookupNode(p, indices); nodes.push_back(new_node); set_dim_for_new_node(new_node_index); return new_node_index; }
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rcx, %r12 movq %rdx, %r13 movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rsi), %r15 movq %r15, %rax subq (%rsi), %rax shrq $0x3, %rax movl %eax, (%rdi) movl $0xa8, %edi callq 0x73200 movabsq $0x100000000, %rcx # imm = 0x100000000 movq %rcx, 0...
/LeonCrashCode[P]LookAheadFeature/cnn/cnn.cc
cnn::AddVectorToAllColumns::as_string(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&) const
string AddVectorToAllColumns::as_string(const vector<string>& arg_names) const { ostringstream os; os << "fold_rows(" << arg_names[0] << ", " << arg_names[1] << ')'; return os.str(); }
pushq %r15 pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rdx, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x73e80 leaq 0xea0c2(%rip), %rsi # 0x165b30 movl $0xa, %edx movq %r15, %rdi callq 0x73690 movq (%r14), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx leaq 0x8(%rsp), %r...
/LeonCrashCode[P]LookAheadFeature/cnn/conv.cc
cnn::AddVectorToAllColumns::dim_forward(std::vector<cnn::Dim, std::allocator<cnn::Dim>> const&) const
Dim AddVectorToAllColumns::dim_forward(const vector<Dim>& xs) const { if (xs.size() != 2 || xs[0].rows() != xs[1].rows() || xs[0].ndims() != 2 || xs[1].ndims() != 1) { cerr << "Bad input dimensions in AddVectorToAllColumns: " << xs << endl; throw std::invalid_argument("bad input dimensions in AddVectorToAllCo...
pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movq (%rdx), %rax movq 0x8(%rdx), %rcx subq %rax, %rcx cmpq $0x48, %rcx jne 0x7bb72 movl (%rax), %ecx cmpl 0x24(%rax), %ecx jne 0x7bb72 cmpl $0x2, 0x1c(%rax) jne 0x7bb72 cmpl $0x1, 0x40(%rax) jne 0x7bb72 movl 0x20(%rax), %ecx movl %ecx, 0x20(%rdi) vmovups (%rax), %ymm0 v...
/LeonCrashCode[P]LookAheadFeature/cnn/conv.cc
cnn::AddVectorToAllColumns::backward_impl(std::vector<cnn::Tensor const*, std::allocator<cnn::Tensor const*>> const&, cnn::Tensor const&, cnn::Tensor const&, unsigned int, cnn::Tensor&) const
void AddVectorToAllColumns::backward_impl(const vector<const Tensor*>& xs, const Tensor& fx, const Tensor& dEdf, unsigned i, Tensor& dEdxi) const { assert(i < 2); if (i == 0) { // x (*dEdxi) += (*dEdf); } else { //...
pushq %r15 pushq %r14 pushq %rbx subq $0x110, %rsp # imm = 0x110 cmpl $0x2, %r8d jae 0x7bf4a movq %r9, %rbx testl %r8d, %r8d je 0x7be5b leaq 0xd0(%rsp), %r14 movq %r14, %rdi movq %rcx, %rsi callq 0x749a0 movq (%r14), %r15 vmovups 0x8(%r14), %xmm0 vmovaps %xmm0, 0x80(%rsp) leaq 0x98(%rsp), %r14 movq %r14, %rd...
/LeonCrashCode[P]LookAheadFeature/cnn/conv.cc
cnn::expr::rectify(cnn::expr::Expression const&)
Expression rectify(const Expression& x) { return Expression(x.pg, x.pg->add_function<Rectify>({x.i})); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0x14(%rsp), %r12 movl %eax, (%r12) movq 0x8(%r14), %rax subq (%r14), %rax shrq $0x3, %rax movl %eax, 0x4(%rsp) movl $0x50, %edi callq 0x73200 movq %rax, %r15 movq 0x160fcf(%rip), %rax # 0x1e5fc0 a...
/LeonCrashCode[P]LookAheadFeature/cnn/expr.cc
cnn::expr::softsign(cnn::expr::Expression const&)
Expression softsign(const Expression& x) { return Expression(x.pg, x.pg->add_function<SoftSign>({x.i})); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0x14(%rsp), %r12 movl %eax, (%r12) movq 0x8(%r14), %rax subq (%r14), %rax shrq $0x3, %rax movl %eax, 0x4(%rsp) movl $0x50, %edi callq 0x73200 movq %rax, %r15 movq 0x160a7e(%rip), %rax # 0x1e5fc0 a...
/LeonCrashCode[P]LookAheadFeature/cnn/expr.cc
cnn::expr::cwise_multiply(cnn::expr::Expression const&, cnn::expr::Expression const&)
Expression cwise_multiply(const Expression& x, const Expression& y) {return Expression(x.pg, x.pg->add_function<CwiseMultiply>({x.i, y.i}));}
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0x10(%rsp), %r12 movl %eax, (%r12) movl 0x8(%rdx), %eax movl %eax, 0x4(%r12) movq 0x8(%r14), %rax subq (%r14), %rax shrq $0x3, %rax movl %eax, 0x4(%rsp) movl $0x50, %edi callq 0x73200 movq %rax, %r15...
/LeonCrashCode[P]LookAheadFeature/cnn/expr.cc
cnn::expr::squared_distance(cnn::expr::Expression const&, cnn::expr::Expression const&)
Expression squared_distance(const Expression& x, const Expression& y) { return Expression(x.pg, x.pg->add_function<SquaredEuclideanDistance>({x.i, y.i})); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0x10(%rsp), %r12 movl %eax, (%r12) movl 0x8(%rdx), %eax movl %eax, 0x4(%r12) movq 0x8(%r14), %rax subq (%r14), %rax shrq $0x3, %rax movl %eax, 0x4(%rsp) movl $0x50, %edi callq 0x73200 movq %rax, %r15...
/LeonCrashCode[P]LookAheadFeature/cnn/expr.cc
cnn::expr::pairwise_rank_loss(cnn::expr::Expression const&, cnn::expr::Expression const&, float)
Expression pairwise_rank_loss(const Expression& x, const Expression& y, real m) { return Expression(x.pg, x.pg->add_function<PairwiseRankLoss>({x.i, y.i}, m)); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x28, %rsp vmovss %xmm0, 0x10(%rsp) movq %rdi, %rbx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0x20(%rsp), %r12 movl %eax, (%r12) movl 0x8(%rdx), %eax movl %eax, 0x4(%r12) movq 0x8(%r14), %rax subq (%r14), %rax shrq $0x3, %rax movl %eax, 0x14(%rsp) movl $0x58, %edi cal...
/LeonCrashCode[P]LookAheadFeature/cnn/expr.cc
cnn::expr::pickrange(cnn::expr::Expression const&, unsigned int, unsigned int)
Expression pickrange(const Expression& x, unsigned v, unsigned u) { return Expression(x.pg, x.pg->add_function<PickRange>({x.i}, v, u)); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %ecx, %ebp movl %edx, %r15d movq %rdi, %rbx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0x14(%rsp), %r13 movl %eax, (%r13) movq 0x8(%r14), %rax subq (%r14), %rax shrq $0x3, %rax movl %eax, 0x4(%rsp) movl $0x58, %edi callq 0x73200 mo...
/LeonCrashCode[P]LookAheadFeature/cnn/expr.cc
cnn::expr::pickneglogsoftmax(cnn::expr::Expression const&, unsigned int)
Expression pickneglogsoftmax(const Expression& x, unsigned v) { return Expression(x.pg, x.pg->add_function<PickNegLogSoftmax>({x.i}, v)); }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movl %edx, %ebp movq %rdi, %rbx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0x1c(%rsp), %r12 movl %eax, (%r12) movq 0x8(%r14), %rax subq (%r14), %rax shrq $0x3, %rax movl %eax, 0xc(%rsp) movl $0x88, %edi callq 0x73200 movq %rax, %r15 movq 0x15ef76(...
/LeonCrashCode[P]LookAheadFeature/cnn/expr.cc
cnn::expr::sum_batches(cnn::expr::Expression const&)
Expression sum_batches(const Expression& x) { return Expression(x.pg, x.pg->add_function<SumBatches>({x.i})); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0x14(%rsp), %r12 movl %eax, (%r12) movq 0x8(%r14), %rax subq (%r14), %rax shrq $0x3, %rax movl %eax, 0x4(%rsp) movl $0x50, %edi callq 0x73200 movq %rax, %r15 movq 0x15ece4(%rip), %rax # 0x1e5fc0 a...
/LeonCrashCode[P]LookAheadFeature/cnn/expr.cc
cnn::GraphOptimize(cnn::ComputationGraph*)
void GraphOptimize(ComputationGraph* cg) { // topo sort vector<Node*>& nodes = cg->nodes; vector<int> longest_paths(nodes.size()); for (unsigned i = 0; i < nodes.size(); ++i) { auto& v = *nodes[i]; // vertex v_i auto& lp = longest_paths[i]; // distance to v_i for (auto e : v.args) { int weigh...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rdi, %rbx movq 0x8(%rdi), %rsi subq (%rdi), %rsi sarq $0x3, %rsi leaq 0x90(%rsp), %rdi movq %rsp, %rdx callq 0x717b0 movq (%rbx), %rax movq 0x8(%rbx), %rcx subq %rax, %rcx je 0x89614 sarq $0x3, %rcx movq 0x90(%rsp), %rdx xorl %esi,...
/LeonCrashCode[P]LookAheadFeature/cnn/graph.cc
cnn::InnerProduct3D_1D::as_string(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&) const
string InnerProduct3D_1D::as_string(const vector<string>& arg_names) const { ostringstream s; s << "dot(" << arg_names[0] << "," << arg_names[1] << ')'; if (arg_names.size() == 3) s << " + " << arg_names[2]; return s.str(); }
pushq %r15 pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rdx, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x73e80 leaq 0x7809e(%rip), %rsi # 0x1afc52 movl $0x4, %edx movq %r15, %rdi callq 0x73690 movq (%r14), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx leaq 0x8(%rsp), %r...
/LeonCrashCode[P]LookAheadFeature/cnn/nodes-common.cc
cnn::PickElement::as_string(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&) const
string PickElement::as_string(const vector<string>& arg_names) const { ostringstream s; s << "pick(" << arg_names[0] << ',' << *pval << ')'; return s.str(); }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x188, %rsp # imm = 0x188 movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rsp), %r12 movq %r12, %rdi callq 0x73e80 leaq 0x74f2c(%rip), %rsi # 0x1b0505 movl $0x5, %edx movq %r12, %rdi callq 0x73690 movq (%r15), %rax movq (%rax), %rsi movq 0x8(%r...
/LeonCrashCode[P]LookAheadFeature/cnn/nodes-common.cc
cnn::BinaryLogLoss::as_string(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&) const
string BinaryLogLoss::as_string(const vector<string>& arg_names) const { ostringstream os; os << "binary_log_loss(" << arg_names[0] << ", " << arg_names[1] << ')'; return os.str(); }
pushq %r15 pushq %r14 pushq %rbx subq $0x180, %rsp # imm = 0x180 movq %rdx, %r14 movq %rdi, %rbx leaq 0x8(%rsp), %r15 movq %r15, %rdi callq 0x73e80 leaq 0x72f26(%rip), %rsi # 0x1b0a8e movl $0x10, %edx movq %r15, %rdi callq 0x73690 movq (%r14), %rax movq (%rax), %rsi movq 0x8(%rax), %rdx leaq 0x8(%rsp), %...
/LeonCrashCode[P]LookAheadFeature/cnn/nodes-common.cc
cnn::SimpleRNNBuilder::start_new_sequence_impl(std::vector<cnn::expr::Expression, std::allocator<cnn::expr::Expression>> const&)
void SimpleRNNBuilder::start_new_sequence_impl(const vector<Expression>& h_0) { h.clear(); h0 = h_0; if (h0.size()) { assert(h0.size() == layers); } }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx addq $0x58, %rdi callq 0x74ab0 leaq 0x70(%rbx), %rdi movq %r14, %rsi callq 0x71850 movq 0x78(%rbx), %rax movq 0x70(%rbx), %rcx subq %rcx, %rax je 0x13f7e1 sarq $0x4, %rax movl 0x88(%rbx), %ecx cmpq %rcx, %rax jne 0x13f7e9 addq $0x8, %rsp popq %rbx popq %r...
/LeonCrashCode[P]LookAheadFeature/cnn/rnn.cc
cnn::SimpleRNNBuilder::add_input_impl(int, cnn::expr::Expression const&)
Expression SimpleRNNBuilder::add_input_impl(int prev, const Expression &in) { const unsigned t = h.size(); h.push_back(vector<Expression>(layers)); Expression x = in; for (unsigned i = 0; i < layers; ++i) { const vector<Expression>& vars = param_vars[i]; // y <--- f(x) Expression y = affine_trans...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rcx, %rbx movl %edx, 0x4(%rsp) movq %rsi, %r15 movq %rdi, %r14 leaq 0x58(%rsi), %r12 movq 0x60(%rsi), %r13 subq 0x58(%rsi), %r13 movl 0x88(%rsi), %esi leaq 0x28(%rsp), %rbp leaq 0x8(%rsp), %rdx movq %rbp, %rdi callq 0x75250 movq %r...
/LeonCrashCode[P]LookAheadFeature/cnn/rnn.cc
cnn::AllocateShadowParameters(cnn::Model const&)
vector<ShadowParameters> AllocateShadowParameters(const Model& m) { vector<ShadowParameters> v; v.reserve(m.parameters_list().size()); for (auto& p : m.parameters_list()) v.emplace_back(*p); return v; }
pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx vxorps %xmm0, %xmm0, %xmm0 vmovups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) movq 0x20(%rsi), %rsi subq 0x18(%r14), %rsi sarq $0x3, %rsi callq 0x712c0 movq 0x18(%r14), %r15 movq 0x20(%r14), %r14 cmpq %r14, %r15 je 0x15090f movq (%r15), %rsi movq %rbx, %rdi call...
/LeonCrashCode[P]LookAheadFeature/cnn/shadow-params.cc
cnn::AllocateShadowLookupParameters(cnn::Model const&)
vector<ShadowLookupParameters> AllocateShadowLookupParameters(const Model& m) { vector<ShadowLookupParameters> v; v.reserve(m.lookup_parameters_list().size()); for (auto& p : m.lookup_parameters_list()) v.emplace_back(*p); return v; }
pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx vxorps %xmm0, %xmm0, %xmm0 vmovups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) movq 0x38(%rsi), %rsi subq 0x30(%r14), %rsi sarq $0x3, %rsi callq 0x73fc0 movq 0x30(%r14), %r15 movq 0x38(%r14), %r14 cmpq %r14, %r15 je 0x150977 movq (%r15), %rsi movq %rbx, %rdi call...
/LeonCrashCode[P]LookAheadFeature/cnn/shadow-params.cc
cnn::TensorTools::Constant(cnn::Tensor&, float)
void TensorTools::Constant(Tensor& d, float c) { #if HAVE_CUDA if (!c) { CUDA_CHECK(cudaMemsetAsync(d.v, 0, d.d.size() * sizeof(float))); } else { fill(d.v, d.v + d.d.size(), c); } #else if (!c) { memset(d.v, c, d.d.size() * sizeof(float)); } else { fill(d.v, d.v + d.d.size(), c); } #endif }
movq %rdi, %rax vxorps %xmm1, %xmm1, %xmm1 vucomiss %xmm1, %xmm0 movq 0x28(%rdi), %rdi movl 0x1c(%rax), %edx je 0x151523 testq %rdx, %rdx je 0x1515d8 leaq 0xf(%rdx), %rcx andq $-0x10, %rcx decq %rdx vpbroadcastq %rdx, %zmm1 vpbroadcastd 0x13f3e(%rip), %zmm5 # 0x1653d0 xorl %edx, %edx vpmovsxbq 0x14552(%rip), %zmm3 # 0x...
/LeonCrashCode[P]LookAheadFeature/cnn/tensor.cc
cnn::TensorTools::Zero(cnn::Tensor&)
void TensorTools::Zero(Tensor& d) { Constant(d, 0); }
movq %rdi, %rax movq 0x28(%rdi), %rdi movl 0x1c(%rax), %edx testq %rdx, %rdx je 0x151734 leaq 0xf(%rdx), %rcx andq $-0x10, %rcx decq %rdx vpbroadcastq %rdx, %zmm0 vpbroadcastd 0x13d2a(%rip), %zmm4 # 0x1653d0 xorl %edx, %edx vpmovsxbq 0x1433e(%rip), %zmm2 # 0x1659f0 vpmovsxbq 0x1433c(%rip), %zmm3 # 0x1659f8 vmovdqa64 %z...
/LeonCrashCode[P]LookAheadFeature/cnn/tensor.cc
cnn::TensorTools::Randomize(cnn::Tensor&)
void TensorTools::Randomize(Tensor& d) { Randomize(d, sqrt(6) / sqrt(d.d.sum_dims())); }
movl 0x1c(%rdi), %ecx testq %rcx, %rcx je 0x151920 leaq 0xf(%rcx), %rax andq $-0x10, %rax decq %rcx vpbroadcastq %rcx, %zmm0 vpxor %xmm4, %xmm4, %xmm4 xorl %ecx, %ecx vpmovsxbq 0x14151(%rip), %zmm2 # 0x1659f0 vpmovsxbq 0x1414f(%rip), %zmm3 # 0x1659f8 vmovdqa64 %zmm4, %zmm1 vpbroadcastq %rcx, %zmm4 vporq %zmm2, %zmm4, %...
/LeonCrashCode[P]LookAheadFeature/cnn/tensor.cc
cnn::AdamTrainer::update(float)
void AdamTrainer::update(real scale) { unsigned pi; if (!shadow_params_allocated) { m = AllocateShadowParameters(*model); lm = AllocateShadowLookupParameters(*model); v = AllocateShadowParameters(*model); lv = AllocateShadowLookupParameters(*model); shadow_params_allocated = true; } const f...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xc8, %rsp vmovss %xmm0, 0x20(%rsp) cmpb $0x0, 0x44(%rdi) movq %rdi, (%rsp) jne 0x156cc8 movq 0x30(%rdi), %rsi leaq 0x90(%rsp), %r15 movq %r15, %rdi callq 0x72df0 xorl %ebx, %ebx leaq 0xb0(%rsp), %r14 movq %rbx, 0x10(%r14) vxorps %xmm0, %xmm0, %xmm...
/LeonCrashCode[P]LookAheadFeature/cnn/training.cc
cnn::TreeLSTMBuilder::get_s(cnn::RNNPointer) const
std::vector<Expression> get_s(RNNPointer i) const override { std::vector<Expression> ret = (i == -1 ? c0 : c[i]); for(auto my_h : get_h(i)) ret.push_back(my_h); return ret; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movslq (%rdx), %rax leaq 0x108(%rsi), %rcx leaq (%rax,%rax,2), %rsi shlq $0x3, %rsi addq 0xd0(%r15), %rsi cmpq $-0x1, %rax cmoveq %rcx, %rsi callq 0x723b0 movl (%r14), %eax leaq 0xc(%rsp), %rdx movl %eax, (%rdx)...
/LeonCrashCode[P]LookAheadFeature/cnn/treelstm.h
cnn::TreeLSTMAllBuilder::start_new_sequence_impl(std::vector<cnn::expr::Expression, std::allocator<cnn::expr::Expression>> const&)
void TreeLSTMAllBuilder::start_new_sequence_impl(const vector<Expression>& hinit) { h.clear(); c.clear(); if (hinit.size() > 0) { assert(layers*2 == hinit.size()); h0.resize(layers); c0.resize(layers); for (unsigned i = 0; i < layers; ++i) { c0[i] = hinit[i]; h0[i] = hinit[i + layers];...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx addq $0xb8, %rdi callq 0x74ab0 leaq 0xd0(%rbx), %rdi callq 0x74ab0 movq 0x8(%r14), %rax subq (%r14), %rax je 0x15c667 sarq $0x4, %rax movl 0x168(%rbx), %esi leal (%rsi,%rsi), %ecx cmpq %rcx, %rax jne 0x15c67b leaq 0x138(%rbx), %r15 m...
/LeonCrashCode[P]LookAheadFeature/cnn/treelstm_all.cc
cnn::ForestLSTMBuilder_var1::start_new_sequence_impl(std::vector<cnn::expr::Expression, std::allocator<cnn::expr::Expression>> const&)
void ForestLSTMBuilder_var1::start_new_sequence_impl(const vector<Expression>& hinit) { h.clear(); c.clear(); if (hinit.size() > 0) { assert(layers*2 == hinit.size()); h0.resize(layers); c0.resize(layers); for (unsigned i = 0; i < layers; ++i) { c0[i] = hinit[i]; h0[i] = hinit[i + laye...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx addq $0xb8, %rdi callq 0x74ab0 leaq 0xd0(%rbx), %rdi callq 0x74ab0 movq 0x8(%r14), %rax subq (%r14), %rax je 0x163045 sarq $0x4, %rax movl 0x168(%rbx), %esi leal (%rsi,%rsi), %ecx cmpq %rcx, %rax jne 0x163059 leaq 0x138(%rbx), %r15 m...
/LeonCrashCode[P]LookAheadFeature/cnn/forestlstm_var1.cc
cnn::ForestLSTMBuilder_var1::~ForestLSTMBuilder_var1()
ForestLSTMBuilder_var1() = default;
pushq %rbx movq %rdi, %rbx movq 0x813bb(%rip), %rax # 0x1e5c98 addq $0x10, %rax movq %rax, (%rdi) movq 0x150(%rdi), %rdi testq %rdi, %rdi je 0x1648f5 callq 0x73010 movq 0x138(%rbx), %rdi testq %rdi, %rdi je 0x164906 callq 0x73010 movq 0x118(%rbx), %rdi testq %rdi, %rdi je 0x164917 callq 0x73010 movq 0x100(%rbx), %r...
/LeonCrashCode[P]LookAheadFeature/cnn/forestlstm_var1.h
cnn::ForestLSTMBuilder_var1::get_s(cnn::RNNPointer) const
std::vector<Expression> get_s(RNNPointer i) const override { std::vector<Expression> ret = (i == -1 ? c0 : c[i]); for(auto my_h : get_h(i)) ret.push_back(my_h); return ret; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movslq (%rdx), %rax leaq 0x150(%rsi), %rcx leaq (%rax,%rax,2), %rsi shlq $0x3, %rsi addq 0xd0(%r15), %rsi cmpq $-0x1, %rax cmoveq %rcx, %rsi callq 0x723b0 movl (%r14), %eax leaq 0xc(%rsp), %rdx movl %eax, (%rdx)...
/LeonCrashCode[P]LookAheadFeature/cnn/forestlstm_var1.h
test
int test(char *URL) { CURLcode res; CURL *curl; #ifndef LIB548 int counter=0; #endif if(curl_global_init(CURL_GLOBAL_ALL) != CURLE_OK) { fprintf(stderr, "curl_global_init() failed\n"); return TEST_ERR_MAJOR_BAD; } curl = curl_easy_init(); if(!curl) { fprintf(stderr, "curl_easy_init() failed\...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl $0x3, %edi callq 0x10c0 cmpl $0x0, %eax je 0x121f movq 0x2dde(%rip), %rax # 0x3fe0 movq (%rax), %rdi leaq 0xdf8(%rip), %rsi # 0x2004 movb $0x0, %al callq 0x10a0 movl $0x7e, -0x4(%rbp) jmp 0x1387 callq 0x1050 movq %rax, -0x20(%rbp) cmpq $...
/pelya[P]curl/tests/libtest/lib547.c
select_wrapper
int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc, struct timeval *tv) { if(nfds < 0) { SET_SOCKERRNO(EINVAL); return -1; } #ifdef USE_WINSOCK /* * Winsock select() requires that at least one of the three fd_set * pointers is not NULL and points to a non-empty fdset...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) cmpl $0x0, -0x8(%rbp) jge 0x13c5 callq 0x1030 movl $0x16, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x13e0 movl -0x8(%rbp), %edi movq -0x10(%rbp),...
/pelya[P]curl/tests/libtest/first.c
main
int main(int argc, char **argv) { char *URL; int result; #ifdef O_BINARY # ifdef __HIGHC__ _setmode(stdout, O_BINARY); # else setmode(fileno(stdout), O_BINARY); # endif #endif memory_tracking_init(); /* * Setup proper locale from environment. This is needed to enable locale- * specific behaviour...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x0, -0x4(%rbp) movl %edi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0x1508 movl $0x6, %edi leaq 0xb48(%rip), %rsi # 0x205c callq 0x1070 cmpl $0x2, -0x8(%rbp) jge 0x1540 movq 0x2aba(%rip), %rax # 0x3fe0 movq (%rax), %rdi leaq 0xb33(%rip), %rsi # 0x2063 movb...
/pelya[P]curl/tests/libtest/first.c
glfwExtensionSupported
GLFWAPI int glfwExtensionSupported(const char* extension) { _GLFWwindow* window; _GLFW_REQUIRE_INIT_OR_RETURN(GL_FALSE); window = _glfwPlatformGetCurrentContext(); if (!window) { _glfwInputError(GLFW_NO_CURRENT_CONTEXT, NULL); return GL_FALSE; } if (*extension == '\0') ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax leaq 0xf160(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x74ac movq %rdi, %rbx callq 0xed67 testq %rax, %rax je 0x74b6 cmpb $0x0, (%rbx) je 0x74c0 movq %rax, %r15 cmpl $0x3, 0x1c8(%rax) jl 0x74e3 leaq 0x4(%rsp), %r14 movl $0x821d, %edi ...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/context.c
glfwInputCursorMotion
void _glfwInputCursorMotion(_GLFWwindow* window, double x, double y) { if (window->cursorMode == GLFW_CURSOR_DISABLED) { if (x == 0.0 && y == 0.0) return; window->cursorPosX += x; window->cursorPosY += y; x = window->cursorPosX; y = window->cursorPosY; }...
cmpl $0x34003, 0x58(%rdi) # imm = 0x34003 jne 0x79f7 xorpd %xmm2, %xmm2 ucomisd %xmm2, %xmm0 jne 0x79e3 jp 0x79e3 ucomisd %xmm2, %xmm1 jne 0x79e3 jnp 0x7a05 addsd 0x48(%rdi), %xmm0 movsd %xmm0, 0x48(%rdi) addsd 0x50(%rdi), %xmm1 movsd %xmm1, 0x50(%rdi) movq 0x248(%rdi), %rax testq %rax, %rax je 0x7a05 jmpq *%rax ret...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/input.c
glfwGetInputMode
GLFWAPI int glfwGetInputMode(GLFWwindow* handle, int mode) { _GLFWwindow* window = (_GLFWwindow*) handle; _GLFW_REQUIRE_INIT_OR_RETURN(0); switch (mode) { case GLFW_CURSOR: return window->cursorMode; case GLFW_STICKY_KEYS: return window->stickyKeys; case...
pushq %rbx leaq 0xeb2c(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x7a4e cmpl $0x33003, %esi # imm = 0x33003 je 0x7a5f cmpl $0x33002, %esi # imm = 0x33002 je 0x7a59 cmpl $0x33001, %esi # imm = 0x33001 jne 0x7a65 movl 0x58(%rdi), %ebx jmp 0x7a7a xorl %ebx, %ebx movl $0x10001, %edi ...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/input.c
glfwSetInputMode
GLFWAPI void glfwSetInputMode(GLFWwindow* handle, int mode, int value) { _GLFWwindow* window = (_GLFWwindow*) handle; _GLFW_REQUIRE_INIT(); switch (mode) { case GLFW_CURSOR: setCursorMode(window, value); break; case GLFW_STICKY_KEYS: setStickyKeys(wi...
pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp leaq 0xeaca(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x7aca movq %rdi, %rbx cmpl $0x33003, %esi # imm = 0x33003 je 0x7b0a cmpl $0x33002, %esi # imm = 0x33002 je 0x7ad3 cmpl $0x33001, %esi # imm = 0x33001 jne 0x7b3e leal -0x34004(%rdx), ...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/input.c
glfwGetKey
GLFWAPI int glfwGetKey(GLFWwindow* handle, int key) { _GLFWwindow* window = (_GLFWwindow*) handle; _GLFW_REQUIRE_INIT_OR_RETURN(GLFW_RELEASE); if (key < 0 || key > GLFW_KEY_LAST) { _glfwInputError(GLFW_INVALID_ENUM, "Invalid key"); return GLFW_RELEASE; } if (window->keys[key] ...
pushq %rbx leaq 0xe92a(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x7c4b cmpl $0x15d, %esi # imm = 0x15D jb 0x7c5f leaq 0x8891(%rip), %rsi # 0x104d3 xorl %ebx, %ebx movl $0x10003, %edi # imm = 0x10003 jmp 0x7c54 xorl %ebx, %ebx movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi x...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/input.c
glfwSetCursorPos
GLFWAPI void glfwSetCursorPos(GLFWwindow* handle, double xpos, double ypos) { _GLFWwindow* window = (_GLFWwindow*) handle; _GLFW_REQUIRE_INIT(); if (_glfw.cursorWindow != window) return; if (window->cursorMode == GLFW_CURSOR_DISABLED) { // Only update the accumulated position if t...
leaq 0xe830(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x7d3e leaq 0xe834(%rip), %rax # 0x16568 cmpq %rdi, 0xb8(%rax) je 0x7d4c retq movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi xorl %eax, %eax jmp 0x7680 cmpl $0x34003, 0x58(%rdi) # imm = 0x34003 jne 0xdc53 movsd %xmm0, 0x48(%rdi) movsd %xm...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/input.c
glfwGetJoystickButtons
char* glfwGetJoystickButtons(int joy, int* count) { *count = 0; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); if (joy < 0 || joy > GLFW_JOYSTICK_LAST) { _glfwInputError(GLFW_INVALID_ENUM, "Invalid joystick"); return NULL; } return _glfwPlatformGetJoystickButtons(joy, count); }
pushq %rax movl $0x0, (%rsi) leaq 0xe408(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x8168 cmpl $0x10, %edi jb 0x817a leaq 0x83ab(%rip), %rsi # 0x1050c movl $0x10003, %edi # imm = 0x10003 jmp 0x816f movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi xorl %eax, %eax callq 0x7680 xorl %eax, %...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/input.c
glfwFreeMonitor
void _glfwFreeMonitor(_GLFWmonitor* monitor) { if (monitor == NULL) return; _glfwFreeGammaArrays(&monitor->originalRamp); _glfwFreeGammaArrays(&monitor->currentRamp); free(monitor->modes); free(monitor->name); free(monitor); }
testq %rdi, %rdi je 0x844a pushq %rbx movq %rdi, %rbx addq $0x38, %rdi callq 0x84bc leaq 0x58(%rbx), %rdi callq 0x84bc movq 0x10(%rbx), %rdi callq 0x6460 movq (%rbx), %rdi callq 0x6460 movq %rbx, %rdi popq %rbx jmp 0x6460 retq
/czyang[P]lightning-vault/external/glfw-3.1.2/src/monitor.c
glfwGetMonitorPhysicalSize
GLFWAPI void glfwGetMonitorPhysicalSize(GLFWmonitor* handle, int* widthMM, int* heightMM) { _GLFWmonitor* monitor = (_GLFWmonitor*) handle; if (widthMM) *widthMM = 0; if (heightMM) *heightMM = 0; _GLFW_REQUIRE_INIT(); if (widthMM) *widthMM = monitor->widthMM; if (heigh...
testq %rsi, %rsi je 0x87ea movl $0x0, (%rsi) testq %rdx, %rdx je 0x87f5 movl $0x0, (%rdx) leaq 0xdd5c(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x8816 testq %rsi, %rsi je 0x880b movl 0x8(%rdi), %eax movl %eax, (%rsi) testq %rdx, %rdx je 0x8815 movl 0xc(%rdi), %eax movl %eax, (%rdx) retq movl $0x10001, %edi ...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/monitor.c
glfwGetVideoModes
GLFWAPI const GLFWvidmode* glfwGetVideoModes(GLFWmonitor* handle, int* count) { _GLFWmonitor* monitor = (_GLFWmonitor*) handle; *count = 0; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); if (!refreshVideoModes(monitor)) return NULL; *count = monitor->modeCount; return monitor->modes; }
pushq %r14 pushq %rbx pushq %rax movl $0x0, (%rsi) leaq 0xdcc3(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x88b5 movq %rsi, %r14 movq %rdi, %rbx callq 0x8657 testl %eax, %eax je 0x88c7 movl 0x18(%rbx), %eax movl %eax, (%r14) movq 0x10(%rbx), %rbx jmp 0x88c9 xorl %ebx, %ebx movl $0x10001, %edi # imm = 0x10...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/monitor.c
glfwSetGamma
GLFWAPI void glfwSetGamma(GLFWmonitor* handle, float gamma) { int i; unsigned short values[256]; GLFWgammaramp ramp; _GLFW_REQUIRE_INIT(); if (gamma != gamma || gamma <= 0.f || gamma > FLT_MAX) { _glfwInputError(GLFW_INVALID_VALUE, "Invalid gamma value"); return; } for...
leaq 0xdc4d(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x89cb xorps %xmm1, %xmm1 ucomiss %xmm1, %xmm0 jbe 0x89d4 ucomiss 0x7c19(%rip), %xmm0 # 0x10540 ja 0x89d4 pushq %r14 pushq %rbx subq $0x238, %rsp # imm = 0x238 movq %rdi, %rbx cvtss2sd %xmm0, %xmm0 movsd 0x7c02(%rip), %xmm1 # 0x10548 divsd %...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/monitor.c
glfwCreateWindow
GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share) { _GLFWfbconfig fbconfig; _GLFWctxconfig ctxconfig; _GLFWwndconfig wndconfig;...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0xa0, %rsp movq %rcx, %rax leaq 0xd9c2(%rip), %rcx # 0x16558 cmpb $0x0, (%rcx) je 0x8bc0 movl %esi, %ebp movl %edi, %r14d testl %edi, %edi setg %cl testl %esi, %esi setg %sil testb %sil, %cl jne 0x8bd5 leaq 0x7a99(%rip), %rsi # 0x10650 xorl %ebx, %e...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/window.c
glfwGetWindowPos
GLFWAPI void glfwGetWindowPos(GLFWwindow* handle, int* xpos, int* ypos) { _GLFWwindow* window = (_GLFWwindow*) handle; if (xpos) *xpos = 0; if (ypos) *ypos = 0; _GLFW_REQUIRE_INIT(); _glfwPlatformGetWindowPos(window, xpos, ypos); }
testq %rsi, %rsi je 0x917a movl $0x0, (%rsi) testq %rdx, %rdx je 0x9185 movl $0x0, (%rdx) leaq 0xd3cc(%rip), %rax # 0x16558 cmpb $0x0, (%rax) jne 0xc7ad movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi xorl %eax, %eax jmp 0x7680
/czyang[P]lightning-vault/external/glfw-3.1.2/src/window.c
glfwGetFramebufferSize
GLFWAPI void glfwGetFramebufferSize(GLFWwindow* handle, int* width, int* height) { _GLFWwindow* window = (_GLFWwindow*) handle; if (width) *width = 0; if (height) *height = 0; _GLFW_REQUIRE_INIT(); _glfwPlatformGetFramebufferSize(window, width, height); }
testq %rsi, %rsi je 0x9246 movl $0x0, (%rsi) testq %rdx, %rdx je 0x9251 movl $0x0, (%rdx) leaq 0xd300(%rip), %rax # 0x16558 cmpb $0x0, (%rax) jne 0xc9d4 movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi xorl %eax, %eax jmp 0x7680
/czyang[P]lightning-vault/external/glfw-3.1.2/src/window.c
glfwGetWindowFrameSize
GLFWAPI void glfwGetWindowFrameSize(GLFWwindow* handle, int* left, int* top, int* right, int* bottom) { _GLFWwindow* window = (_GLFWwindow*) handle; if (left) *left = 0; if (top) *top = 0; if (right) *right ...
testq %rsi, %rsi je 0x927a movl $0x0, (%rsi) testq %rdx, %rdx je 0x9285 movl $0x0, (%rdx) testq %rcx, %rcx je 0x9290 movl $0x0, (%rcx) testq %r8, %r8 je 0x929c movl $0x0, (%r8) leaq 0xd2b5(%rip), %rax # 0x16558 cmpb $0x0, (%rax) jne 0xc9d9 movl $0x10001, %edi # imm = 0x10001 xorl %esi, %esi xorl %eax, %ea...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/window.c
glfwGetWindowAttrib
GLFWAPI int glfwGetWindowAttrib(GLFWwindow* handle, int attrib) { _GLFWwindow* window = (_GLFWwindow*) handle; _GLFW_REQUIRE_INIT_OR_RETURN(0); switch (attrib) { case GLFW_FOCUSED: return _glfwPlatformWindowFocused(window); case GLFW_ICONIFIED: return _glfwPlatf...
pushq %rbx leaq 0xd20e(%rip), %rax # 0x16558 cmpb $0x0, (%rax) je 0x9372 leal -0x22001(%rsi), %eax cmpl $0x8, %eax ja 0x9386 leaq 0x72cb(%rip), %rcx # 0x1062c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl 0x1c4(%rdi), %ebx jmp 0x9382 xorl %ebx, %ebx movl $0x10001, %edi # imm = 0x10001 xo...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/window.c
glfwCreateCursor
Cursor _glfwCreateCursor(const GLFWimage* image, int xhot, int yhot) { int i; Cursor cursor; XcursorImage* native = XcursorImageCreate(image->width, image->height); if (native == NULL) return None; native->xhot = xhot; native->yhot = yhot; unsigned char* source = (unsigned char*) ...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edx, %ebp movl %esi, %r15d movq %rdi, %r14 movl (%rdi), %edi movl 0x4(%r14), %esi callq 0x64f0 testq %rax, %rax je 0x97a6 movq %rax, %rbx movl %r15d, 0x10(%rax) movl %ebp, 0x14(%rax) movl 0x4(%r14), %eax imull (%r14), %eax testl %eax, %eax jle 0x9780 movq 0x2...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/x11_init.c
glfwPlatformInit
int _glfwPlatformInit(void) { #if !defined(X_HAVE_UTF8_STRING) // HACK: If the current locale is C, apply the environment's locale // This is done because the C locale breaks wide character input if (strcmp(setlocale(LC_CTYPE, NULL), "C") == 0) setlocale(LC_CTYPE, ""); #endif XInitThreads...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x428, %rsp # imm = 0x428 callq 0x67c0 xorl %edi, %edi callq 0x63f0 leaq 0xcd91(%rip), %r12 # 0x16568 movq %rax, 0xd8(%r12) testq %rax, %rax je 0x9988 movslq 0xe0(%rax), %rcx movl %ecx, 0xe0(%r12) movq 0xe8(%rax), %rax shlq $0x7, %r...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/x11_init.c
glfwPlatformTerminate
void _glfwPlatformTerminate(void) { if (_glfw.x11.cursor) { XFreeCursor(_glfw.x11.display, _glfw.x11.cursor); _glfw.x11.cursor = (Cursor) 0; } free(_glfw.x11.clipboardString); if (_glfw.x11.im) { XCloseIM(_glfw.x11.im); _glfw.x11.im = NULL; } _glfwTermi...
pushq %rbx leaq 0xb6fc(%rip), %rbx # 0x16568 movq 0xf0(%rbx), %rsi testq %rsi, %rsi je 0xae8f movq 0xd8(%rbx), %rdi callq 0x60c0 movq $0x0, 0xf0(%rbx) movq 0x110(%rbx), %rdi callq 0x6460 movq 0x100(%rbx), %rdi testq %rdi, %rdi je 0xaeb7 callq 0x69b0 movq $0x0, 0x100(%rbx) callq 0xe8e0 movq 0xd8(%rbx), %rdi testq %...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/x11_init.c
getSupportedAtom
static Atom getSupportedAtom(Atom* supportedAtoms, unsigned long atomCount, const char* atomName) { Atom atom = XInternAtom(_glfw.x11.display, atomName, True); if (atom != None) { unsigned long i; for (i = 0; i < atomCount; i++) ...
pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 leaq 0xb671(%rip), %rax # 0x16568 movq 0xd8(%rax), %rdi movq %rdx, %rsi movl $0x1, %edx callq 0x6860 testq %rax, %rax sete %cl testq %rbx, %rbx sete %dl orb %cl, %dl jne 0xaf2b xorl %ecx, %ecx cmpq %rax, (%r14,%rcx,8) je 0xaf2d incq %rcx cmpq %rcx, %...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/x11_init.c
glfwSetVideoMode
GLboolean _glfwSetVideoMode(_GLFWmonitor* monitor, const GLFWvidmode* desired) { if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { XRRScreenResources* sr; XRRCrtcInfo* ci; XRROutputInfo* oi; GLFWvidmode current; const GLFWvidmode* best; RRMode nat...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp leaq 0xb61b(%rip), %r12 # 0x16568 cmpb $0x0, 0x430(%r12) je 0xb130 cmpb $0x0, 0x445(%r12) jne 0xb130 movq %rdi, %r14 callq 0x852f movq %rax, %r15 leaq 0x30(%rsp), %rbx movq %r14, %rdi movq %rbx, %rsi callq 0xb141 movq %rbx, %rdi mov...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/x11_monitor.c
glfwPlatformGetVideoMode
void _glfwPlatformGetVideoMode(_GLFWmonitor* monitor, GLFWvidmode* mode) { if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { XRRScreenResources* sr; XRRCrtcInfo* ci; sr = XRRGetScreenResourcesCurrent(_glfw.x11.display, _glfw.x11.root); ci = XRRGetCrtcInfo(_glfw....
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movq %rdi, %r15 leaq 0xb40f(%rip), %r12 # 0x16568 cmpb $0x0, 0x430(%r12) movq 0xd8(%r12), %rdi je 0xb205 cmpb $0x0, 0x445(%r12) jne 0xb205 movq 0xe8(%r12), %rsi callq 0x6a20 movq %rax, %r14 movq 0xd8(%r12), %rdi movq 0x80(%r15), %rdx movq...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/x11_monitor.c
glfwRestoreVideoMode
void _glfwRestoreVideoMode(_GLFWmonitor* monitor) { if (_glfw.x11.randr.available && !_glfw.x11.randr.monitorBroken) { XRRScreenResources* sr; XRRCrtcInfo* ci; if (monitor->x11.oldMode == None) return; sr = XRRGetScreenResources(_glfw.x11.display, _glfw.x11.root); ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax leaq 0xb252(%rip), %r12 # 0x16568 cmpb $0x0, 0x430(%r12) je 0xb3cc cmpb $0x0, 0x445(%r12) jne 0xb3cc movq %rdi, %rbx cmpq $0x0, 0x88(%rdi) je 0xb3cc movq 0xd8(%r12), %rdi movq 0xe8(%r12), %rsi callq 0x6580 movq %rax, %r14 movq 0xd8(%r12), %rdi movq 0x80(%rbx),...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/x11_monitor.c
glfwPlatformGetWindowFrameSize
void _glfwPlatformGetWindowFrameSize(_GLFWwindow* window, int* left, int* top, int* right, int* bottom) { long* extents = NULL; if (_glfw.x11.NET_FRAME_EXTENTS == None) return; if (!_glfwPlatformWindowVisible(window) && ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq $0x0, (%rsp) leaq 0x9b6f(%rip), %r12 # 0x16568 cmpq $0x0, 0x380(%r12) je 0xcbf0 movq %r8, %r14 movq %rcx, %r15 movq %rdx, %rbp movq %rdi, %r13 movq %rsi, 0x20(%rsp) movq 0xd8(%r12), %rdi movq 0x288(%r1...
/czyang[P]lightning-vault/external/glfw-3.1.2/src/x11_window.c
glfwDestroyContext
void _glfwDestroyContext(_GLFWwindow* window) { if (window->glx.visual) { XFree(window->glx.visual); window->glx.visual = NULL; } if (window->glx.context) { _glfw_glXDestroyContext(_glfw.x11.display, window->glx.context); window->glx.context = NULL; } }
pushq %rbx movq %rdi, %rbx movq 0x2d8(%rdi), %rdi testq %rdi, %rdi je 0xf8ba callq 0x6080 movq $0x0, 0x2d8(%rbx) movq 0x2d0(%rbx), %rsi testq %rsi, %rsi je 0xf8e5 leaq 0x6c9b(%rip), %rax # 0x16568 movq 0xd8(%rax), %rdi callq *0x4f0(%rax) movq $0x0, 0x2d0(%rbx) popq %rbx retq
/czyang[P]lightning-vault/external/glfw-3.1.2/src/glx_context.c
give_progression
static OPJ_PROG_ORDER give_progression(const char progression[4]) { if (strncmp(progression, "LRCP", 4) == 0) { return OPJ_LRCP; } if (strncmp(progression, "RLCP", 4) == 0) { return OPJ_RLCP; } if (strncmp(progression, "RPCL", 4) == 0) { return OPJ_RPCL; } if (strncmp...
pushq %rbx movq %rdi, %rbx leaq 0xd121(%rip), %rsi # 0x15d5c movl $0x4, %edx callq 0x3170 testl %eax, %eax je 0x8cb2 leaq 0xd111(%rip), %rsi # 0x15d61 movl $0x4, %edx movq %rbx, %rdi callq 0x3170 testl %eax, %eax je 0x8cb6 leaq 0xd0fe(%rip), %rsi # 0x15d66 movl $0x4, %edx movq %rbx, %rdi callq 0x3170 tes...
/ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/opj_compress.c
scale_component
void scale_component(opj_image_comp_t* component, OPJ_UINT32 precision) { int shift; OPJ_SIZE_T i, len; if (component->prec == precision) { return; } if (component->prec < precision) { scale_component_up(component, precision); return; } shift = (int)(component->prec ...
movl 0x18(%rdi), %eax movl %eax, %ecx subl %esi, %ecx je 0x8e2c jae 0x8da0 movl 0x8(%rdi), %ecx movl 0xc(%rdi), %r8d imulq %rcx, %r8 cmpl $0x0, 0x20(%rdi) je 0x8dca decb %al movl $0x1, %r9d movl %eax, %ecx shll %cl, %r9d testq %r8, %r8 je 0x8e0b movq 0x30(%rdi), %r10 leal -0x1(%rsi), %ecx xorl %r11d, %r11d movslq (%r10...
/ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/convert.c
convert_32s_C3P3
static void convert_32s_C3P3(const OPJ_INT32* pSrc, OPJ_INT32* const* pDst, OPJ_SIZE_T length) { OPJ_SIZE_T i; OPJ_INT32* pDst0 = pDst[0]; OPJ_INT32* pDst1 = pDst[1]; OPJ_INT32* pDst2 = pDst[2]; for (i = 0; i < length; i++) { pDst0[i] = pSrc[3 * i + 0]; ...
testq %rdx, %rdx je 0x8ea1 movq (%rsi), %rax movq 0x8(%rsi), %rcx movq 0x10(%rsi), %rsi addq $0x8, %rdi xorl %r8d, %r8d movl -0x8(%rdi), %r9d movl %r9d, (%rax,%r8,4) movl -0x4(%rdi), %r9d movl %r9d, (%rcx,%r8,4) movl (%rdi), %r9d movl %r9d, (%rsi,%r8,4) incq %r8 addq $0xc, %rdi cmpq %r8, %rdx jne 0x8e7e retq
/ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/convert.c
convert_2u32s_C1R
static void convert_2u32s_C1R(const OPJ_BYTE* pSrc, OPJ_INT32* pDst, OPJ_SIZE_T length) { OPJ_SIZE_T i; for (i = 0; i < (length & ~(OPJ_SIZE_T)3U); i += 4U) { OPJ_UINT32 val = *pSrc++; pDst[i + 0] = (OPJ_INT32)(val >> 6); pDst[i + 1] = (OPJ_INT32)((val >> 4)...
movq %rdx, %rcx xorl %eax, %eax andq $-0x4, %rcx je 0x9127 movzbl (%rdi), %r8d incq %rdi movl %r8d, %r9d shrl $0x6, %r9d movl %r9d, (%rsi,%rax,4) movl %r8d, %r9d shrl $0x4, %r9d andl $0x3, %r9d movl %r9d, 0x4(%rsi,%rax,4) movl %r8d, %r9d shrl $0x2, %r9d andl $0x3, %r9d movl %r9d, 0x8(%rsi,%rax,4) andl $0x3, %r8d movl %...
/ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/convert.c
convert_6u32s_C1R
static void convert_6u32s_C1R(const OPJ_BYTE* pSrc, OPJ_INT32* pDst, OPJ_SIZE_T length) { OPJ_SIZE_T i; for (i = 0; i < (length & ~(OPJ_SIZE_T)3U); i += 4U) { OPJ_UINT32 val0 = *pSrc++; OPJ_UINT32 val1 = *pSrc++; OPJ_UINT32 val2 = *pSrc++; pDst[i + 0...
movq %rdx, %rcx xorl %eax, %eax andq $-0x4, %rcx je 0x91fc movzbl (%rdi), %r8d movzbl 0x1(%rdi), %r9d movzbl 0x2(%rdi), %r10d addq $0x3, %rdi movl %r8d, %r11d shrl $0x2, %r11d movl %r11d, (%rsi,%rax,4) shll $0x4, %r8d andl $0x30, %r8d movl %r9d, %r11d shrl $0x4, %r11d orl %r8d, %r11d movl %r11d, 0x4(%rsi,%rax,4) andl $...
/ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/convert.c
convert_32s6u_C1R
static void convert_32s6u_C1R(const OPJ_INT32* pSrc, OPJ_BYTE* pDst, OPJ_SIZE_T length) { OPJ_SIZE_T i; for (i = 0; i < (length & ~(OPJ_SIZE_T)3U); i += 4U) { OPJ_UINT32 src0 = (OPJ_UINT32)pSrc[i + 0]; OPJ_UINT32 src1 = (OPJ_UINT32)pSrc[i + 1]; OPJ_UINT32 sr...
movq %rdx, %rcx xorl %eax, %eax andq $-0x4, %rcx je 0x9457 movl (%rdi,%rax,4), %r8d movl 0x4(%rdi,%rax,4), %r9d movl 0x8(%rdi,%rax,4), %r10d shll $0x2, %r8d movl %r9d, %r11d shrl $0x4, %r11d orl %r8d, %r11d movl %r10d, %r8d shll $0x6, %r8d orl 0xc(%rdi,%rax,4), %r8d movb %r11b, (%rsi) shll $0x4, %r9d shrl $0x2, %r10d o...
/ElMostafaIdrassi[P]OpenJPEGJNI/src/bin/jp2/convert.c