name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
Json::StyledWriter::writeArrayValue(Json::Value const&)
void StyledWriter::writeArrayValue( const Value &value ) { unsigned size = value.size(); if ( size == 0 ) pushValue( "[]" ); else { bool isArrayMultiLine = isMultineArray( value ); if ( isArrayMultiLine ) { writeWithIndent( "[" ); indent(); bool hasChildVa...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, %r12 movq %rdi, %rbx movq %rsi, %rdi callq 0x32920 movq %rax, 0x8(%rsp) testl %eax, %eax je 0x96856 movq %rbx, %rdi movq %r12, %rsi callq 0x2f930 testb %al, %al je 0x968aa leaq 0x20(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x31...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
Json::StyledWriter::indent()
void StyledWriter::indent() { indentString_ += std::string( indentSize_, ' ' ); }
pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx movslq 0x64(%rdi), %rsi leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq %rsp, %r14 movq %r14, %rdi movl $0x20, %edx callq 0x31820 addq $0x40, %rbx movq (%r14), %rsi movq 0x8(%r14), %rdx movq %rbx, %rdi callq 0x2f890 movq (%rsp), %rdi cmpq %r15, %rdi je...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
Json::StyledWriter::isMultineArray(Json::Value const&)
bool StyledWriter::isMultineArray( const Value &value ) { int size = value.size(); bool isMultiLine = size*3 >= rightMargin_ ; childValues_.clear(); for ( int index =0; index < size && !isMultiLine; ++index ) { const Value &childValue = value[index]; isMultiLine = isMultiLine || ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi callq 0x32920 movl %eax, %r15d leal (%r15,%r15,2), %eax cmpl 0x60(%rbx), %eax setge %bpl leaq 0x8(%rbx), %rdi movq 0x8(%rbx), %rsi movq %rdi, (%rsp) callq 0x30c60 testl %r15d, %r15d setle %al orb...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
Json::StyledWriter::writeIndent()
void StyledWriter::writeIndent() { if ( !document_.empty() ) { char last = document_[document_.length()-1]; if ( last == ' ' ) // already indented return; if ( last != '\n' ) // Comments may add new-line document_ += '\n'; } document_ += indentString_; }
pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 leaq 0x20(%rdi), %rbx movq 0x28(%rdi), %rax testq %rax, %rax je 0x96bed movq (%rbx), %rcx movzbl -0x1(%rcx,%rax), %eax cmpl $0xa, %eax je 0x96bed cmpl $0x20, %eax jne 0x96be0 addq $0x8, %rsp popq %rbx popq %r14 retq movq %rbx, %rdi movl $0xa, %esi callq 0x30d50 movq 0x40...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
Json::StyledWriter::normalizeEOL(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string StyledWriter::normalizeEOL( const std::string &text ) { std::string normalized; normalized.reserve( text.length() ); const char *begin = text.c_str(); const char *end = begin + text.length(); const char *current = begin; while ( current != end ) { char c = *current++; if ( ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %r15 movq %r15, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq 0x8(%rsi), %rsi callq 0x32610 movq 0x8(%r14), %r12 testq %r12, %r12 je 0x96cad movq (%r14), %rax addq %rax, %r12 leaq 0x1(%rax), %r14 movb (%rax)...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
Json::StyledStreamWriter::StyledStreamWriter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
StyledStreamWriter::StyledStreamWriter( std::string indentation ) : document_(NULL) , rightMargin_( 74 ) , indentation_( indentation ) , addChildValues_() { }
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx leaq 0x30(%rdi), %r15 xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rdi) movups %xmm0, (%rdi) movq %r15, 0x20(%rdi) movq $0x0, 0x28(%rdi) movb $0x0, 0x30(%rdi) movl $0x4a, 0x40(%rdi) addq $0x48, %rdi leaq 0x58(%rbx), %rax movq %rax, 0x48(%rbx) movq (%rsi), %rax movq 0x8(%rsi), ...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
Json::StyledStreamWriter::write(std::ostream&, Json::Value const&)
void StyledStreamWriter::write( std::ostream &out, const Value &root ) { document_ = &out; addChildValues_ = false; indentString_ = ""; writeCommentBeforeValue( root ); writeValue( root ); writeCommentAfterValueOnSameLine( root ); *document_ << "\n"; document_ = NULL; // Forget the stream, for s...
pushq %r14 pushq %rbx pushq %rax movq %rdx, %r14 movq %rdi, %rbx movq %rsi, 0x18(%rdi) movb $0x0, 0x68(%rdi) addq $0x20, %rdi movq 0x28(%rbx), %rdx leaq 0x35da2(%rip), %rcx # 0xccb1b xorl %esi, %esi xorl %r8d, %r8d callq 0x32570 movq %rbx, %rdi movq %r14, %rsi callq 0x32340 movq %rbx, %rdi movq %r14, %rsi callq 0x3...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
Json::StyledStreamWriter::writeCommentBeforeValue(Json::Value const&)
void StyledStreamWriter::writeCommentBeforeValue( const Value &root ) { if ( !root.hasComment( commentBefore ) ) return; *document_ << normalizeEOL( root.getComment( commentBefore ) ); *document_ << "\n"; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, %r15 movq %rdi, %rbx movq %rsi, %rdi xorl %esi, %esi callq 0x31c60 testb %al, %al je 0x96e6d movq 0x18(%rbx), %r14 leaq 0x28(%rsp), %r12 movq %r12, %rdi movq %r15, %rsi xorl %edx, %edx callq 0x31660 leaq 0x8(%rsp), %rdi movq %r12, %rsi callq 0x3333...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
Json::StyledStreamWriter::normalizeEOL(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string StyledStreamWriter::normalizeEOL( const std::string &text ) { std::string normalized; normalized.reserve( text.length() ); const char *begin = text.c_str(); const char *end = begin + text.length(); const char *current = begin; while ( current != end ) { char c = *current++; ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %r15 movq %r15, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq 0x8(%rsi), %rsi callq 0x32610 movq 0x8(%r14), %r12 testq %r12, %r12 je 0x97aa5 movq (%r14), %rax addq %rax, %r12 leaq 0x1(%rax), %r14 movb (%rax)...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/jsoncpp/src/lib_json/json_writer.cpp
mbedtls_aes_crypt_ctr
int mbedtls_aes_crypt_ctr( mbedtls_aes_context *ctx, size_t length, size_t *nc_off, unsigned char nonce_counter[16], unsigned char stream_block[16], const unsigned char *input, unsig...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq %rdx, 0x8(%rsp) movq (%rdx), %rbx testq %rsi, %rsi je 0x9b882 movq %r9, %r14 movq %r8, %r15 movq %rcx, %r12 movq %rsi, %r13 movq 0x50(%rsp), %rbp testq %rbx, %rbx jne 0x9b865 movq 0x10(%rsp), %rdi movl $0x1, %e...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/aes.c
mbedtls_aes_self_test
int mbedtls_aes_self_test( int verbose ) { int ret = 0, i, j, u, v; unsigned char key[32]; unsigned char buf[64]; unsigned char iv[16]; #if defined(MBEDTLS_CIPHER_MODE_CBC) unsigned char prv[16]; #endif #if defined(MBEDTLS_CIPHER_MODE_CTR) || defined(MBEDTLS_CIPHER_MODE_CFB) size_t offset; #endi...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1f8, %rsp # imm = 0x1F8 movl %edi, %ebx pxor %xmm0, %xmm0 leaq 0x80(%rsp), %rax movdqa %xmm0, (%rax) movdqa %xmm0, 0x10(%rax) leaq 0xc0(%rsp), %r15 movl $0x120, %edx # imm = 0x120 movq %r15, %rdi xorl %esi, %esi callq 0x3030...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/aes.c
mbedtls_dhm_parse_dhm
int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, size_t dhminlen ) { int ret; size_t len; unsigned char *p, *end; #if defined(MBEDTLS_PEM_PARSE_C) mbedtls_pem_context pem; mbedtls_pem_init( &pem ); /* Avoid calling mbedtls_pem_read_buffer() on...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rdx, 0x18(%rsp) leaq 0x28(%rsp), %rdi callq 0x30be0 movq 0x18(%rsp), %rax movl $0xffffef80, %ebp # imm = 0xFFFFEF80 testq %rax, %rax je 0xa3ed7 cmpb $0x0, -0x1(%r14,%rax) jne 0xa3ed7 leaq 0x18(...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/dhm.c
mbedtls_dhm_parse_dhmfile
int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ) { int ret; size_t n; unsigned char *buf; if( ( ret = load_file( path, &buf, &n ) ) != 0 ) return( ret ); ret = mbedtls_dhm_parse_dhm( dhm, buf, n ); mbedtls_zeroize( buf, n ); mbedtls_free( buf ); ret...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rax movq %rdi, %rbx leaq 0x1fbac(%rip), %rsi # 0xc3bb3 movq %rax, %rdi callq 0x31890 movl $0xffffcb80, %ebp # imm = 0xFFFFCB80 testq %rax, %rax je 0xa40b5 movq %rax, %r12 movq %rax, %rdi xorl %esi, %esi movl $0x2, %edx ca...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/dhm.c
mbedtls_dhm_self_test
int mbedtls_dhm_self_test( int verbose ) { int ret; mbedtls_dhm_context dhm; mbedtls_dhm_init( &dhm ); if( verbose != 0 ) mbedtls_printf( " DHM parameter load: " ); if( ( ret = mbedtls_dhm_parse_dhm( &dhm, (const unsigned char *) mbedtls_test_dhm_params, ...
pushq %rbp pushq %rbx subq $0xf8, %rsp movl %edi, %ebx movq %rsp, %rdi movl $0xf8, %edx xorl %esi, %esi callq 0x30300 testl %ebx, %ebx je 0xa4145 leaq 0x26642(%rip), %rdi # 0xca780 xorl %eax, %eax callq 0x2f150 leaq 0x26664(%rip), %rsi # 0xca7b0 movq %rsp, %rdi movl $0xfb, %edx callq 0x329d0 movl %eax, %ebp tes...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/dhm.c
mbedtls_ecdh_compute_shared
int mbedtls_ecdh_compute_shared( mbedtls_ecp_group *grp, mbedtls_mpi *z, const mbedtls_ecp_point *Q, const mbedtls_mpi *d, int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) { int ret; mbedtls_ecp_point P; mbedtls_ecp_poin...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r9, 0x8(%rsp) movq %r8, %r15 movq %rcx, %r13 movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rsp), %rdi callq 0x2f8c0 movq %rbx, %rdi movq %r12, %rsi callq 0x32760 testl %eax, %eax jne 0xa41f7 movq %r14, (%rsp) leaq 0x10...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/ecdh.c
mbedtls_ecdh_free
void mbedtls_ecdh_free( mbedtls_ecdh_context *ctx ) { if( ctx == NULL ) return; mbedtls_ecp_group_free( &ctx->grp ); mbedtls_ecp_point_free( &ctx->Q ); mbedtls_ecp_point_free( &ctx->Qp ); mbedtls_ecp_point_free( &ctx->Vi ); mbedtls_ecp_point_free( &ctx->Vf ); mbedtls_mpi_free( ...
testq %rdi, %rdi je 0xa42a9 pushq %rbx movq %rdi, %rbx callq 0x30f50 leaq 0x110(%rbx), %rdi callq 0x31dc0 leaq 0x158(%rbx), %rdi callq 0x31dc0 leaq 0x1c0(%rbx), %rdi callq 0x31dc0 leaq 0x208(%rbx), %rdi callq 0x31dc0 leaq 0xf8(%rbx), %rdi callq 0x2fcc0 leaq 0x1a0(%rbx), %rdi callq 0x2fcc0 addq $0x250, %rbx #...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/ecdh.c
pem_pbkdf1
static void pem_pbkdf1( unsigned char *key, size_t keylen, unsigned char *iv, const unsigned char *pwd, size_t pwdlen ) { mbedtls_md5_context md5_ctx; unsigned char md5sum[16]; size_t use_len; mbedtls_md5_init( &md5_ctx ); /* * key[ 0..15] = MD5...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %r8, %r12 movq %rcx, %r13 movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rsp), %rbp movq %rbp, %rdi callq 0x32310 movq %rbp, %rdi callq 0x2fec0 movq %rbp, %rdi movq %r13, %rsi movq %r12, %rdx callq 0x322e0 movl $0x8, %ed...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/pem.c
mbedtls_pk_info_from_type
const mbedtls_pk_info_t * mbedtls_pk_info_from_type( mbedtls_pk_type_t pk_type ) { switch( pk_type ) { #if defined(MBEDTLS_RSA_C) case MBEDTLS_PK_RSA: return( &mbedtls_rsa_info ); #endif #if defined(MBEDTLS_ECP_C) case MBEDTLS_PK_ECKEY: return( &mbedtls_eckey_info ); ...
decl %edi cmpl $0x3, %edi ja 0xabeb2 movl %edi, %eax leaq 0x4615b(%rip), %rcx # 0xf2008 movq (%rcx,%rax,8), %rax retq xorl %eax, %eax retq
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/pk.c
mbedtls_pk_setup
int mbedtls_pk_setup( mbedtls_pk_context *ctx, const mbedtls_pk_info_t *info ) { if( ctx == NULL || info == NULL || ctx->pk_info != NULL ) return( MBEDTLS_ERR_PK_BAD_INPUT_DATA ); if( ( ctx->pk_ctx = info->ctx_alloc_func() ) == NULL ) return( MBEDTLS_ERR_PK_ALLOC_FAILED ); ctx->pk_info = i...
testq %rdi, %rdi sete %al testq %rsi, %rsi sete %cl orb %al, %cl movl $0xffffc180, %eax # imm = 0xFFFFC180 jne 0xabef9 pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 cmpq $0x0, (%rdi) jne 0xabef2 movq %rsi, %rbx callq *0x48(%rsi) movq %rax, 0x8(%r14) testq %rax, %rax je 0xabeed movq %rbx, (%r14) xorl %eax, %eax...
/aliyun-beta[P]aliyun-openapi-cpp-sdk/aliyun_api_core/third_party/mbedtls-2.1.2/library/pk.c
lace_start
void lace_start(unsigned int _n_workers, size_t dqsize) { #if LACE_USE_HWLOC // Initialize topology and information about cpus hwloc_topology_init(&topo); hwloc_topology_load(topo); n_nodes = hwloc_get_nbobjs_by_type(topo, HWLOC_OBJ_NODE); n_cores = hwloc_get_nbobjs_by_type(topo, HWLOC_OBJ_CORE); ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rsi, %r14 movl %edi, %ebp callq 0x1eb6 testl %ebp, %ebp movl %eax, 0xc(%rsp) cmovel %eax, %ebp movl %ebp, 0x325b(%rip) # 0x5140 testq %r14, %r14 je 0x1ef3 movq %r14, 0x3207(%rip) # 0x50f8 jmp 0x1efa movq 0x31fe(%rip), %r1...
/trolando[P]lace/src/lace.c
lace_steal
lace_steal(WorkerP *self, Task *__dq_head, Worker *victim) { if (victim != NULL && !victim->allstolen) { TailSplitNA ts; ts.v = victim->ts.v; if (ts.ts.tail < ts.ts.split) { TailSplitNA ts_new; ts_new.v = ts.v; ts_new.ts.tail++; if (atomic_comp...
testq %rdx, %rdx je 0x26e6 cmpb $0x0, 0x10(%rdx) je 0x26e7 retq movq 0x8(%rdx), %rcx movq %rcx, %rax shrq $0x20, %rax cmpl %eax, %ecx jae 0x2745 movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000 leal 0x1(%rcx), %r8d andq %rcx, %rax orq %rax, %r8 movq %rcx, %rax lock cmpxchgq %r8, 0x8(%rdx) jne 0x26e6 pushq %r1...
/trolando[P]lace/src/lace.h
main
int main(int argc, char **argv) { ArgumentHandlers::Arguments args; argp_parse (&ArgumentHandlers::theArgpStruc, argc, argv, 0, 0, &args); bool errorOccurred=false; Qheur_t Qheur=args.qheur; int horizon=args.horizon; int k=args.k; int restarts=args.nrRestarts; try { Timing Tim...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x7a8, %rsp # imm = 0x7A8 movq %rsi, %rbx movl %edi, %ebp leaq 0x550(%rsp), %r14 movq %r14, %rdi callq 0x54ee leaq 0x457f(%rip), %rdi # 0x8238 movl %ebp, %esi movq %rbx, %rdx xorl %ecx, %ecx xorl %r8d, %r8d movq %r14, %r9 callq 0x30...
/laurimi[P]npgi/build_O1/third-party/ExternalProject/madp/src/project_madp/src/solvers/GMAA_ELSI.cpp
E::~E()
virtual ~E(){}
movq %rdi, %rax leaq 0x2856(%rip), %rcx # 0x7d28 movq %rcx, (%rdi) movq 0x8(%rdi), %rdi addq $0x18, %rax cmpq %rax, %rdi je 0x54ed movq (%rax), %rsi incq %rsi jmp 0x3280 retq
/laurimi[P]npgi/build_O1/third-party/ExternalProject/madp/src/project_madp/src/solvers/../../src/base/E.h
phr_parse_response
int phr_parse_response(const char *buf_start, size_t len, int *minor_version, int *status, const char **msg, size_t *msg_len, struct phr_header *headers, size_t *num_headers, size_t last_len) { const char *buf = buf_start, *buf_end = buf + len; size_t max_headers = *num_headers; int r...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, %r12 movq %r8, %r13 movq %rcx, %rbp movq %rsi, %r14 movq %rdi, %rbx movq 0x60(%rsp), %rcx movq 0x58(%rsp), %r15 addq %rdi, %r14 movq (%r15), %r9 movl $0xffffffff, (%rdx) # imm = 0xFFFFFFFF movl $0x0, (%rbp) xorl %eax, %eax ...
/mattn[P]clask/clask/../clask/picohttpparser.c
parse_headers(char const*, char const*, phr_header*, unsigned long*, unsigned long, int*)
static const char *parse_headers(const char *buf, const char *buf_end, struct phr_header *headers, size_t *num_headers, size_t max_headers, int *ret) { for (;; ++*num_headers) { CHECK_EOF(); if (*buf == '\015') { ++buf; EXPECT_CHAR('\012'); ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, %rbx cmpq %rsi, %rdi je 0x7445 movq %r8, %r14 movq %rcx, %r12 movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %rax leaq 0x10d4e(%rip), %rbp # 0x18048 movzbl (%rax), %ecx cmpl $0xa, %ecx je 0x742b cmpl $0xd, %ecx je 0x7430 movq (...
/mattn[P]clask/clask/../clask/picohttpparser.c
clask::logger::~logger()
inline logger::~logger() { if (lv >= logger::level()) { os << std::endl; std::cerr << os.str().c_str(); } }
pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x199a5(%rip), %rax # 0x219f0 movq %rax, (%rdi) movl 0x180(%rdi), %eax cmpl 0x1a3e6(%rip), %eax # 0x22440 jl 0x80f9 leaq 0x8(%rbx), %r14 movq 0x8(%rbx), %rax movq -0x18(%rax), %rdi addq %r14, %rdi movl $0xa, %esi callq 0x54b0 movsbl %al, %esi movq %r14...
/mattn[P]clask/clask/../clask/core.hpp
clask::response_writer::write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline void response_writer::write(const std::string& content) { if (!header_out) { write_headers(); } send(s, content.data(), (int) content.size(), MSG_NOSIGNAL); }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 cmpb $0x0, 0x24(%rdi) jne 0x8571 movq (%r14), %rax movq %r14, %rdi callq *0x10(%rax) movl 0x20(%r14), %edi movq (%rbx), %rsi movslq 0x8(%rbx), %rdx movl $0x4000, %ecx # imm = 0x4000 addq $0x8, %rsp popq %rbx popq %r14 jmp 0x5260 nop
/mattn[P]clask/clask/../clask/core.hpp
clask::server_t::static_dir(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
inline void server_t::static_dir(const std::string& path, const std::string& dir, bool listing) { parse_tree(treeGET, path, func_t { .f_writer = [path, dir, listing](response_writer& resp, request& req) { std::vector<std::string> paths; std::string p = req.uri; while (true) { auto pos = ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movl %ecx, %ebp movq %rdx, %r15 movq %rsi, %rbx movq %rdi, %r14 leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rsi), %rsi movq 0x8(%rbx), %rdx addq %rsi, %rdx movq %rsp, %rdi callq 0x9c84 leaq 0x20(%rsp), %rdi leaq 0x30(%rsp), %r13 ...
/mattn[P]clask/clask/../clask/core.hpp
clask::response_writer::write(char*, unsigned long)
inline void response_writer::write(char* buf, size_t n) { write(std::string(buf, n)); }
pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) addq %rsi, %rdx movq %rsp, %r14 movq %r14, %rdi callq 0x976e movq (%rbx), %rax movq %rbx, %rdi movq %r14, %rsi callq *(%rax) movq (%rsp), %rdi cmpq %r15, %rdi je 0x88b8 movq 0x10(%rsp), %rsi incq %rsi callq 0x...
/mattn[P]clask/clask/../clask/core.hpp
clask::server_t::server_t()
server_t() : treeGET{}, treePOST{} {}
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdi, %rbx leaq 0x10(%rdi), %r13 movq %r13, (%rdi) xorl %eax, %eax movq %rax, 0x8(%rdi) movb %al, 0x10(%rdi) leaq 0x20(%rdi), %r14 leaq 0x48(%rdi), %rcx xorps %xmm0, %xmm0 movups %xmm0, 0x20(%rdi) movq %rax, 0x30(%rdi) movq %rcx, 0x38(%rdi) movq %rax, 0x40(%rd...
/mattn[P]clask/clask/../clask/core.hpp
clask::serve_file(clask::response_writer&, clask::request&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline void serve_file(response_writer& resp, request& req, const std::string& path) { auto wpath = to_wstring(path); std::filesystem::path fspath(wpath.c_str()); std::ifstream is(fspath, std::ios::in | std::ios::binary); if (is.fail()) { resp.clear_header(); resp.code = 404; resp.set_header("conte...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x24b8, %rsp # imm = 0x24B8 movq %rsi, %r14 movq %rdi, %rbx leaq 0x100(%rsp), %r15 movq %r15, %rdi movq %rdx, %rsi callq 0xc1e9 movq (%r15), %rax leaq 0x4b0(%rsp), %rsi movq %rax, (%rsi) leaq 0xd8(%rsp), %rdi movl $0x2, %edx callq 0xcdee ...
/mattn[P]clask/clask/../clask/core.hpp
clask::to_wstring(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline std::wstring to_wstring(const std::string& input) { try { std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>> converter; return converter.from_bytes(input); } catch (std::range_error&) { size_t length = input.length(); std::wstring result; result.reserve(length); for (size_t i = 0;...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x60, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsp, %rdi callq 0xc64a movq (%r14), %rdx movq 0x8(%r14), %rcx addq %rdx, %rcx movq %rsp, %rsi movq %rbx, %rdi callq 0xc738 movq %rsp, %rdi callq 0xc6d0 movq %rbx, %rax addq $0x60, %rsp popq %rbx popq %r12 popq ...
/mattn[P]clask/clask/../clask/core.hpp
clask::html_encode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
inline std::string html_encode(const std::string& value) { std::string buf; buf.reserve(value.size()); for (const char & c : value) { switch (c) { case '&': buf.append("&amp;"); break; case '\"': buf.append("&quot;"); break; case '\'': buf.append("&apos;"); break; case '<': buf.appe...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %rax movq %rax, (%rsp) movq %rax, (%rdi) movq $0x0, 0x8(%rdi) movb $0x0, 0x10(%rdi) movq 0x8(%rsi), %rsi callq 0x56a0 movq 0x8(%r14), %r12 testq %r12, %r12 je 0xc38d movq (%r14), %r14 leaq 0xc4b...
/mattn[P]clask/clask/../clask/core.hpp
clask::url_encode(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
inline std::string url_encode(const std::string &value, bool escape_slash = true) { std::ostringstream os; os.fill('0'); os << std::hex; for (char c : value) { if (isalnum(c) || c == '-' || c == '_' || c == '.' || c == '~') { os << c; continue; } if (!escape_slash && c == '/') { os...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x188, %rsp # imm = 0x188 movl %edx, 0x4(%rsp) movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rsp), %r15 movq %r15, %rdi callq 0x55e0 movq (%r15), %rax movq -0x18(%rax), %rax leaq (%rsp,%rax), %r15 addq $0x10, %r15 cmpb $0x0, 0xe1(%r15) jne ...
/mattn[P]clask/clask/../clask/core.hpp
clask::server_t::_run(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
inline void server_t::_run(const std::string& host, int port = 8080) { int server_fd, s; struct sockaddr_in address{}; sockopt_t opt = 1; int addrlen = sizeof(address); #ifdef _WIN32 WSADATA wsa; (void) WSAStartup(MAKEWORD(2, 0), &wsa); #endif sort_handlers(treeGET); sort_handlers(treePOST); #if 0 ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movl %edx, %r14d movq %rsi, %rbx movq %rdi, %r15 xorps %xmm0, %xmm0 movaps %xmm0, 0x10(%rsp) movl $0x1, 0x2c(%rsp) movl $0x10, 0x8(%rsp) addq $0x20, %rdi callq 0xd6d2 movq %r15, 0x38(%rsp) leaq 0xc0(%r15), %rdi callq 0xd6d2 movl $0x2, %e...
/mattn[P]clask/clask/../clask/core.hpp
clask::sort_handlers(clask::_node&)
inline void sort_handlers(node& n) { std::sort( n.children.begin(), n.children.end(), [](const node& x, const node& y){ return x.name > y.name; } ); for (auto& v : n.children) { sort_handlers(v); } }
pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq (%rdi), %r14 movq 0x8(%rdi), %r15 cmpq %r15, %r14 je 0xd721 movq %r15, %rax subq %r14, %rax sarq $0x5, %rax movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD imulq %rax, %rcx bsrq %rcx, %rdx xorl $0x3f, %edx addl %edx, %edx xorq $0x7e, %rdx movq %r14, %r...
/mattn[P]clask/clask/../clask/core.hpp
clask::logger::get[abi:cxx11](clask::_log_level)
inline std::ostringstream& logger::get(log_level level) { auto t = std::time(nullptr); auto tm = *std::localtime(&t); os << std::put_time(&tm, "%Y/%m/%d %H:%M:%S "); switch (level) { case log_level::ERR: os << "ERR: "; break; case log_level::WARN: os << "WARN: "; break; case log_level::INFO: os << "...
pushq %r15 pushq %r14 pushq %rbx subq $0x50, %rsp movl %esi, %ebx movq %rdi, %r14 xorl %edi, %edi callq 0x54a0 leaq 0x8(%rsp), %rdi movq %rax, (%rdi) callq 0x53d0 movups (%rax), %xmm0 movups 0x10(%rax), %xmm1 movups 0x20(%rax), %xmm2 leaq 0x10(%rsp), %rsi movaps %xmm0, (%rsi) movaps %xmm1, 0x10(%rsi) movaps %xmm2, 0x20...
/mattn[P]clask/clask/../clask/core.hpp
clask::request::request(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::unordered_map<std::__cxx11::basic_string<char, std:...
request( std::string method, std::string raw_uri, std::string uri, std::unordered_map<std::string, std::string> uri_params, std::vector<header> headers, std::string body) : method(std::move(method)), raw_uri(std::move(raw_uri)), uri(std::move(uri)), uri_params(std::move(uri_params)), h...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %r9, %r14 movq %rdi, %rbx addq $0x10, %rdi movq %rdi, (%rbx) movq (%rsi), %r9 leaq 0x10(%rsi), %rax cmpq %rax, %r9 je 0x107ef movq %r9, (%rbx) movq (%rax), %rdi movq %rdi, 0x10(%rbx) jmp 0x107f5 movups (%rax), %xmm0 movups %xmm0, (%rdi) movq 0x8(%rsi), %rdi mo...
/mattn[P]clask/clask/../clask/core.hpp
clask::server_t::match(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<void (clask::_func_t const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::alloca...
inline bool server_t::match(const std::string& method, const std::string& s, const std::function<void(const func_t& fn, const std::vector<std::string>&)>& fn) const { node n = method == "GET" ? treeGET : treePOST; std::vector<std::string> args; auto ss = s; std::string sub; while (true) { auto pos = ss.fi...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1c8, %rsp # imm = 0x1C8 movq %rcx, 0x118(%rsp) movq %rdx, %rbx movq %rsi, %rax movq %rdi, %r14 leaq 0x7fcd(%rip), %rsi # 0x18956 movq %rax, %rdi callq 0x5130 leaq 0xc0(%r14), %rcx addq $0x20, %r14 testl %eax, %eax cmovneq %rcx, %r...
/mattn[P]clask/clask/../clask/core.hpp
clask::_func_t::handle(int, clask::request&, bool&) const
inline int func_t::handle(int s, request& req, bool& keep_alive) const { int code = 200; if (f_string != nullptr) { auto res = f_string(req); std::ostringstream os; os << "HTTP/1.1 200 OK\r\nContent-Type: text/plain; charset=UTF-8\r\n"; os << "Connection: " << (keep_alive ? "Keep-Alive" : "Close") <...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x248, %rsp # imm = 0x248 movq %rcx, %r14 movl %esi, %ebx movq %rdi, %rax cmpq $0x0, 0x30(%rdi) je 0x11ece leaq 0x20(%rax), %rsi leaq 0x88(%rsp), %rdi callq *0x38(%rax) leaq 0xd0(%rsp), %rdi callq 0x55e0 leaq 0x6c39(%rip), %rsi # 0x...
/mattn[P]clask/clask/../clask/core.hpp
nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>::operator[](unsigned long)
reference operator[](size_type idx) { // implicitly convert null value to an empty array if (is_null()) { m_type = value_t::array; m_value.array = create<array_t>(); assert_invariant(); } // operator[] only works for arrays if (JSO...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, %rbx movq %rdi, %r14 cmpb $0x0, (%rdi) jne 0x1300d movb $0x2, (%r14) movl $0x18, %edi callq 0x54c0 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq %rax, 0x8(%r14) movq %r14, %rdi callq 0x1339c cmpb $0x2, (%r...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>::assert_invariant() const
void assert_invariant() const noexcept { assert(m_type != value_t::object or m_value.object != nullptr); assert(m_type != value_t::array or m_value.array != nullptr); assert(m_type != value_t::string or m_value.string != nullptr); }
pushq %rax movb (%rdi), %al cmpb $0x1, %al sete %dl movq 0x8(%rdi), %rcx testq %rcx, %rcx sete %sil andb %dl, %sil cmpb $0x1, %sil je 0x133e0 testq %rcx, %rcx sete %dl cmpb $0x2, %al sete %sil andb %dl, %sil cmpb $0x1, %sil je 0x133ff testq %rcx, %rcx sete %cl cmpb $0x3, %al sete %al andb %cl, %al cmpb $0x1, %al je 0x1...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::exception::name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
static std::string name(const std::string& ename, int id_) { return "[json.exception." + ename + "." + std::to_string(id_) + "] "; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movl %edx, %r14d movq %rsi, %rdx movq %rdi, %rbx leaq 0x566e(%rip), %rsi # 0x18acd leaq 0x68(%rsp), %r15 movq %r15, %rdi callq 0x1373c leaq 0x5298(%rip), %rsi # 0x1870b movq %r15, %rdi callq 0x5800 leaq 0x58(%rsp), %r12 movq %r...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::type_error::create(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static type_error create(int id_, const std::string& what_arg) { std::string w = exception::name("type_error", id_) + what_arg; return type_error(id_, w.c_str()); }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x68, %rsp movq %rdx, %r14 movl %esi, %ebp movq %rdi, %rbx leaq 0x38(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x53b7(%rip), %rsi # 0x18cfb leaq 0x53ba(%rip), %rdx # 0x18d05 leaq 0x28(%rsp), %rdi callq 0x976e leaq 0x48(%rsp), %rdi leaq 0x28(%rsp), %rsi movl %ebp...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>::basic_json(nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::a...
basic_json(const basic_json& other) : m_type(other.m_type) { // check of passed value is valid other.assert_invariant(); switch (m_type) { case value_t::object: { m_value = *other.m_value.object; break; } ...
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movb (%rsi), %al movb %al, (%rdi) movq $0x0, 0x8(%rdi) movq %rsi, %rdi callq 0x1339c movzbl (%rbx), %eax decl %eax cmpl $0x6, %eax ja 0x14323 leaq 0x3eaf(%rip), %rcx # 0x18188 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq 0x8(%r14), %rax...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::serializer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::serializer(std::shared_ptr<nlohmann::detail::output_adapter_protocol<char>>, char, nlohm...
serializer(output_adapter_t<char> s, const char ichar, error_handler_t error_handler_ = error_handler_t::strict) : o(std::move(s)) , loc(std::localeconv()) , thousands_sep(loc->thousands_sep == nullptr ? '\0' : * (loc->thousands_sep)) , decimal_point(loc->decimal_point == ...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %ecx, %ebp movl %edx, %r14d movq %rdi, %rbx movq (%rsi), %rax movq %rax, (%rdi) xorl %r15d, %r15d movq %r15, 0x8(%rdi) movq 0x8(%rsi), %rax movq %r15, 0x8(%rsi) movq %rax, 0x8(%rdi) movq %r15, (%rsi) xorps %xmm0, %xmm0 movups %xmm0, 0x40(%rdi) movups %xmm0, 0x...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::serializer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::dump_escaped(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<cha...
void dump_escaped(const string_t& s, const bool ensure_ascii) { std::uint32_t codepoint; std::uint8_t state = UTF8_ACCEPT; std::size_t bytes = 0; // number of bytes written to string_buffer // number of bytes written at the point of the last valid byte std::size_t bytes_aft...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xb8, %rsp movl %edx, %r9d movq %rsi, %rbx movq %rdi, %r8 cmpq $0x0, 0x8(%rsi) je 0x15b75 leaq 0x5a(%r8), %rax movq %rax, 0x8(%rsp) leaq 0x4529(%rip), %rdi # 0x19e18 xorl %r12d, %r12d xorl %r15d, %r15d xorl %eax, %eax xorl %edx, %edx xorl %r14...
/mattn[P]clask/example/json/./nlohmann/json.hpp
void nlohmann::detail::serializer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::dump_integer<long, 0>(long)
void dump_integer(NumberType x) { static constexpr std::array<std::array<char, 2>, 100> digits_to_99 { { {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}}, {{'1', '0'}...
pushq %rbx testq %rsi, %rsi je 0x15f22 movq %rsi, %rcx leaq 0x10(%rdi), %rsi testq %rcx, %rcx js 0x15f33 movl $0x1, %r9d cmpq $0xa, %rcx jb 0x15fa7 movl $0x4, %r9d movabsq $0x346dc5d63886594b, %r10 # imm = 0x346DC5D63886594B movq %rcx, %r8 cmpq $0x63, %r8 jbe 0x15f90 cmpq $0x3e7, %r8 # imm = 0x3E7 jbe 0x15f...
/mattn[P]clask/example/json/./nlohmann/json.hpp
void nlohmann::detail::serializer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::dump_integer<unsigned long, 0>(unsigned long)
void dump_integer(NumberType x) { static constexpr std::array<std::array<char, 2>, 100> digits_to_99 { { {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}}, {{'1', '0'}...
pushq %rbx testq %rsi, %rsi je 0x160bb movl $0x1, %r8d cmpq $0xa, %rsi jb 0x160d5 movl $0x4, %r8d movabsq $0x346dc5d63886594b, %r9 # imm = 0x346DC5D63886594B movq %rsi, %rcx cmpq $0x63, %rcx jbe 0x160cc cmpq $0x3e7, %rcx # imm = 0x3E7 jbe 0x160d2 cmpq $0x2710, %rcx # imm = 0x2710 jb 0x160d5 movq %r...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::serializer<nlohmann::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::adl_serializer>>::dump_float(double)
void dump_float(number_float_t x) { // NaN / inf if (not std::isfinite(x)) { o->write_characters("null", 4); return; } // If number_float_t is an IEEE-754 single or double precision number, // use the Grisu2 algorithm to produce short numbers ...
pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movq %xmm0, %rax btrq $0x3f, %rax movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000 cmpq %rcx, %rax jl 0x161d3 movq (%rbx), %rdi movq (%rdi), %rax movq 0x8(%rax), %rax leaq 0x2b41(%rip), %rsi # 0x18d06 movl $0x4, %edx addq $0x8, %rsp popq %rbx popq %r14 j...
/mattn[P]clask/example/json/./nlohmann/json.hpp
void nlohmann::detail::dtoa_impl::grisu2<double>(char*, int&, int&, double)
JSON_HEDLEY_NON_NULL(1) void grisu2(char* buf, int& len, int& decimal_exponent, FloatType value) { static_assert(diyfp::kPrecision >= std::numeric_limits<FloatType>::digits + 3, "internal error: not enough precision"); assert(std::isfinite(value)); assert(value > 0); // If the neighb...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x58, %rsp movq %xmm0, %rax btrq $0x3f, %rax movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000 cmpq %rcx, %rax jge 0x163db xorpd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jbe 0x163fa movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 leaq 0x28(%rsp), %r12 movq %r12, %rd...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::dtoa_impl::format_buffer(char*, int, int, int, int)
inline char* format_buffer(char* buf, int len, int decimal_exponent, int min_exp, int max_exp) { assert(min_exp < 0); assert(max_exp > 0); const int k = len; const int n = len + decimal_exponent; // v = buf * 10^(n-k) // k is the length of the buffer (number of decim...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax testl %ecx, %ecx jns 0x165eb testl %r8d, %r8d jle 0x1660a movl %esi, %r15d movq %rdi, %rbx leal (%rdx,%r15), %r14d testl %edx, %edx sets %al cmpl %r8d, %r14d setg %sil orb %al, %sil je 0x164b2 cmpl %r8d, %r14d setg %al testl %r14d, %r14d setle %sil orb %al, %sil je...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::dtoa_impl::boundaries nlohmann::detail::dtoa_impl::compute_boundaries<double>(double)
boundaries compute_boundaries(FloatType value) { assert(std::isfinite(value)); assert(value > 0); // Convert the IEEE representation into a diyfp. // // If v is denormal: // value = 0.F * 2^(1 - bias) = ( F) * 2^(1 - bias - (p-1)) // If v is normalized: // value = 1.F...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %xmm0, %rax movq %rax, %rcx btrq $0x3f, %rcx movabsq $0x7ff0000000000000, %rdx # imm = 0x7FF0000000000000 cmpq %rdx, %rcx jge 0x1678f xorpd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jbe 0x167ae movq %rdi, %rbx movabsq $0x10000000000000, %rc...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::dtoa_impl::grisu2(char*, int&, int&, nlohmann::detail::dtoa_impl::diyfp, nlohmann::detail::dtoa_impl::diyfp, nlohmann::detail::dtoa_impl::diyfp)
inline void grisu2(char* buf, int& len, int& decimal_exponent, diyfp m_minus, diyfp v, diyfp m_plus) { assert(m_plus.e == m_minus.e); assert(m_plus.e == v.e); // --------(-----------------------+-----------------------)-------- (A) // m- v ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rdi, %rax movq %rcx, 0x58(%rsp) movl %r8d, 0x60(%rsp) movl 0xc8(%rsp), %edi cmpl %r8d, %edi jne 0x168c0 movq %rax, 0x20(%rsp) movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) leaq 0xb0(%rsp), %r13 cmpl 0x8(%r13), %edi jne 0x168df callq ...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::dtoa_impl::get_cached_power_for_binary_exponent(int)
inline cached_power get_cached_power_for_binary_exponent(int e) { // Now // // alpha <= e_c + e + q <= gamma (1) // ==> f_c * 2^alpha <= c * 2^e * 2^q // // and since the c's are normalized, 2^(q-1) <= f_c, // // ==> 2^(q - 1 + alpha) <= ...
pushq %rax cmpl $0xfffffa23, %edi # imm = 0xFFFFFA23 jle 0x16a24 cmpl $0x5dd, %edi # imm = 0x5DD jge 0x16a43 movl $0xffffffc3, %ecx # imm = 0xFFFFFFC3 subl %edi, %ecx imull $0x13441, %ecx, %eax # imm = 0x13441 leal 0x3ffff(%rax), %edx testl %eax, %eax cmovnsl %eax, %edx sarl $0x12, %edx xorl %...
/mattn[P]clask/example/json/./nlohmann/json.hpp
nlohmann::detail::dtoa_impl::diyfp::mul(nlohmann::detail::dtoa_impl::diyfp const&, nlohmann::detail::dtoa_impl::diyfp const&)
static diyfp mul(const diyfp& x, const diyfp& y) noexcept { static_assert(kPrecision == 64, "internal error"); // Computes: // f = round((x.f * y.f) / 2^q) // e = x.e + y.e + q // Emulate the 64-bit * 64-bit multiplication: // // p = u * v // = (...
movq (%rdi), %rax movl %eax, %ecx shrq $0x20, %rax movq (%rsi), %r8 movl %r8d, %edx shrq $0x20, %r8 movq %rdx, %r9 imulq %rcx, %r9 imulq %r8, %rcx imulq %rax, %rdx imulq %rax, %r8 shrq $0x20, %r9 movl %ecx, %r10d addq %r9, %r10 shrq $0x20, %rcx movl %edx, %eax addq %r10, %rax shrq $0x20, %rdx addq %r8, %rdx addq %rcx, ...
/mattn[P]clask/example/json/./nlohmann/json.hpp
flatbuffers::(anonymous namespace)::ValidateUTF8(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static bool ValidateUTF8(const std::string &str) { const char *s = &str[0]; const char *const sEnd = s + str.length(); while (s < sEnd) { if (FromUTF8(&s) < 0) { return false; } } return true; }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi xorl %eax, %eax movl %eax, %esi callq 0x8680 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rdi callq 0x88c0 movq %rax, %rcx movq -0x28(%rbp), %rax addq %rcx, %rax movq %rax, -0x20(%rbp) mo...
/aardappel[P]flatbuffers/src/idl_parser.cpp
flatbuffers::Parser::ParseNamespacing(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
CheckedError Parser::ParseNamespacing(std::string *id, std::string *last) { while (Is('.')) { NEXT(); *id += "."; *id += attribute_; if (last) *last = attribute_; EXPECT(kTokenIdentifier); } return NoError(); }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x58(%rbp) movq %rdi, %rax movq %rax, -0x50(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x48(%rbp), %rdi movl $0x2e, %esi callq 0xb2f0 testb $0x1, %al jne 0xb6...
/aardappel[P]flatbuffers/src/idl_parser.cpp
flatbuffers::Parser::ParseHash(flatbuffers::Value&, flatbuffers::FieldDef*)
CheckedError Parser::ParseHash(Value &e, FieldDef *field) { FLATBUFFERS_ASSERT(field); Value *hash_name = field->attributes.Lookup("hash"); switch (e.type.base_type) { case BASE_TYPE_SHORT: { auto hash = FindHashFunction16(hash_name->constant.c_str()); int16_t hashed_value = static_cast<int16_t>(h...
pushq %rbp movq %rsp, %rbp subq $0x200, %rsp # imm = 0x200 movq %rdi, -0x1a0(%rbp) movq %rdi, %rax movq %rax, -0x198(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x190(%rbp) cmpq $0x0, -0x20(%rbp) je 0x1ecf0 jmp 0x1ed0f le...
/aardappel[P]flatbuffers/src/idl_parser.cpp
flatbuffers::CheckedError flatbuffers::Parser::ParseTableDelimiters<flatbuffers::Parser::ParseTable(flatbuffers::StructDef const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, unsigned int*)::$_0>(unsigned long&, flatbuffers::StructDef const*, flatbuffers::Parser::ParseTable(flatbuff...
CheckedError Parser::ParseTableDelimiters(size_t &fieldn, const StructDef *struct_def, F body) { // We allow tables both as JSON object{ .. } with field names // or vector[..] with all fields in order char terminator = '}'; bool is_nested_vector = struct_def && Is('[');...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0xd8(%rbp) movq %rdi, %rax movq %rax, -0xd0(%rbp) movq %rdi, -0x8(%rbp) movq %r8, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0xc8(%rbp) movb $0x7d, -0x29(%rbp) xorl ...
/aardappel[P]flatbuffers/src/idl_parser.cpp
flatbuffers::CheckedError flatbuffers::(anonymous namespace)::atot<short>(char const*, flatbuffers::Parser&, short*)
static CheckedError atot(const char *s, Parser &parser, T *val) { auto done = atot_scalar(s, val, bool_constant<is_floating_point<T>::value>()); if (done) return NoError(); if (0 == *val) return parser.Error("invalid number: \"" + std::string(s) + "\""); else return parser.Error("invalid number: \"" + s...
pushq %rbp movq %rsp, %rbp subq $0x1b0, %rsp # imm = 0x1B0 movq %rdi, -0x178(%rbp) movq %rdi, %rax movq %rax, -0x170(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x3d420 andb $0x1, %al movb %al, -0x21(%rbp...
/aardappel[P]flatbuffers/src/idl_parser.cpp
flatbuffers::CheckedError flatbuffers::Parser::ParseVectorDelimiters<flatbuffers::Parser::ParseVector(flatbuffers::Type const&, unsigned int*, flatbuffers::FieldDef*, unsigned long)::$_0>(unsigned long&, flatbuffers::Parser::ParseVector(flatbuffers::Type const&, unsigned int*, flatbuffers::FieldDef*, unsigned long)::$_...
CheckedError Parser::ParseVectorDelimiters(size_t &count, F body) { EXPECT('['); for (;;) { if ((!opts.strict_json || !count) && Is(']')) break; ECHECK(body(count)); count++; if (Is(']')) break; ECHECK(ParseComma()); } NEXT(); return NoError(); }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x30(%rbp) movq %rdi, %rax movq %rax, -0x48(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x40(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rsi movq %rsi, -0x38(%rbp) movb $0x0, -0x19(%rbp) movl $0x5b, %edx callq 0xb360 mo...
/aardappel[P]flatbuffers/src/idl_parser.cpp
void flatbuffers::(anonymous namespace)::SimpleQsort<unsigned char, flatbuffers::Parser::ParseVector(flatbuffers::Type const&, unsigned int*, flatbuffers::FieldDef*, unsigned long)::$_1, flatbuffers::Parser::ParseVector(flatbuffers::Type const&, unsigned int*, flatbuffers::FieldDef*, unsigned long)::$_2>(unsigned char*...
static void SimpleQsort(T *begin, T *end, size_t width, F comparator, S swapper) { if (end - begin <= static_cast<ptrdiff_t>(width)) return; auto l = begin + width; auto r = end; while (l < r) { if (comparator(begin, l)) { r -= width; swapper(l, r); } else { l +...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movw %cx, %ax movw %ax, -0x10(%rbp) movq %r8, -0x8(%rbp) movq %r9, -0x18(%rbp) movq %rdi, -0x20(%rbp) movq %rsi, -0x28(%rbp) movq %rdx, -0x30(%rbp) movq -0x28(%rbp), %rax movq -0x20(%rbp), %rcx subq %rcx, %rax cmpq -0x30(%rbp), %rax jg 0x21a49 jmp 0x21b48 movq -0x20(%rbp), %r...
/aardappel[P]flatbuffers/src/idl_parser.cpp
void flatbuffers::(anonymous namespace)::SimpleQsort<flatbuffers::Offset<flatbuffers::Table>, flatbuffers::Parser::ParseVector(flatbuffers::Type const&, unsigned int*, flatbuffers::FieldDef*, unsigned long)::$_4, void (*)(flatbuffers::Offset<flatbuffers::Table>*, flatbuffers::Offset<flatbuffers::Table>*)>(flatbuffers::...
static void SimpleQsort(T *begin, T *end, size_t width, F comparator, S swapper) { if (end - begin <= static_cast<ptrdiff_t>(width)) return; auto l = begin + width; auto r = end; while (l < r) { if (comparator(begin, l)) { r -= width; swapper(l, r); } else { l +...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rcx, -0x8(%rbp) movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx subq %rcx, %rax sarq $0x2, %rax cmpq -0x20(%rbp), %rax jg 0x21d46 jmp 0x21e24 movq -0x10(%rbp), %rax movq -0x20(%rbp)...
/aardappel[P]flatbuffers/src/idl_parser.cpp
flatbuffers::Parser::ParseEnum(bool, flatbuffers::EnumDef**, char const*)
CheckedError Parser::ParseEnum(const bool is_union, EnumDef **dest, const char *filename) { std::vector<std::string> enum_comment = doc_comment_; NEXT(); std::string enum_name = attribute_; EXPECT(kTokenIdentifier); EnumDef *enum_def; ECHECK(StartEnum(enum_name, is_union, &enu...
pushq %rbp movq %rsp, %rbp subq $0x740, %rsp # imm = 0x740 movq %rdi, -0x588(%rbp) movb %dl, %al movq %rdi, %rdx movq %rdx, -0x590(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) andb $0x1, %al movb %al, -0x11(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq -0x10(%rbp), %rsi movq %rsi, -0x580(%rbp...
/aardappel[P]flatbuffers/src/idl_parser.cpp
flatbuffers::Parser::StartStruct(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, flatbuffers::StructDef**)
CheckedError Parser::StartStruct(const std::string &name, StructDef **dest) { auto &struct_def = *LookupCreateStruct(name, true, true); if (!struct_def.predecl) return Error("datatype already exists: " + current_namespace_->GetFullyQualifiedName(name)); struct_def.predecl = false; struct_de...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0xb0(%rbp) movq %rdi, %rax movq %rax, -0xa8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0xa0(%rbp) movq -0x18(%rbp), %rsi movl $0x1, %ecx movl %ecx, %edx callq 0xbef0 movq %rax...
/aardappel[P]flatbuffers/src/idl_parser.cpp
flexbuffers::Builder::EndMap(unsigned long)
size_t EndMap(size_t start) { // We should have interleaved keys and values on the stack. auto len = MapElementCount(start); // Make sure keys are all strings: for (auto key = start; key < stack_.size(); key += 2) { FLATBUFFERS_ASSERT(stack_[key].type_ == FBT_KEY); } // Now sort values, so...
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x58(%rbp) movq -0x10(%rbp), %rsi callq 0x5ad90 movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x58(%rbp), %rdi movq -0x20(%rbp), %rax movq %rax, -0x60(%rbp) addq $0x18,...
/aardappel[P]flatbuffers/include/flatbuffers/flexbuffers.h
flexbuffers::Builder::Finish()
void Finish() { // If you hit this assert, you likely have objects that were never included // in a parent. You need to have exactly one root to finish a buffer. // Check your Start/End calls are matched, and all objects are inside // some other object. FLATBUFFERS_ASSERT(stack_.size() == 1); /...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x18(%rbp) addq $0x18, %rdi callq 0x5a9e0 cmpq $0x1, %rax jne 0x49275 jmp 0x49294 leaq 0x13851d(%rip), %rdi # 0x181799 leaq 0x1380fe(%rip), %rsi # 0x181381 movl $0x580, %edx # imm = 0x580 leaq 0x13851d(%...
/aardappel[P]flatbuffers/include/flatbuffers/flexbuffers.h
flexbuffers::Builder::CreateVector(unsigned long, unsigned long, unsigned long, bool, bool, flexbuffers::Builder::Value const*)
Value CreateVector(size_t start, size_t vec_len, size_t step, bool typed, bool fixed, const Value *keys = nullptr) { FLATBUFFERS_ASSERT( !fixed || typed); // typed=false, fixed=true combination is not supported. // Figure out smallest bit width we can store this vector with...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movl %r8d, -0x9c(%rbp) movq %rcx, %rax movl -0x9c(%rbp), %ecx movq %rax, -0x98(%rbp) movq %rdx, %rax movq -0x98(%rbp), %rdx movq %rax, -0x90(%rbp) movq %rsi, %rax movq -0x90(%rbp), %rsi movq %rax, -0x88(%rbp) movq %rdi, %r8 movq -0x88(%rbp), %rdi mov...
/aardappel[P]flatbuffers/include/flatbuffers/flexbuffers.h
flexbuffers::Builder::String(char const*, unsigned long)
size_t String(const char *str, size_t len) { auto reset_to = buf_.size(); auto sloc = CreateBlob(str, len, 1, FBT_STRING); if (flags_ & BUILDER_FLAG_SHARE_STRINGS) { StringOffset so(sloc, len); auto it = string_pool.find(so); if (it != string_pool.end()) { // Already in the buffer....
pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x60(%rbp) callq 0x5c710 movq -0x60(%rbp), %rdi movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movl $0x1, %ecx movl $0x5, %r8d callq 0x5f410 movq %rax, ...
/aardappel[P]flatbuffers/include/flatbuffers/flexbuffers.h
flatbuffers::(anonymous namespace)::VerifyUnion(flatbuffers::VerifierTemplate<false>&, reflection::Schema const&, unsigned char, unsigned char const*, reflection::Field const&)
static bool VerifyUnion(flatbuffers::Verifier &v, const reflection::Schema &schema, uint8_t utype, const uint8_t *elem, const reflection::Field &union_field) { if (!utype) return true; // Not present. auto fb_enum = schema.enums()->Get(union_f...
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movb %dl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movb %al, -0x19(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) cmpb $0x0, -0x19(%rbp) jne 0xb05df movb $0x1, -0x1(%rbp) jmp 0xb071c movq -0x18(%rbp), %rdi callq 0x4c3c0 movq %rax, -0x58(%rbp) movq -0x30(%rbp), %r...
/aardappel[P]flatbuffers/src/reflection.cpp
flatbuffers::DirExists(char const*)
bool DirExists(const char *name) { // clang-format off #ifdef _WIN32 #define flatbuffers_stat _stat #define FLATBUFFERS_S_IFDIR _S_IFDIR #else #define flatbuffers_stat stat #define FLATBUFFERS_S_IFDIR S_IFDIR #endif // clang-format on struct flatbuffers_stat file_info; if (flatbuffers_sta...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi leaq -0xa0(%rbp), %rsi callq 0x8520 cmpl $0x0, %eax je 0xb57ba movb $0x0, -0x1(%rbp) jmp 0xb57d0 movl -0x88(%rbp), %eax andl $0x4000, %eax # imm = 0x4000 cmpl $0x0, %eax setne %al andb $0x1, %al movb %al, -0x1(%rbp) movb...
/aardappel[P]flatbuffers/src/util.cpp
flatbuffers::(anonymous namespace)::LoadFileRaw(char const*, bool, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
static bool LoadFileRaw(const char *name, bool binary, std::string *buf) { if (DirExists(name)) return false; std::ifstream ifs(name, binary ? std::ifstream::binary : std::ifstream::in); if (!ifs.is_open()) return false; if (binary) { // The fastest way to read a file into a string. ifs.seekg(0, std::io...
pushq %rbp movq %rsp, %rbp subq $0x430, %rsp # imm = 0x430 movb %sil, %al movq %rdi, -0x10(%rbp) andb $0x1, %al movb %al, -0x11(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rdi callq 0xb5790 testb $0x1, %al jne 0xb585a jmp 0xb5863 movb $0x0, -0x1(%rbp) jmp 0xb5a9e movq -0x10(%rbp), %rsi movb -0x11(%rbp), ...
/aardappel[P]flatbuffers/src/util.cpp
flatbuffers::SaveFile(char const*, char const*, unsigned long, bool)
bool SaveFile(const char *name, const char *buf, size_t len, bool binary) { std::ofstream ofs(name, binary ? std::ofstream::binary : std::ofstream::out); if (!ofs.is_open()) return false; ofs.write(buf, len); return !ofs.bad(); }
pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movb %cl, %al movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) andb $0x1, %al movb %al, -0x21(%rbp) movq -0x10(%rbp), %rsi movb -0x21(%rbp), %al testb $0x1, %al movl $0x4, %eax movl $0x10, %edx cmovnel %eax, %edx leaq -0x228(%rbp)...
/aardappel[P]flatbuffers/src/util.cpp
flatbuffers::GetExtension(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string GetExtension(const std::string &filepath) { size_t i = filepath.find_last_of('.'); return i != std::string::npos ? filepath.substr(i + 1) : ""; }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x40(%rbp) movq %rdi, %rax movq %rax, -0x38(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x10(%rbp), %rdi movl $0x2e, %esi movq $-0x1, %rdx callq 0x8b10 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movb $0x0, -0x1a(%rbp) cmpq $-0x1, %rax je 0xb5d80 mo...
/aardappel[P]flatbuffers/src/util.cpp
flatbuffers::(anonymous namespace)::HasFieldWithId(std::vector<flatbuffers::FieldDef*, std::allocator<flatbuffers::FieldDef*>> const&)
static bool HasFieldWithId(const std::vector<FieldDef *> &fields) { static const std::string ID = "id"; for (const auto *field : fields) { const auto *id_attribute = field->attributes.Lookup(ID); if (id_attribute != nullptr && !id_attribute->constant.empty()) { return true; } } return false; ...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) cmpb $0x0, 0x173925(%rip) # 0x22d808 jne 0xb9f4b leaq 0x17391c(%rip), %rdi # 0x22d808 callq 0x8a90 cmpl $0x0, %eax je 0xb9f4b leaq -0x11(%rbp), %rdi movq %rdi, -0x58(%rbp) callq 0x8a50 movq -0x58(%rbp), %rdx leaq 0x1738da(%rip), %rdi # 0x22d7e8...
/aardappel[P]flatbuffers/src/idl_gen_fbs.cpp
void TestEq<bool, bool>(bool, bool, char const*, char const*, int, char const*)
void TestEq(T expval, U val, const char *exp, const char *file, int line, const char *func) { if (static_cast<U>(expval) != val) { TestFail(flatbuffers::NumToString(scalar_as_underlying(expval)).c_str(), flatbuffers::NumToString(scalar_as_underlying(val)).c_str(), exp, file, ...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movb %sil, %al movb %dil, %sil andb $0x1, %sil movb %sil, -0x1(%rbp) andb $0x1, %al movb %al, -0x2(%rbp) movq %rdx, -0x10(%rbp) movq %rcx, -0x18(%rbp) movl %r8d, -0x1c(%rbp) movq %r9, -0x28(%rbp) movb -0x1(%rbp), %al andb $0x1, %al movzbl %al, %eax movb -0x2(%rbp), %cl andb $...
/aardappel[P]flatbuffers/tests/test_assert.h
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> flatbuffers::NumToString<bool>(bool)
std::string NumToString(T t) { // clang-format off #ifndef FLATBUFFERS_PREFER_PRINTF std::stringstream ss; ss << t; return ss.str(); #else // FLATBUFFERS_PREFER_PRINTF auto v = static_cast<long long>(t); return NumToStringImplWrapper(v, "%.*lld"); #endif // FLATBUFFERS_PREFER_PRINTF // cl...
pushq %rbp movq %rsp, %rbp subq $0x1c0, %rsp # imm = 0x1C0 movq %rdi, -0x1b8(%rbp) movb %sil, %al movq %rdi, %rcx movq %rcx, -0x1b0(%rbp) movq %rdi, -0x8(%rbp) andb $0x1, %al movb %al, -0x9(%rbp) leaq -0x198(%rbp), %rdi callq 0x83e0 leaq -0x188(%rbp), %rdi movzbl -0x9(%rbp), %esi andl $0x1, %esi callq 0x8a60...
/aardappel[P]flatbuffers/include/flatbuffers/util.h
flexbuffers::Reference::MutateInt(long)
bool MutateInt(int64_t i) { if (type_ == FBT_INT) { return Mutate(data_, i, parent_width_, WidthI(i)); } else if (type_ == FBT_INDIRECT_INT) { return Mutate(Indirect(), i, byte_width_, WidthI(i)); } else if (type_ == FBT_UINT) { auto u = static_cast<uint64_t>(i); return Mutate(data_,...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) cmpl $0x1, 0xc(%rax) jne 0xc9c67 movq -0x30(%rbp), %rax movq (%rax), %rcx movq %rcx, -0x48(%rbp) movq -0x18(%rbp), %rcx movq %rcx, -0x40(%rbp) movzbl 0x8(%rax), %eax movq %rax, -0x38(%...
/aardappel[P]flatbuffers/include/flatbuffers/flexbuffers.h
flatbuffers::DetachedBuffer::reset()
inline void reset() { allocator_ = nullptr; own_allocator_ = false; buf_ = nullptr; reserved_ = 0; cur_ = nullptr; size_ = 0; }
pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq $0x0, (%rax) movb $0x0, 0x8(%rax) movq $0x0, 0x10(%rax) movq $0x0, 0x18(%rax) movq $0x0, 0x20(%rax) movq $0x0, 0x28(%rax) popq %rbp retq nopl (%rax)
/aardappel[P]flatbuffers/include/flatbuffers/detached_buffer.h
flatbuffers::tests::Offset64CreateDirect()
void Offset64CreateDirect() { FlatBufferBuilder64 fbb; // Create a vector of some data std::vector<uint8_t> data{ 0, 1, 2 }; // Call the "Direct" creation method to ensure that things are added to the // buffer in the correct order, Offset64 first followed by any Offsets. const Offset<RootTable> root_tabl...
pushq %rbp movq %rsp, %rbp subq $0x1e0, %rsp # imm = 0x1E0 callq 0x44670 movq %rax, %r8 xorl %ecx, %ecx movl %ecx, %edx leaq -0x80(%rbp), %rdi movl $0x400, %esi # imm = 0x400 callq 0x173620 movb $0x0, -0xab(%rbp) movb $0x1, -0xaa(%rbp) movb $0x2, -0xa9(%rbp) leaq -0xab(%rbp), %rax movq %rax, -0xa8...
/aardappel[P]flatbuffers/tests/64bit/offset64_test.cpp
flatbuffers::Offset64<flatbuffers::Vector<LeafStruct const*>> flatbuffers::FlatBufferBuilderImpl<true>::CreateVectorOfStructs<LeafStruct, flatbuffers::Offset64, flatbuffers::Vector>(LeafStruct const*, unsigned long)
OffsetT<VectorT<const T *>> CreateVectorOfStructs(const T *v, size_t len) { // The type of the length field in the vector. typedef typename VectorT<T>::size_type LenT; typedef typename OffsetT<VectorT<const T *>>::offset_type offset_type; StartVector<OffsetT, LenT>(len, sizeof(T), AlignOf<T>()); if...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x28(%rbp) callq 0x176b60 movq -0x30(%rbp), %rdi movq -0x28(%rbp), %rsi movq %rax, %rcx movl $0x10, %edx callq 0x176b20 cmpq $...
/aardappel[P]flatbuffers/include/flatbuffers/flatbuffer_builder.h
unsigned long flatbuffers::AlignOf<LeafStruct>()
FLATBUFFERS_CONSTEXPR size_t AlignOf() { // clang-format off #ifdef _MSC_VER return __alignof(T); #else #ifndef alignof return __alignof__(T); #else return alignof(T); #endif #endif // clang-format on }
pushq %rbp movq %rsp, %rbp movl $0x8, %eax popq %rbp retq nopl (%rax,%rax)
/aardappel[P]flatbuffers/include/flatbuffers/buffer.h
flatbuffers::FlatBufferBuilderImpl<true>::Finish(unsigned int, char const*, bool)
void Finish(uoffset_t root, const char *file_identifier, bool size_prefix) { // A buffer can only be finished once. To reuse a builder use `clear()`. FLATBUFFERS_ASSERT(!finished); NotNested(); buf_.clear_scratch(); const size_t prefix_size = size_prefix ? sizeof(SizeT) : 0; // Make sure we tr...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movb %cl, %al movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) andb $0x1, %al movb %al, -0x19(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) movb 0x61(%rax), %al xorb $-0x1, %al testb $0x1, %al jne 0x17852d jmp 0x17852f jmp 0x17854e leaq 0xa19e(%rip), %r...
/aardappel[P]flatbuffers/include/flatbuffers/flatbuffer_builder.h
flatbuffers::JavaCSharpMakeRule(bool, flatbuffers::Parser const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string JavaCSharpMakeRule(const bool java, const Parser &parser, const std::string &path, const std::string &file_name) { const std::string file_extension = java ? ".java" : ".cs"; std::string make_rule; for (auto it = parser.enums_.vec.begin(); ...
pushq %rbp movq %rsp, %rbp subq $0x1d0, %rsp # imm = 0x1D0 movq %rdi, -0x1d0(%rbp) movb %sil, %al movq %rdi, %rsi movq %rsi, -0x1c8(%rbp) movq %rdi, -0x8(%rbp) andb $0x1, %al movb %al, -0x9(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movb -0x9(%rbp), %dl leaq 0x26e85(%rip), %rcx...
/aardappel[P]flatbuffers/src/code_generators.cpp
flatbuffers::BaseGenerator::FullNamespace[abi:cxx11](char const*, flatbuffers::Namespace const&)
std::string BaseGenerator::FullNamespace(const char *separator, const Namespace &ns) { std::string namespace_name; auto &namespaces = ns.components; for (auto it = namespaces.begin(); it != namespaces.end(); ++it) { if (namespace_name.length()) namespace_name += separa...
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x58(%rbp) movq %rdi, %rax movq %rax, -0x50(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movb $0x0, -0x19(%rbp) callq 0x8850 movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rdi callq 0x7bcc0 movq %rax, -0x30(%rbp) movq...
/aardappel[P]flatbuffers/src/code_generators.cpp
flatbuffers::GenComment(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&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*, flatbuffers::Commen...
void GenComment(const std::vector<std::string> &dc, std::string *code_ptr, const CommentConfig *config, const char *prefix) { if (dc.begin() == dc.end()) { // Don't output empty comment blocks with 0 lines of comment content. return; } std::string &code = *code_ptr; if (config != nullpt...
pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rdi callq 0x7bcc0 movq %rax, -0x28(%rbp) movq -0x8(%rbp), %rdi callq 0x7bcf0 movq %rax, -0x30(%rbp) leaq -0x28(%rbp), %rdi leaq -0x30(%rbp), ...
/aardappel[P]flatbuffers/src/code_generators.cpp
main
int main(int argc, char* argv[]) { t_loop loop; loop.v_wait = [wait = std::move(loop.v_wait)] { std::cout << "before wait"sv << std::endl; wait(); std::cout << "after wait"sv << std::endl; }; std::deque<std::shared_ptr<t_timer>> timers; std::map<std::string, std::function<void()>> commands = { {"quit"s, [...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x358, %rsp # imm = 0x358 leaq 0x150(%rsp), %rbx movq %rbx, %rdi callq 0x2220 xorps %xmm0, %xmm0 movaps %xmm0, 0x50(%rsp) movq $0x0, 0x60(%rsp) movq 0x70(%rbx), %rax movq 0x78(%rbx), %r14 movq %r14, 0x68(%rsp) testq %rax, %rax je 0x2449 ...
/shin1m[P]suisha/examples/test.cc
suisha::t_loop::f_post(std::function<void ()>&&)
void f_post(std::function<void()>&& a_function) { auto p = new std::function<void()>(std::move(a_function)); write(v_post, &p, sizeof(p)); }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movl $0x20, %edi callq 0x21c0 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) movq 0x18(%r14), %rcx movq %rcx, 0x18(%rax) movq 0x10(%r14), %rcx testq %rcx, %rcx je 0x3bfe movups (%r14), %xmm1 addq $0x10, %r14 movups %xmm1, (%rax) movq %rcx, ...
/shin1m[P]suisha/include/suisha/loop.h
suisha::t_loop::f_timer(std::function<void ()>&&, std::chrono::duration<long, std::ratio<1l, 1000l>> const&, bool)
std::shared_ptr<t_timer> f_timer(std::function<void()>&& a_function, const std::chrono::milliseconds& a_interval, bool a_single = false) { f_check(); auto timer = std::make_shared<t_timer>(this, std::move(a_function), a_interval, a_single); f_queue(timer); return timer; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rcx, %r15 movq %rdx, %r12 movq %rsi, %r13 movq %rdi, %rbx leaq 0xe(%rsp), %rbp movb %r8b, (%rbp) movq %rsi, %rdi callq 0x3b48 leaq 0x10(%rsp), %rcx movq %r13, (%rcx) movq $0x0, (%rbx) leaq 0x8(%rbx), %r14 movq %rbp, (%rsp) leaq 0xf...
/shin1m[P]suisha/include/suisha/loop.h
leveldb::_Test_Erase::_RunIt()
TEST(CacheTest, Erase) { Erase(200); ASSERT_EQ(0, deleted_keys_.size()); Insert(100, 101); Insert(200, 201); Erase(100); ASSERT_EQ(-1, Lookup(100)); ASSERT_EQ(201, Lookup(200)); ASSERT_EQ(1, deleted_keys_.size()); ASSERT_EQ(100, deleted_keys_[0]); ASSERT_EQ(101, deleted_values_[0]); Erase(100); ...
pushq %rbx subq $0x40, %rsp leaq 0x8(%rsp), %rbx movq %rbx, %rdi callq 0x66ec movq %rbx, %rdi callq 0x52c6 leaq 0x8(%rsp), %rdi callq 0x690c addq $0x40, %rsp popq %rbx retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x690c movq %rbx, %rdi callq 0x45e0 nop
/CDDSCLab[P]leveldb/util/cache_test.cc
leveldb::_Test_EntriesArePinned::_RunIt()
TEST(CacheTest, EntriesArePinned) { Insert(100, 101); Cache::Handle* h1 = cache_->Lookup(EncodeKey(100)); ASSERT_EQ(101, DecodeValue(cache_->Value(h1))); Insert(100, 102); Cache::Handle* h2 = cache_->Lookup(EncodeKey(100)); ASSERT_EQ(102, DecodeValue(cache_->Value(h2))); ASSERT_EQ(0, deleted_keys_.size()...
pushq %rbx subq $0x40, %rsp leaq 0x8(%rsp), %rbx movq %rbx, %rdi callq 0x66ec movq %rbx, %rdi callq 0x55ac leaq 0x8(%rsp), %rdi callq 0x690c addq $0x40, %rsp popq %rbx retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x690c movq %rbx, %rdi callq 0x45e0 nop
/CDDSCLab[P]leveldb/util/cache_test.cc
leveldb::_Test_UseExceedsCacheSize::_RunIt()
TEST(CacheTest, UseExceedsCacheSize) { // Overfill the cache, keeping handles on all inserted entries. std::vector<Cache::Handle*> h; for (int i = 0; i < kCacheSize + 100; i++) { h.push_back(InsertAndReturnHandle(1000 + i, 2000 + i)); } // Check that all the entries can be found in the cache. for (int ...
pushq %rbx subq $0x40, %rsp leaq 0x8(%rsp), %rbx movq %rbx, %rdi callq 0x66ec movq %rbx, %rdi callq 0x5c64 leaq 0x8(%rsp), %rdi callq 0x690c addq $0x40, %rsp popq %rbx retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x690c movq %rbx, %rdi callq 0x45e0 nop
/CDDSCLab[P]leveldb/util/cache_test.cc
leveldb::(anonymous namespace)::HandleTable::Resize()
void Resize() { uint32_t new_length = 4; while (new_length < elems_) { new_length *= 2; } LRUHandle** new_list = new LRUHandle*[new_length]; memset(new_list, 0, sizeof(new_list[0]) * new_length); uint32_t count = 0; for (uint32_t i = 0; i < length_; i++) { LRUHandle* h = list_[i]...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movl 0x4(%rdi), %ebp pushq $0x4 popq %rax movl %eax, %r12d leal (%r12,%r12), %eax cmpl %ebp, %r12d jb 0x7238 movl %r12d, %r15d shlq $0x3, %r15 movq %r15, %rdi callq 0x4030 movq %rax, %r14 xorl %r13d, %r13d movq %rax, %rdi xorl ...
/CDDSCLab[P]leveldb/util/cache.cc
leveldb::EncodeVarint64(char*, unsigned long)
char* EncodeVarint64(char* dst, uint64_t v) { static const int B = 128; unsigned char* ptr = reinterpret_cast<unsigned char*>(dst); while (v >= B) { *(ptr++) = v | B; v >>= 7; } *(ptr++) = static_cast<unsigned char>(v); return reinterpret_cast<char*>(ptr); }
movq %rdi, %rax incq %rax cmpq $0x80, %rsi jb 0x7631 movl %esi, %ecx orb $-0x80, %cl movb %cl, -0x1(%rax) shrq $0x7, %rsi jmp 0x7617 movb %sil, -0x1(%rax) retq
/CDDSCLab[P]leveldb/util/coding.cc
leveldb::GetLengthPrefixedSlice(leveldb::Slice*, leveldb::Slice*)
bool GetLengthPrefixedSlice(Slice* input, Slice* result) { uint32_t len; if (GetVarint32(input, &len) && input->size() >= len) { *result = Slice(input->data(), len); input->remove_prefix(len); return true; } else { return false; } }
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx leaq 0x4(%rsp), %rsi callq 0x76df testb %al, %al je 0x77fe movl 0x4(%rsp), %esi cmpq %rsi, 0x8(%rbx) jae 0x7802 xorl %eax, %eax jmp 0x7816 movq (%rbx), %rax movq %rax, (%r14) movq %rsi, 0x8(%r14) movq %rbx, %rdi callq 0x783c movb $0x1, %al addq $0x8, %rsp...
/CDDSCLab[P]leveldb/util/coding.cc
initializeVertexbuffer()
bool initializeVertexbuffer() { glGenVertexArrays(1, &VertexArrayID); glBindVertexArray(VertexArrayID); vertexbuffer_size = 3; static const GLfloat g_vertex_buffer_data[] = { -1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 0.0f, 0.0f, 1.0f, 0.0f, }; glGenBuffers(1, &vertexbuffer); glBindBuffer(GL_ARRAY_BU...
pushq %rax leaq 0x43e22(%rip), %rax # 0x48d58 leaq 0x416ef(%rip), %rsi # 0x4662c movl $0x1, %edi callq *(%rax) leaq 0x43dfd(%rip), %rax # 0x48d48 movl 0x416db(%rip), %edi # 0x4662c callq *(%rax) movl $0x3, 0x416d3(%rip) # 0x46630 leaq 0x4237c(%rip), %rax # 0x472e0 leaq 0x416bd(%rip), %rsi # ...
/Alfred-Franz[P]OpenGL-Template/playground/playground.cpp
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 0x400ba(%rip), %rax # 0x46648 cmpb $0x0, (%rax) je 0x65ca movq %rdi, %rbx cmpl $0x33003, %esi # imm = 0x33003 je 0x660a cmpl $0x33002, %esi # imm = 0x33002 je 0x65d3 cmpl $0x33001, %esi # imm = 0x33001 jne 0x663e leal -0x34004(%rdx), ...
/Alfred-Franz[P]OpenGL-Template/external/glfw-3.1.2/src/input.c
glfwCreateCursor
GLFWAPI GLFWcursor* glfwCreateCursor(const GLFWimage* image, int xhot, int yhot) { _GLFWcursor* cursor; _GLFW_REQUIRE_INIT_OR_RETURN(NULL); cursor = calloc(1, sizeof(_GLFWcursor)); cursor->next = _glfw.cursorListHead; _glfw.cursorListHead = cursor; if (!_glfwPlatformCreateCursor(cursor, image...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax leaq 0x3fdd6(%rip), %rax # 0x46648 cmpb $0x0, (%rax) je 0x68c9 movl %edx, %ebp movl %esi, %r14d movq %rdi, %r15 movl $0x1, %edi movl $0x10, %esi callq 0x4410 movq %rax, %rbx leaq 0x3fdc0(%rip), %rax # 0x46658 movq 0xa8(%rax), %rcx movq %rcx, (%rbx) movq %rb...
/Alfred-Franz[P]OpenGL-Template/external/glfw-3.1.2/src/input.c
glfwInputWindowFocus
void _glfwInputWindowFocus(_GLFWwindow* window, GLboolean focused) { if (focused) { _glfw.cursorWindow = window; if (window->callbacks.focus) window->callbacks.focus((GLFWwindow*) window, focused); } else { int i; _glfw.cursorWindow = NULL; if (...
pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x3f0d2(%rip), %rax # 0x46658 testl %esi, %esi je 0x75ad movq %rbx, 0xb8(%rax) movq 0x228(%rbx), %rax testq %rax, %rax je 0x7617 movzbl %sil, %esi movq %rbx, %rdi addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rax movq $0x0, 0xb8(%rax) movq 0x228(%rbx), %rax testq %...
/Alfred-Franz[P]OpenGL-Template/external/glfw-3.1.2/src/window.c