name
string
code
string
asm
string
file
string
nuraft::cluster_config::serialize() const
ptr<buffer> cluster_config::serialize() const { size_t sz = 2 * sz_ulong + sz_int + sz_byte; std::vector<ptr<buffer>> srv_buffs; for (auto it = servers_.cbegin(); it != servers_.cend(); ++it) { ptr<buffer> buf = (*it)->serialize(); srv_buffs.push_back(buf); sz += buf->size(); } ...
subq $0xb8, %rsp movq %rdi, 0x38(%rsp) movq %rdi, %rax movq %rax, 0x40(%rsp) movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq 0xa8(%rsp), %rax movq %rax, 0x48(%rsp) movq $0x15, 0xa0(%rsp) leaq 0x88(%rsp), %rdi callq 0x5c880 movq 0x48(%rsp), %rdi addq $0x38, %rdi callq 0x68c80 movq %rax, 0x80(%rsp) movq 0x48(%rsp), %rdi...
/greensky00[P]NuRaft/src/cluster_config.cxx
nuraft::cluster_config::deserialize(nuraft::buffer_serializer&)
ptr<cluster_config> cluster_config::deserialize(buffer_serializer& bs) { ulong log_idx = bs.get_u64(); ulong prev_log_idx = bs.get_u64(); byte ec_byte = bs.get_u8(); bool ec = ec_byte ? true : false; size_t ctx_len; const byte* ctx_data = (const byte*)bs.get_bytes(ctx_len); std::string use...
subq $0xc8, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x20(%rsp) movq %rdi, 0xc0(%rsp) movq %rsi, 0xb8(%rsp) movq 0xb8(%rsp), %rdi callq 0x67a20 movq %rax, 0xb0(%rsp) movq 0xb8(%rsp), %rdi callq 0x67a20 movq %rax, 0xa8(%rsp) movq 0xb8(%rsp), %rdi callq 0x67650 movb %al, 0xa7(%rsp) movb 0xa7(%rsp), %al testb...
/greensky00[P]NuRaft/src/cluster_config.cxx
nuraft::raft_server::append_entries_in_bg()
void raft_server::append_entries_in_bg() { std::string thread_name = "nuraft_append"; #ifdef __linux__ pthread_setname_np(pthread_self(), thread_name.c_str()); #elif __APPLE__ pthread_setname_np(thread_name.c_str()); #endif p_in("bg append_entries thread initiated"); do { bg_append_ea_->wai...
subq $0xb8, %rsp movq %rdi, 0xb0(%rsp) movq 0xb0(%rsp), %rax movq %rax, 0x28(%rsp) leaq 0x8f(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0xaa40 movq 0x30(%rsp), %rdx leaq 0x9368a(%rip), %rsi # 0xfcad4 leaq 0x90(%rsp), %rdi callq 0xa7b0 jmp 0x69459 leaq 0x8f(%rsp), %rdi callq 0xa5e0 callq 0xa510 movq %rax, 0x20(%rsp) le...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
msg_if_given[abi:cxx11](char const*, ...)
static inline std::string msg_if_given ( const char* format, ... ) { #endif if (format[0] == 0x0) { return ""; } else { _fix_format(format); size_t len = 0; char msg[2048]; va_list args; va_start(args, format);...
subq $0x948, %rsp # imm = 0x948 movq %rdi, 0x20(%rsp) movq %rdi, %r10 movq %r10, 0x28(%rsp) testb %al, %al je 0x69762 movaps %xmm0, 0x60(%rsp) movaps %xmm1, 0x70(%rsp) movaps %xmm2, 0x80(%rsp) movaps %xmm3, 0x90(%rsp) movaps %xmm4, 0xa0(%rsp) movaps %xmm5, 0xb0(%rsp) movaps %xmm6, 0xc0(%rsp) movaps %xmm7, 0x...
/greensky00[P]NuRaft/src/tracer.hxx
nuraft::raft_server::request_append_entries()
void raft_server::request_append_entries() { // Special case: // 1) one-node cluster, OR // 2) quorum size == 1 (including leader). // // In those cases, we may not enter `handle_append_entries_resp`, // which calls `commit()` function. // We should call it here. if ( peers_.size() =...
subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq 0x50(%rsp), %rdi movq %rdi, 0x8(%rsp) addq $0x1e0, %rdi # imm = 0x1E0 callq 0x751d0 cmpq $0x0, %rax je 0x699d4 movq 0x8(%rsp), %rdi callq 0xd7b80 cmpl $0x0, %eax jne 0x699f7 movq 0x8(%rsp), %rdi callq 0x69ac0 movq 0x8(%rsp), %rdi movq %rax, 0x48(%rsp) movq 0x48(%rs...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
nuraft::raft_server::get_current_leader_index()
uint64_t raft_server::get_current_leader_index() { uint64_t leader_index = precommit_index_; ptr<raft_params> params = ctx_->get_params(); if (params->parallel_log_appending_) { // For parallel appending, take the smaller one. uint64_t durable_index = log_store_->last_durable_index(); ...
subq $0xe8, %rsp movq %rdi, 0xb0(%rsp) movq 0xb0(%rsp), %rdi movq %rdi, 0x50(%rsp) addq $0x90, %rdi callq 0x30c80 movq 0x50(%rsp), %rdi movq %rax, 0xa8(%rsp) addq $0x158, %rdi # imm = 0x158 callq 0x75410 movq %rax, %rsi leaq 0x98(%rsp), %rdi callq 0x75470 leaq 0x98(%rsp), %rdi callq 0x754d0 testb $0x1, 0x66(...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
nuraft::raft_server::request_append_entries(std::shared_ptr<nuraft::peer>)
bool raft_server::request_append_entries(ptr<peer> p) { static timer_helper chk_timer(1000*1000); // Checking the validity of role first. if (role_ != srv_role::leader) { // WARNING: We should allow `write_paused_` state for // graceful resignation. return false; } ...
subq $0x5e8, %rsp # imm = 0x5E8 movq %rsi, 0x258(%rsp) movq %rdi, 0x5d8(%rsp) movq %rsi, 0x5d0(%rsp) movq 0x5d8(%rsp), %rax movq %rax, 0x260(%rsp) cmpb $0x0, 0xe8aa2(%rip) # 0x1528e8 jne 0x69e7a leaq 0xe8a99(%rip), %rdi # 0x1528e8 callq 0xaa70 cmpl $0x0, %eax je 0x69e7a leaq 0xe8a48(%rip), %rdi #...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
nuraft::raft_server::create_append_entries_req(std::shared_ptr<nuraft::peer>&)
ptr<req_msg> raft_server::create_append_entries_req(ptr<peer>& pp) { peer& p = *pp; ulong cur_nxt_idx(0L); ulong commit_idx(0L); ulong last_log_idx(0L); ulong term(0L); ulong starting_idx(1L); { recur_lock(lock_); starting_idx = log_store_->start_index(); cur_nxt_idx...
subq $0x568, %rsp # imm = 0x568 movq %rdi, 0x1f8(%rsp) movq %rdi, %rax movq %rax, 0x200(%rsp) movq %rdi, 0x560(%rsp) movq %rsi, 0x558(%rsp) movq %rdx, 0x550(%rsp) movq 0x558(%rsp), %rax movq %rax, 0x208(%rsp) movq 0x550(%rsp), %rdi callq 0x75810 movq 0x208(%rsp), %rsi movq %rax, 0x548(%rsp) movq $0x0, 0x540(...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
nuraft::raft_server::handle_append_entries_resp(nuraft::resp_msg&)
void raft_server::handle_append_entries_resp(resp_msg& resp) { peer_itor it = peers_.find(resp.get_src()); if (it == peers_.end()) { p_in("the response is from an unknown peer %d", resp.get_src()); return; } check_srv_to_leave_timeout(); if ( srv_to_leave_ && srv_to_leave_-...
subq $0x548, %rsp # imm = 0x548 movq %rdi, 0x510(%rsp) movq %rsi, 0x508(%rsp) movq 0x510(%rsp), %rax movq %rax, 0x240(%rsp) addq $0x1e0, %rax # imm = 0x1E0 movq %rax, 0x238(%rsp) movq 0x508(%rsp), %rdi callq 0x764a0 movq 0x238(%rsp), %rdi movl %eax, 0x4f4(%rsp) leaq 0x4f4(%rsp), %rsi callq 0x768b0...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
nuraft::raft_server::get_expected_committed_log_idx()
ulong raft_server::get_expected_committed_log_idx() { std::vector<ulong> matched_indexes; state_machine::adjust_commit_index_params aci_params; matched_indexes.reserve(16); aci_params.peer_index_map_.reserve(16); // Put the index of leader itself. uint64_t leader_index = get_current_leader_inde...
subq $0x2d8, %rsp # imm = 0x2D8 movq %rdi, 0x2d0(%rsp) movq 0x2d0(%rsp), %rax movq %rax, 0xc8(%rsp) leaq 0x2b8(%rsp), %rdi callq 0x76bb0 leaq 0x270(%rsp), %rdi callq 0x76bc0 jmp 0x73bfb leaq 0x2b8(%rsp), %rdi movl $0x10, %esi callq 0x76bf0 jmp 0x73c0f leaq 0x280(%rsp), %rdi movl $0x10, %esi callq 0x76d00 jmp...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
nuraft::raft_server::notify_log_append_completion(bool)
void raft_server::notify_log_append_completion(bool ok) { p_tr("got log append completion notification: %s", ok ? "OK" : "FAILED"); if (role_ == srv_role::leader) { recur_lock(lock_); if (!ok) { // If log appending fails, leader should resign immediately. p_er("log appen...
subq $0x128, %rsp # imm = 0x128 movb %sil, %al movq %rdi, 0x108(%rsp) andb $0x1, %al movb %al, 0x107(%rsp) movq 0x108(%rsp), %rdi movq %rdi, 0x50(%rsp) addq $0x318, %rdi # imm = 0x318 callq 0x75100 testb $0x1, %al jne 0x7470d jmp 0x747e0 movq 0x50(%rsp), %rdi addq $0x318, %rdi # imm = 0...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
nuraft::peer::need_to_reconnect()
bool need_to_reconnect() { if (abandoned_) return false; if (reconn_scheduled_ && reconn_timer_.timeout()) { return true; } { std::lock_guard<std::mutex> l(rpc_protector_); if (!rpc_.get()) { return true; } } return f...
subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq 0x18(%rsp), %rdi movq %rdi, (%rsp) addq $0x269, %rdi # imm = 0x269 callq 0x232c0 testb $0x1, %al jne 0x75704 jmp 0x7570e movb $0x0, 0x27(%rsp) jmp 0x75798 movq (%rsp), %rdi addq $0x1e5, %rdi # imm = 0x1E5 callq 0x232c0 testb $0x1, %al jne 0x75724 jmp 0x7...
/greensky00[P]NuRaft/include/libnuraft/peer.hxx
nuraft::peer::get_last_sent_idx() const
ulong get_last_sent_idx() const { return last_sent_idx_.load(); }
subq $0x38, %rsp movq %rdi, 0x18(%rsp) movq 0x18(%rsp), %rax addq $0x1d0, %rax # imm = 0x1D0 movq %rax, 0x30(%rsp) movl $0x5, 0x2c(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x8(%rsp) movl 0x2c(%rsp), %edi movl $0xffff, %esi # imm = 0xFFFF callq 0x28740 movl %eax, 0x28(%rsp) movl 0x2c(%rsp), %eax movl ...
/greensky00[P]NuRaft/include/libnuraft/peer.hxx
nuraft::resp_appendix::serialize() const
ptr<buffer> serialize() const { const static uint8_t CUR_VERSION = 0; size_t buf_len = sizeof(CUR_VERSION) + sizeof(extra_order_); // << Format >> // Format version 1 byte // Extra order 1 byte ptr<buffer> result = buffer::alloc(buf_len); buffer_...
subq $0x68, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x8(%rsp) movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x10(%rsp) movq $0x2, 0x50(%rsp) movb $0x0, 0x4f(%rsp) movq 0x50(%rsp), %rsi callq 0x63730 movq 0x18(%rsp), %rdi callq 0x30a70 movq %rax, %rsi leaq 0x30(%rsp), %rdi xo...
/greensky00[P]NuRaft/src/handle_append_entries.cxx
nuraft::raft_server::handle_add_srv_req(nuraft::req_msg&)
ptr<resp_msg> raft_server::handle_add_srv_req(req_msg& req) { std::vector< ptr<log_entry> >& entries = req.log_entries(); ptr<resp_msg> resp = cs_new<resp_msg> ( state_->get_term(), msg_type::add_server_response, id_, ...
subq $0x2a8, %rsp # imm = 0x2A8 movq %rdi, 0xf0(%rsp) movq %rdi, %rax movq %rax, 0xe0(%rsp) movq %rdi, 0x2a0(%rsp) movq %rsi, 0x298(%rsp) movq %rdx, 0x290(%rsp) movq 0x298(%rsp), %rax movq %rax, 0xe8(%rsp) movq 0x290(%rsp), %rdi callq 0x76220 movq 0xe8(%rsp), %rdi movq %rax, 0x288(%rsp) movb $0x0, 0x287(%rsp...
/greensky00[P]NuRaft/src/handle_join_leave.cxx
nuraft::raft_server::invite_srv_to_join_cluster()
void raft_server::invite_srv_to_join_cluster() { ptr<req_msg> req = cs_new<req_msg> ( state_->get_term(), msg_type::join_cluster_request, id_, srv_to_join_->get_id(), 0L, ...
subq $0x148, %rsp # imm = 0x148 movq %rdi, 0x128(%rsp) movq 0x128(%rsp), %rdi movq %rdi, 0x58(%rsp) addq $0x2d0, %rdi # imm = 0x2D0 callq 0x75f00 movq %rax, %rdi callq 0x75f10 movq 0x58(%rsp), %rdi movq %rax, 0x110(%rsp) movl $0xc, 0x10c(%rsp) movq %rdi, %rax addq $0x38, %rax movq %rax, 0x50(%rsp)...
/greensky00[P]NuRaft/src/handle_join_leave.cxx
nuraft::raft_server::handle_join_cluster_req(nuraft::req_msg&)
ptr<resp_msg> raft_server::handle_join_cluster_req(req_msg& req) { std::vector<ptr<log_entry>>& entries = req.log_entries(); ptr<resp_msg> resp = cs_new<resp_msg> ( state_->get_term(), msg_type::join_cluster_response, id_, ...
subq $0x258, %rsp # imm = 0x258 movq %rdi, 0xe0(%rsp) movq %rdi, %rax movq %rax, 0xd0(%rsp) movq %rdi, 0x1c8(%rsp) movq %rsi, 0x1c0(%rsp) movq %rdx, 0x1b8(%rsp) movq 0x1c0(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0x1b8(%rsp), %rdi callq 0x76220 movq 0xd8(%rsp), %rdi movq %rax, 0x1b0(%rsp) movb $0x0, 0x1af(%rsp...
/greensky00[P]NuRaft/src/handle_join_leave.cxx
nuraft::raft_server::handle_join_cluster_resp(nuraft::resp_msg&)
void raft_server::handle_join_cluster_resp(resp_msg& resp) { if (srv_to_join_ && srv_to_join_ == resp.get_peer()) { if (resp.get_accepted()) { p_in("new server (%d) confirms it will join, " "start syncing logs to it", srv_to_join_->get_id()); sync_log_to_new_srv(resp...
subq $0xe8, %rsp movq %rdi, 0xe0(%rsp) movq %rsi, 0xd8(%rsp) movq 0xe0(%rsp), %rdi movq %rdi, 0x40(%rsp) addq $0x3a0, %rdi # imm = 0x3A0 callq 0x757d0 movb %al, %cl movb $0x0, 0xc7(%rsp) xorl %eax, %eax testb $0x1, %cl movb %al, 0x4f(%rsp) jne 0xa0f87 jmp 0xa0fca movq 0x40(%rsp), %rax addq $0x3a0, %rax ...
/greensky00[P]NuRaft/src/handle_join_leave.cxx
nuraft::raft_server::handle_rm_srv_req(nuraft::req_msg&)
ptr<resp_msg> raft_server::handle_rm_srv_req(req_msg& req) { std::vector<ptr<log_entry>>& entries = req.log_entries(); ptr<resp_msg> resp = cs_new<resp_msg> ( state_->get_term(), msg_type::remove_server_response, id_, ...
subq $0x368, %rsp # imm = 0x368 movq %rdi, 0x138(%rsp) movq %rdi, %rax movq %rax, 0x128(%rsp) movq %rdi, 0x348(%rsp) movq %rsi, 0x340(%rsp) movq %rdx, 0x338(%rsp) movq 0x340(%rsp), %rax movq %rax, 0x130(%rsp) movq 0x338(%rsp), %rdi callq 0x76220 movq 0x130(%rsp), %rdi movq %rax, 0x330(%rsp) movb $0x0, 0x32f(...
/greensky00[P]NuRaft/src/handle_join_leave.cxx
nuraft::raft_server::handle_leave_cluster_req(nuraft::req_msg&)
ptr<resp_msg> raft_server::handle_leave_cluster_req(req_msg& req) { ptr<resp_msg> resp ( cs_new<resp_msg>( state_->get_term(), msg_type::leave_cluster_response, id_, req.get_src() ) ); if (!config_changing_) { p_...
subq $0xa8, %rsp movq %rdi, 0x30(%rsp) movq %rdi, %rax movq %rax, 0x28(%rsp) movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq %rdx, 0x90(%rsp) movq 0x98(%rsp), %rdi movq %rdi, 0x40(%rsp) movb $0x0, 0x8f(%rsp) addq $0x2d0, %rdi # imm = 0x2D0 callq 0x75f00 movq %rax, %rdi callq 0x75f10 movq %rax, %rcx movq 0x4...
/greensky00[P]NuRaft/src/handle_join_leave.cxx
nuraft::raft_server::handle_leave_cluster_resp(nuraft::resp_msg&)
void raft_server::handle_leave_cluster_resp(resp_msg& resp) { if (!resp.get_accepted()) { p_db("peer doesn't accept to stepping down, stop proceeding"); return; } p_db("peer accepted to stepping down, removing this server from cluster"); rm_srv_from_cluster(resp.get_src()); }
subq $0x88, %rsp movq %rdi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x78(%rsp), %rdi callq 0x76950 testb $0x1, %al jne 0xa444a movq 0x20(%rsp), %rdi addq $0x318, %rdi # imm = 0x318 callq 0x75100 testb $0x1, %al jne 0xa439d jmp 0xa4445 movq 0x20(%rsp), %rdi addq $0x31...
/greensky00[P]NuRaft/src/handle_join_leave.cxx
nuraft::raft_server::check_snapshot_timeout(std::shared_ptr<nuraft::peer>)
bool raft_server::check_snapshot_timeout(ptr<peer> pp) { ptr<snapshot_sync_ctx> sync_ctx = pp->get_snapshot_sync_ctx(); if (!sync_ctx) return false; if ( sync_ctx->get_timer().timeout() ) { p_wn("snapshot install task for peer %d timed out: %" PRIu64 " ms, " "reset snapshot sync contex...
subq $0xa8, %rsp movq %rsi, 0x30(%rsp) movq %rdi, %rax movq 0x30(%rsp), %rdi movq %rdi, 0x38(%rsp) movq %rax, 0x98(%rsp) movq %rdi, 0x90(%rsp) movq 0x98(%rsp), %rax movq %rax, 0x40(%rsp) callq 0x753a0 movq %rax, %rsi leaq 0x80(%rsp), %rdi callq 0x75b90 leaq 0x80(%rsp), %rdi callq 0x75bf0 testb $0x1, %al jne 0xab8e1 mov...
/greensky00[P]NuRaft/src/handle_snapshot_sync.cxx
nuraft::raft_server::handle_install_snapshot_req(nuraft::req_msg&)
ptr<resp_msg> raft_server::handle_install_snapshot_req(req_msg& req) { if (req.get_term() == state_->get_term() && !catching_up_) { if (role_ == srv_role::candidate) { become_follower(); } else if (role_ == srv_role::leader) { // LCOV_EXCL_START p_er( "Receive In...
subq $0x288, %rsp # imm = 0x288 movq %rdi, 0x130(%rsp) movq %rdi, %rax movq %rax, 0x138(%rsp) movq %rdi, 0x268(%rsp) movq %rsi, 0x260(%rsp) movq %rdx, 0x258(%rsp) movq 0x260(%rsp), %rax movq %rax, 0x140(%rsp) movq 0x258(%rsp), %rdi callq 0x764b0 movq 0x140(%rsp), %rdi movq %rax, 0x148(%rsp) addq $0x2d0, %rdi...
/greensky00[P]NuRaft/src/handle_snapshot_sync.cxx
nuraft::raft_server::handle_snapshot_sync_req(nuraft::snapshot_sync_req&)
bool raft_server::handle_snapshot_sync_req(snapshot_sync_req& req) { try { // if offset == 0, it is the first object. bool is_first_obj = (req.get_offset()) ? false : true; bool is_last_obj = req.is_done(); if (is_first_obj || is_last_obj) { // INFO level: log only first and last object. ...
subq $0x4e8, %rsp # imm = 0x4E8 movq %rdi, 0x4d8(%rsp) movq %rsi, 0x4d0(%rsp) movq 0x4d8(%rsp), %rax movq %rax, 0x270(%rsp) movq 0x4d0(%rsp), %rdi callq 0xb2470 movq %rax, 0x278(%rsp) jmp 0xae82e movq 0x278(%rsp), %rax testq %rax, %rax sete 0x4cf(%rsp) movq 0x4d0(%rsp), %rdi callq 0xb24a0 movb %al, 0x26f(%rs...
/greensky00[P]NuRaft/src/handle_snapshot_sync.cxx
nuraft::srv_role_to_string[abi:cxx11](nuraft::srv_role)
inline std::string ATTR_UNUSED srv_role_to_string(srv_role _role) { switch (_role) { case follower: return "follower"; case candidate: return "candidate"; case leader: return "leader"; default: return "UNKNOWN"; } return "UNKNOWN"; }
subq $0x58, %rsp movq %rdi, 0x20(%rsp) movq %rdi, %rax movq %rax, 0x28(%rsp) movq %rdi, 0x50(%rsp) movl %esi, 0x4c(%rsp) movl 0x4c(%rsp), %eax movl %eax, 0x34(%rsp) subl $0x1, %eax je 0xb7fa6 jmp 0xb7f89 movl 0x34(%rsp), %eax subl $0x2, %eax je 0xb7ff9 jmp 0xb7f94 movl 0x34(%rsp), %eax subl $0x3, %eax je 0xb804c jmp 0x...
/greensky00[P]NuRaft/include/libnuraft/srv_role.hxx
nuraft::raft_server::add_srv(nuraft::srv_config const&)
ptr< cmd_result< ptr<buffer> > > raft_server::add_srv(const srv_config& srv) { ptr<buffer> buf(srv.serialize()); ptr<log_entry> log( cs_new<log_entry> ( 0, buf, log_val_type::cluster_server ) ); ptr<req_msg> req = cs_new<req_msg> ( (ulong)0, msg_type::add_serve...
subq $0xf8, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x20(%rsp) movq %rdi, 0xf0(%rsp) movq %rsi, 0xe8(%rsp) movq %rdx, 0xe0(%rsp) movq 0xe8(%rsp), %rax movq %rax, 0x28(%rsp) movq 0xe0(%rsp), %rsi leaq 0xd0(%rsp), %rdi movq %rdi, 0x30(%rsp) callq 0xee250 movq 0x30(%rsp), %rdx movl $0x0, 0xbc(%rsp) movb $0x3...
/greensky00[P]NuRaft/src/handle_user_cmd.cxx
nuraft::raft_server::remove_srv(int)
ptr< cmd_result< ptr<buffer> > > raft_server::remove_srv(const int srv_id) { ptr<buffer> buf(buffer::alloc(sz_int)); buf->put(srv_id); buf->pos(0); ptr<log_entry> log(cs_new<log_entry>(0, buf, log_val_type::cluster_server)); ptr<req_msg> req = cs_new<req_msg> ( (ulong)0, msg_t...
subq $0xf8, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, 0x20(%rsp) movq %rdi, 0xf0(%rsp) movq %rsi, 0xe8(%rsp) movl %edx, 0xe4(%rsp) movq 0xe8(%rsp), %rax movq %rax, 0x28(%rsp) leaq 0xd0(%rsp), %rdi movq %rdi, 0x30(%rsp) movl $0x4, %esi callq 0x63730 movq 0x30(%rsp), %rdi callq 0x21b00 movq %rax, %rdi movl 0x...
/greensky00[P]NuRaft/src/handle_user_cmd.cxx
nuraft::raft_server::cleanup_auto_fwd_pkgs()
void raft_server::cleanup_auto_fwd_pkgs() { auto_lock(rpc_clients_lock_); for (auto& entry: auto_fwd_pkgs_) { ptr<auto_fwd_pkg> pkg = entry.second; pkg->ea_.invoke(); auto_lock(pkg->lock_); p_in("srv %d, in-use %zu, idle %zu", entry.first, pkg->rpc_clien...
subq $0x158, %rsp # imm = 0x158 movq %rdi, 0x150(%rsp) movq 0x150(%rsp), %rsi movq %rsi, 0x58(%rsp) addq $0x4b0, %rsi # imm = 0x4B0 leaq 0x148(%rsp), %rdi callq 0x27470 movq 0x58(%rsp), %rax addq $0x250, %rax # imm = 0x250 movq %rax, 0x140(%rsp) movq 0x140(%rsp), %rdi callq 0xbcf50 movq...
/greensky00[P]NuRaft/src/handle_user_cmd.cxx
nuraft::cmd_result<std::shared_ptr<nuraft::buffer>, std::shared_ptr<std::exception>>::cmd_result(std::shared_ptr<nuraft::buffer>&, bool, nuraft::cmd_result_code)
explicit cmd_result(T& result, bool _accepted, cmd_result_code code = cmd_result_code::OK) : result_(result) , err_() , code_(code) , has_result_(true) , accepted_(_accepted) , handler_(nullptr) , handler2_(nullptr) ...
subq $0x28, %rsp movb %dl, %al movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) andb $0x1, %al movb %al, 0x17(%rsp) movl %ecx, 0x10(%rsp) movq 0x20(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x35920 movq 0x8(%rsp), %rdi addq $0x10, %rdi movq 0x18(%rsp), %rsi callq 0x21b10 movq 0x8(%rsp), %rdi addq $0x20, %rdi callq 0x375c0 movq...
/greensky00[P]NuRaft/include/libnuraft/async.hxx
nuraft::raft_server::request_prevote()
void raft_server::request_prevote() { ptr<raft_params> params = ctx_->get_params(); ptr<cluster_config> c_config = get_config(); for (peer_itor it = peers_.begin(); it != peers_.end(); ++it) { ptr<peer> pp = it->second; if (!is_regular_member(pp)) continue; ptr<srv_config> s_config =...
subq $0x4d8, %rsp # imm = 0x4D8 movq %rdi, 0x440(%rsp) movq 0x440(%rsp), %rdi movq %rdi, 0x210(%rsp) addq $0x158, %rdi # imm = 0x158 callq 0x75410 movq %rax, %rsi leaq 0x430(%rsp), %rdi callq 0x75470 movq 0x210(%rsp), %rsi leaq 0x420(%rsp), %rdi callq 0xd5940 jmp 0xc45c2 movq 0x210(%rsp), %rdi add...
/greensky00[P]NuRaft/src/handle_vote.cxx
msg_if_given[abi:cxx11](char const*, ...)
static inline std::string msg_if_given ( const char* format, ... ) { #endif if (format[0] == 0x0) { return ""; } else { _fix_format(format); size_t len = 0; char msg[2048]; va_list args; va_start(args, format);...
subq $0x948, %rsp # imm = 0x948 movq %rdi, 0x20(%rsp) movq %rdi, %r10 movq %r10, 0x28(%rsp) testb %al, %al je 0xc5e82 movaps %xmm0, 0x60(%rsp) movaps %xmm1, 0x70(%rsp) movaps %xmm2, 0x80(%rsp) movaps %xmm3, 0x90(%rsp) movaps %xmm4, 0xa0(%rsp) movaps %xmm5, 0xb0(%rsp) movaps %xmm6, 0xc0(%rsp) movaps %xmm7, 0x...
/greensky00[P]NuRaft/src/tracer.hxx
nuraft::raft_server::handle_vote_resp(nuraft::resp_msg&)
void raft_server::handle_vote_resp(resp_msg& resp) { if (election_completed_) { p_in("Election completed, will ignore the voting result from this server"); return; } if (resp.get_term() != state_->get_term()) { // Vote response for other term. Should ignore it. p_in("[VOTE R...
subq $0x1d8, %rsp # imm = 0x1D8 movq %rdi, 0x1d0(%rsp) movq %rsi, 0x1c8(%rsp) movq 0x1d0(%rsp), %rax movq %rax, 0xc8(%rsp) testb $0x1, 0xe8(%rax) je 0xc874f movq 0xc8(%rsp), %rdi addq $0x318, %rdi # imm = 0x318 callq 0x75100 testb $0x1, %al jne 0xc8681 jmp 0xc874a movq 0xc8(%rsp), %rdi addq $0x318...
/greensky00[P]NuRaft/src/handle_vote.cxx
nuraft::raft_server::handle_prevote_req(nuraft::req_msg&)
ptr<resp_msg> raft_server::handle_prevote_req(req_msg& req) { ulong next_idx_for_resp = 0; auto entry = peers_.find(req.get_src()); if (entry == peers_.end()) { // This node already has been removed, set a special value. next_idx_for_resp = std::numeric_limits<ulong>::max(); } p_in(...
pushq %rbp pushq %rbx subq $0x238, %rsp # imm = 0x238 movq %rdi, 0xe8(%rsp) movq %rdi, %rax movq %rax, 0xf0(%rsp) movq %rdi, 0x230(%rsp) movq %rsi, 0x228(%rsp) movq %rdx, 0x220(%rsp) movq 0x228(%rsp), %rax movq %rax, 0x100(%rsp) movq $0x0, 0x218(%rsp) addq $0x1e0, %rax # imm = 0x1E0 movq %rax, 0xf...
/greensky00[P]NuRaft/src/handle_vote.cxx
nuraft::raft_server::handle_prevote_resp(nuraft::resp_msg&)
void raft_server::handle_prevote_resp(resp_msg& resp) { if (resp.get_term() != pre_vote_.term_) { // Vote response for other term. Should ignore it. p_in("[PRE-VOTE RESP] from peer %d, my role %s, " "but different resp term %" PRIu64 " (pre-vote term %" PRIu64 "). " "ignore...
pushq %rbp pushq %rbx subq $0x378, %rsp # imm = 0x378 movq %rdi, 0x2f8(%rsp) movq %rsi, 0x2f0(%rsp) movq 0x2f8(%rsp), %rax movq %rax, 0x170(%rsp) movq 0x2f0(%rsp), %rdi callq 0x764b0 movq 0x170(%rsp), %rcx cmpq 0xc8(%rcx), %rax je 0xc9921 movq 0x170(%rsp), %rdi addq $0x318, %rdi # imm = 0x318 call...
/greensky00[P]NuRaft/src/handle_vote.cxx
nuraft::peer::send_req(std::shared_ptr<nuraft::peer>, std::shared_ptr<nuraft::req_msg>&, std::function<void (std::shared_ptr<nuraft::resp_msg>&, std::shared_ptr<nuraft::rpc_exception>&)>&)
void peer::send_req( ptr<peer> myself, ptr<req_msg>& req, rpc_handler& handler ) { if (abandoned_) { p_er("peer %d has been shut down, cannot send request", config_->get_id()); return; } if (req) { p_tr("send req %d -> %d, type ...
subq $0x1d8, %rsp # imm = 0x1D8 movq %rsi, 0x58(%rsp) movq %rdi, 0x1d0(%rsp) movq %rsi, 0x1c8(%rsp) movq %rdx, 0x1c0(%rsp) movq %rcx, 0x1b8(%rsp) movq 0x1d0(%rsp), %rdi movq %rdi, 0x60(%rsp) addq $0x269, %rdi # imm = 0x269 callq 0x232c0 testb $0x1, %al jne 0xcb04e jmp 0xcb138 movq 0x60(%rsp), %rdi...
/greensky00[P]NuRaft/src/peer.cxx
msg_if_given[abi:cxx11](char const*, ...)
static inline std::string msg_if_given ( const char* format, ... ) { #endif if (format[0] == 0x0) { return ""; } else { _fix_format(format); size_t len = 0; char msg[2048]; va_list args; va_start(args, format);...
subq $0x948, %rsp # imm = 0x948 movq %rdi, 0x20(%rsp) movq %rdi, %r10 movq %r10, 0x28(%rsp) testb %al, %al je 0xcb662 movaps %xmm0, 0x60(%rsp) movaps %xmm1, 0x70(%rsp) movaps %xmm2, 0x80(%rsp) movaps %xmm3, 0x90(%rsp) movaps %xmm4, 0xa0(%rsp) movaps %xmm5, 0xb0(%rsp) movaps %xmm6, 0xc0(%rsp) movaps %xmm7, 0x...
/greensky00[P]NuRaft/src/tracer.hxx
nuraft::peer::recreate_rpc(std::shared_ptr<nuraft::srv_config>&, nuraft::context&)
bool peer::recreate_rpc(ptr<srv_config>& config, context& ctx) { if (abandoned_) { p_tr("peer %d is abandoned", config->get_id()); return false; } ptr<rpc_client_factory> factory = nullptr; { std::lock_guard<std::mutex> l(ctx.ctx_lock_); factory = ctx.r...
subq $0x1b8, %rsp # imm = 0x1B8 movq %rdi, 0x1a8(%rsp) movq %rsi, 0x1a0(%rsp) movq %rdx, 0x198(%rsp) movq 0x1a8(%rsp), %rdi movq %rdi, 0x90(%rsp) addq $0x269, %rdi # imm = 0x269 callq 0x232c0 testb $0x1, %al jne 0xcc5f4 jmp 0xcc6fe movq 0x90(%rsp), %rdi addq $0x2a0, %rdi # imm = 0x2A0 c...
/greensky00[P]NuRaft/src/peer.cxx
nuraft::cmd_result<std::shared_ptr<nuraft::resp_msg>, std::shared_ptr<nuraft::rpc_exception>>::cmd_result(std::function<void (std::shared_ptr<nuraft::resp_msg>&, std::shared_ptr<nuraft::rpc_exception>&)> const&)
explicit cmd_result(const handler_type& handler) : err_() , code_(cmd_result_code::OK) , has_result_(true) , accepted_(false) , handler_(handler) , handler2_(nullptr) {}
subq $0x48, %rsp movq %rdi, 0x40(%rsp) movq %rsi, 0x38(%rsp) movq 0x40(%rsp), %rdi movq %rdi, 0x20(%rsp) movq %rdi, %rax movq %rax, 0x8(%rsp) callq 0x43640 movq 0x20(%rsp), %rdi addq $0x10, %rdi movq %rdi, 0x10(%rsp) callq 0x43640 movq 0x20(%rsp), %rdi addq $0x20, %rdi movq %rdi, 0x18(%rsp) callq 0x43870 movq 0x20(%rsp...
/greensky00[P]NuRaft/include/libnuraft/async.hxx
nuraft::raft_server::apply_and_log_current_params()
void raft_server::apply_and_log_current_params() { ptr<raft_params> params = ctx_->get_params(); if (!test_mode_flag_) { if (params->heart_beat_interval_ >= params->election_timeout_lower_bound_) { params->election_timeout_lower_bound_ = params->heart_beat_interval_ * 2; p_wn("i...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1e8, %rsp # imm = 0x1E8 movq %rdi, 0x1e0(%rsp) movq 0x1e0(%rsp), %rdi movq %rdi, 0x158(%rsp) addq $0x158, %rdi # imm = 0x158 callq 0x75410 movq %rax, %rsi leaq 0x1d0(%rsp), %rdi callq 0x75470 movq 0x158(%rsp), %rdi addq $0x6...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::~raft_server()
raft_server::~raft_server() { // For the case that user does not call shutdown() and directly // destroy the current `raft_server` instance. cancel_global_requests(); recur_lock(lock_); stopping_ = true; std::unique_lock<std::mutex> commit_lock(commit_cv_lock_); commit_cv_.notify_all(); ...
subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0xd6350 movq 0x8(%rsp), %rdi callq 0xa540 addq $0x18, %rsp retq nopw (%rax,%rax)
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::get_leadership_expiry()
int32 raft_server::get_leadership_expiry() { ptr<raft_params> params = ctx_->get_params(); int expiry = params->leadership_expiry_; if (expiry == 0) { // If 0, default expiry: 20x of heartbeat. expiry = params->heart_beat_interval_ * raft_server::raft_limits_.leadership_...
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq 0x20(%rsp), %rdi addq $0x158, %rdi # imm = 0x158 callq 0x75410 movq %rax, %rsi leaq 0x10(%rsp), %rdi callq 0x75470 leaq 0x10(%rsp), %rdi callq 0x754d0 movl 0x40(%rax), %eax movl %eax, 0xc(%rsp) cmpl $0x0, 0xc(%rsp) jne 0xd699d leaq 0x10(%rsp), %rdi callq 0x754d0 mo...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::get_num_stale_peers()
size_t raft_server::get_num_stale_peers() { // Check the number of peers lagging more than `stale_log_gap_`. if (leader_ != id_) return 0; size_t count = 0; for (auto& entry: peers_) { ptr<peer>& pp = entry.second; if ( get_last_log_idx() > pp->get_last_accepted_log_idx() + ...
subq $0x78, %rsp movq %rdi, 0x68(%rsp) movq 0x68(%rsp), %rdi movq %rdi, 0x20(%rsp) addq $0x34, %rdi callq 0x30d20 movq 0x20(%rsp), %rcx cmpl 0x38(%rcx), %eax je 0xd7f84 movq $0x0, 0x70(%rsp) jmp 0xd8094 movq 0x20(%rsp), %rax movq $0x0, 0x60(%rsp) addq $0x1e0, %rax # imm = 0x1E0 movq %rax, 0x58(%rsp) movq 0x5...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::handle_ext_msg(nuraft::req_msg&)
ptr<resp_msg> raft_server::handle_ext_msg(req_msg& req) { switch (req.get_type()) { case msg_type::add_server_request: return handle_add_srv_req(req); case msg_type::remove_server_request: return handle_rm_srv_req(req); case msg_type::sync_log_request: return handle_log_sync_re...
subq $0x98, %rsp movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x90(%rsp) movq %rsi, 0x88(%rsp) movq %rdx, 0x80(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x80(%rsp), %rdi callq 0x434e0 addl $-0x6, %eax movl %eax, %ecx movq %rcx, 0x28(%rsp) subl $0x16, %eax ja 0xd91ce movq 0x28(%rsp...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::handle_reconnect_req(nuraft::req_msg&)
ptr<resp_msg> raft_server::handle_reconnect_req(req_msg& req) { int32 srv_id = req.get_src(); ptr<resp_msg> resp( cs_new<resp_msg> ( state_->get_term(), msg_type::reconnect_response, id_, srv_id ) ); if (ro...
subq $0x138, %rsp # imm = 0x138 movq %rdi, 0x60(%rsp) movq %rdi, %rax movq %rax, 0x58(%rsp) movq %rdi, 0x130(%rsp) movq %rsi, 0x128(%rsp) movq %rdx, 0x120(%rsp) movq 0x128(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x120(%rsp), %rdi callq 0x764a0 movq 0x68(%rsp), %rdi movl %eax, 0x11c(%rsp) movb $0x0, 0x11b(%rsp...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::handle_reconnect_resp(nuraft::resp_msg&)
void raft_server::handle_reconnect_resp(resp_msg& resp) { p_in("got re-connection scheduling response " "from leader %d to my id %d, result %s", resp.get_src(), resp.get_dst(), resp.get_accepted() ? "accepted" : "rejected"); }
subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq 0x60(%rsp), %rdi movq %rdi, 0x20(%rsp) addq $0x318, %rdi # imm = 0x318 callq 0x75100 testb $0x1, %al jne 0xda71d jmp 0xda815 movq 0x20(%rsp), %rdi addq $0x318, %rdi # imm = 0x318 callq 0x75120 movq %rax, %rdi movq (%rdi), %rax callq...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::handle_ext_resp_err(nuraft::rpc_exception&)
void raft_server::handle_ext_resp_err(rpc_exception& err) { ptr<req_msg> req = err.req(); p_in( "receive an rpc error response from peer server, %s %d", err.what(), req->get_type() ); if ( req->get_type() == msg_type::install_snapshot_request ) { if (srv_to_join_ && srv_to_join_->get_id()...
subq $0x228, %rsp # imm = 0x228 movq %rdi, 0x220(%rsp) movq %rsi, 0x218(%rsp) movq 0x220(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x218(%rsp), %rsi leaq 0x208(%rsp), %rdi callq 0xe0be0 movq 0x90(%rsp), %rdi addq $0x318, %rdi # imm = 0x318 callq 0x75100 testb $0x1, %al jne 0xde789 jmp 0xde8b8 movq 0x...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::set_user_ctx(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void raft_server::set_user_ctx(const std::string& ctx) { // Clone current cluster config. ptr<cluster_config> c_conf = get_config(); ptr<buffer> enc_conf = c_conf->serialize(); ptr<cluster_config> cloned_config = cluster_config::deserialize(*enc_conf); // Create a log for new configuration, it shou...
subq $0xb8, %rsp movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq 0xb0(%rsp), %rsi movq %rsi, 0x20(%rsp) leaq 0x98(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0xd5940 movq 0x28(%rsp), %rdi callq 0x23350 movq %rax, %rsi leaq 0x88(%rsp), %rdi callq 0x686a0 jmp 0xdf472 leaq 0x88(%rsp), %rdi callq 0x30a70 movq %rax, %rsi leaq ...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::get_aux[abi:cxx11](int) const
std::string raft_server::get_aux(int32 srv_id) const { ptr<cluster_config> c_conf = get_config(); ptr<srv_config> s_conf = c_conf->get_server(srv_id); if (!s_conf) return std::string(); return s_conf->get_aux(); }
subq $0x68, %rsp movq %rdi, 0x8(%rsp) movq %rdi, %rax movq %rax, 0x10(%rsp) movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movl %edx, 0x54(%rsp) movq 0x58(%rsp), %rsi leaq 0x40(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0xd5940 movq 0x18(%rsp), %rdi callq 0x23350 movq %rax, %rsi movl 0x54(%rsp), %edx leaq 0x30(%rsp), %rdi ca...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::get_peer_info(int) const
raft_server::peer_info raft_server::get_peer_info(int32 srv_id) const { if (!is_leader()) return peer_info(); recur_lock(lock_); auto entry = peers_.find(srv_id); if (entry == peers_.end()) return peer_info(); peer_info ret; ptr<peer> pp = entry->second; ret.id_ = pp->get_id(); ret.las...
subq $0x98, %rsp movq %rdi, 0x28(%rsp) movq %rdi, 0x30(%rsp) movq %rsi, 0x90(%rsp) movl %edx, 0x8c(%rsp) movq 0x90(%rsp), %rdi movq %rdi, 0x38(%rsp) callq 0x8cd00 testb $0x1, %al jne 0xdfaa5 movq 0x28(%rsp), %rdi callq 0xe1180 jmp 0xdfc1d movq 0x38(%rsp), %rsi addq $0x3e0, %rsi # imm = 0x3E0 leaq 0x78(%rsp),...
/greensky00[P]NuRaft/src/raft_server.cxx
nuraft::raft_server::limits::operator=(nuraft::raft_server::limits const&)
limits& operator=(const limits& src) { pre_vote_rejection_limit_ = src.pre_vote_rejection_limit_.load(); warning_limit_ = src.warning_limit_.load(); response_limit_ = src.response_limit_.load(); leadership_limit_ = src.leadership_limit_.load(); reconnect_limi...
subq $0x138, %rsp # imm = 0x138 movq %rdi, 0x88(%rsp) movq %rsi, 0x80(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x130(%rsp) movl $0x5, 0x12c(%rsp) movq 0x130(%rsp), %rax movq %rax, 0x70(%rsp) movl 0x12c(%rsp), %edi movl $0xffff, %esi # imm = 0xFFFF callq 0x2...
/greensky00[P]NuRaft/include/libnuraft/raft_server.hxx
nuraft::raft_server::get_stat_histogram(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::map<double, unsigned long, std::less<double>, std::allocator<std::pair<double const, unsigned long>>>&)
bool raft_server::get_stat_histogram(const std::string& name, std::map<double, uint64_t>& histogram_out ) { stat_elem* elem = stat_mgr::get_instance()->get_stat(name); if (!elem) return false; if (elem->get_type() != stat_elem::HISTOGRAM) return false; for (HistItr&...
subq $0x98, %rsp movq %rdi, 0x88(%rsp) movq %rsi, 0x80(%rsp) callq 0xeecc0 movq %rax, %rdi movq 0x88(%rsp), %rsi callq 0xeed50 movq %rax, 0x78(%rsp) cmpq $0x0, 0x78(%rsp) jne 0xef346 movb $0x0, 0x97(%rsp) jmp 0xef431 movq 0x78(%rsp), %rdi callq 0xef900 cmpl $0x1, %eax je 0xef362 movb $0x0, 0x97(%rsp) jmp 0xef431 movq 0...
/greensky00[P]NuRaft/src/stat_mgr.cxx
Histogram::Histogram(double)
Histogram(double base = 2.0) : EXP_BASE(base) , EXP_BASE_LOG( log(base) ) , count(0) , sum(0) , max(0) { bins = new HistBin[MAX_BINS]; for (size_t i=0; i<MAX_BINS; ++i) { bins[i] = 0; } }
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movsd %xmm0, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x8(%rsp) movsd 0x18(%rsp), %xmm0 movsd %xmm0, (%rax) movsd 0x18(%rsp), %xmm0 callq 0xa490 movq 0x8(%rsp), %rdi movsd %xmm0, 0x8(%rdi) addq $0x18, %rdi xorl %eax, %eax movl %eax, %esi callq 0x31870 movq 0x8(%rsp), %rdi addq ...
/greensky00[P]NuRaft/src/histogram.h
nuraft::stat_elem::reset()
void reset() { switch (stat_type_) { case COUNTER: case GAUGE: set(0); break; case HISTOGRAM: { Histogram empty_histogram; *hist_ = empty_histogram; break; } default: break; } }
subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x8(%rsp) movl (%rax), %eax movl %eax, 0x10(%rsp) testl %eax, %eax je 0xef885 jmp 0xef86f movl 0x10(%rsp), %eax subl $0x1, %eax je 0xef895 jmp 0xef87a movl 0x10(%rsp), %eax subl $0x2, %eax jne 0xef8e5 jmp 0xef885 movq 0x8(%rsp), %rdi xorl %eax, %ea...
/greensky00[P]NuRaft/src/stat_mgr.hxx
Histogram::begin() const
iterator begin() const { size_t i; for (i=0; i<MAX_BINS; ++i) { if (bins[i].load(std::memory_order_relaxed)) break; } return HistItr(i, MAX_BINS, this); }
subq $0x58, %rsp movq %rdi, 0x18(%rsp) movq %rdi, 0x20(%rsp) movq %rsi, 0x38(%rsp) movq 0x38(%rsp), %rax movq %rax, 0x28(%rsp) movq $0x0, 0x30(%rsp) cmpq $0x41, 0x30(%rsp) jae 0xefa33 movq 0x28(%rsp), %rax movq 0x10(%rax), %rax movq 0x30(%rsp), %rcx leaq (%rax,%rcx,8), %rax movq %rax, 0x50(%rsp) movl $0x0, 0x4c(%rsp) m...
/greensky00[P]NuRaft/src/histogram.h
nuraft::stat_elem::set(long)
inline void set(int64_t value) { #ifndef ENABLE_RAFT_STATS return; #endif assert(stat_type_ != HISTOGRAM); if (stat_type_ == COUNTER) { counter_.store(value, std::memory_order_relaxed); } else { gauge_.store(value, std::memory_order_relaxed); } }
movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) retq nopl (%rax,%rax)
/greensky00[P]NuRaft/src/stat_mgr.hxx
Histogram::operator=(Histogram const&)
Histogram& operator=(const Histogram& src) { EXP_BASE = src.EXP_BASE; EXP_BASE_LOG = src.EXP_BASE_LOG; count = src.getTotal(); sum = src.getSum(); max = src.getMax(); for (size_t i=0; i<MAX_BINS; ++i) { bins[i].store( src.bins[i].load() ); } re...
subq $0x88, %rsp movq %rdi, 0x48(%rsp) movq %rsi, 0x40(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x40(%rsp), %rcx movsd (%rcx), %xmm0 movsd %xmm0, (%rax) movq 0x40(%rsp), %rcx movsd 0x8(%rcx), %xmm0 movsd %xmm0, 0x8(%rax) movq 0x40(%rsp), %rdi callq 0xf01a0 movq 0x30(%rsp), %rdi movq %rax, %rsi addq $0x18,...
/greensky00[P]NuRaft/src/histogram.h
nuraft::nuraft_global_mgr::init(nuraft::nuraft_global_config const&)
nuraft_global_mgr* nuraft_global_mgr::init(const nuraft_global_config& config) { nuraft_global_mgr* mgr = ngm_singleton::get_instance().get(); if (!mgr) { bool created = ngm_singleton::get_instance().create(); mgr = ngm_singleton::get_instance().get(); if (created) { mgr->con...
subq $0x18, %rsp movq %rdi, 0x10(%rsp) callq 0xf4000 movq %rax, %rdi callq 0xf4090 movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) jne 0xf1cdc callq 0xf4000 movq %rax, %rdi callq 0xf40a0 andb $0x1, %al movb %al, 0x7(%rsp) callq 0xf4000 movq %rax, %rdi callq 0xf4090 movq %rax, 0x8(%rsp) testb $0x1, 0x7(%rsp) je 0xf1cda movq 0...
/greensky00[P]NuRaft/src/global_mgr.cxx
nuraft::nuraft_global_mgr::init_thread_pool()
void nuraft_global_mgr::init_thread_pool() { for (size_t ii = 0; ii < config_.num_commit_threads_; ++ii) { ptr<worker_handle> w_hdl = cs_new<worker_handle>( thread_id_counter_.fetch_add(1) ); w_hdl->thread_ = cs_new<std::thread>( &nuraft_global_mgr::commit_worker_loop, ...
subq $0x158, %rsp # imm = 0x158 movq %rdi, 0x100(%rsp) movq 0x100(%rsp), %rax movq %rax, 0x58(%rsp) movq $0x0, 0xf8(%rsp) movq 0x58(%rsp), %rcx movq 0xf8(%rsp), %rax cmpq 0x38(%rcx), %rax jae 0xf1f34 movq 0x58(%rsp), %rax addq $0x50, %rax movq %rax, 0x150(%rsp) movq $0x1, 0x148(%rsp) movl $0x5, 0x144(%rsp) m...
/greensky00[P]NuRaft/src/global_mgr.cxx
nuraft::nuraft_global_mgr::append_worker_loop(std::shared_ptr<nuraft::nuraft_global_mgr::worker_handle>)
void nuraft_global_mgr::append_worker_loop(ptr<worker_handle> handle) { std::string thread_name = "nuraft_g_a" + std::to_string(handle->id_); #ifdef __linux__ pthread_setname_np(pthread_self(), thread_name.c_str()); #elif __APPLE__ pthread_setname_np(thread_name.c_str()); #endif bool skip_sleeping = fa...
subq $0x108, %rsp # imm = 0x108 movq %rsi, 0x28(%rsp) movq %rdi, %rax movq 0x28(%rsp), %rdi movq %rdi, 0x30(%rsp) movq %rax, 0x100(%rsp) movq %rdi, 0xf8(%rsp) movq 0x100(%rsp), %rax movq %rax, 0x38(%rsp) callq 0xf3ea0 movq (%rax), %rsi leaq 0xb8(%rsp), %rdi movq %rdi, 0x40(%rsp) callq 0x21a00 movq 0x40(%rsp)...
/greensky00[P]NuRaft/src/global_mgr.cxx
msg_if_given[abi:cxx11](char const*, ...)
static inline std::string msg_if_given ( const char* format, ... ) { #endif if (format[0] == 0x0) { return ""; } else { _fix_format(format); size_t len = 0; char msg[2048]; va_list args; va_start(args, format);...
subq $0x948, %rsp # imm = 0x948 movq %rdi, 0x20(%rsp) movq %rdi, %r10 movq %r10, 0x28(%rsp) testb %al, %al je 0xf3122 movaps %xmm0, 0x60(%rsp) movaps %xmm1, 0x70(%rsp) movaps %xmm2, 0x80(%rsp) movaps %xmm3, 0x90(%rsp) movaps %xmm4, 0xa0(%rsp) movaps %xmm5, 0xb0(%rsp) movaps %xmm6, 0xc0(%rsp) movaps %xmm7, 0x...
/greensky00[P]NuRaft/src/tracer.hxx
nuraft::nuraft_global_mgr::close_raft_server(nuraft::raft_server*)
void nuraft_global_mgr::close_raft_server(raft_server* server) { // Cancel all requests for this raft server. size_t num_aborted_append = 0; { std::lock_guard<std::mutex> l(append_queue_lock_); auto entry = append_queue_.begin(); while (entry != append_queue_.end()) { if ...
subq $0xf8, %rsp movq %rdi, 0xf0(%rsp) movq %rsi, 0xe8(%rsp) movq 0xf0(%rsp), %rsi movq %rsi, 0x38(%rsp) movq $0x0, 0xe0(%rsp) addq $0x150, %rsi # imm = 0x150 leaq 0xd8(%rsp), %rdi callq 0x27470 movq 0x38(%rsp), %rdi addq $0x100, %rdi # imm = 0x100 callq 0xf4290 movq %rax, 0xd0(%rsp) movq 0x38(%rs...
/greensky00[P]NuRaft/src/global_mgr.cxx
nuraft::nuraft_global_mgr::request_append(std::shared_ptr<nuraft::raft_server>)
void nuraft_global_mgr::request_append(ptr<raft_server> server) { { std::lock_guard<std::mutex> l(append_queue_lock_); // First search the set if the server is duplicate. auto entry = append_server_set_.find(server); if (entry != append_server_set_.end()) { // `server` is...
subq $0xd8, %rsp movq %rsi, 0x28(%rsp) movq %rdi, 0xd0(%rsp) movq %rsi, 0xc8(%rsp) movq 0xd0(%rsp), %rsi movq %rsi, 0x20(%rsp) addq $0x150, %rsi # imm = 0x150 leaq 0xc0(%rsp), %rdi callq 0x27470 movq 0x20(%rsp), %rdi movq 0x28(%rsp), %rsi addq $0x118, %rdi # imm = 0x118 callq 0xf4420 movq %rax, 0x...
/greensky00[P]NuRaft/src/global_mgr.cxx
nuraft::ngm_singleton::create()
bool create() { if (internal_.get()) { // Already created. return false; } // C++11 doesn't have `make_unique`. internal_ = std::move( std::unique_ptr<nuraft_global_mgr>( new nuraft_global_mgr() ) ); return true; }
subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq 0x28(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0xf5320 cmpq $0x0, %rax je 0xf40c5 movb $0x0, 0x37(%rsp) jmp 0xf4127 movl $0x178, %edi # imm = 0x178 callq 0xa590 movq %rax, %rdi movq %rdi, %rax movq %rax, (%rsp) callq 0xf19c0 jmp 0xf40e0 movq (%rsp), %rsi leaq 0x20(%rs...
/greensky00[P]NuRaft/src/global_mgr.cxx
ncnn::conv3x3s1_winograd23_transform_kernel_pack4_sse(ncnn::Mat const&, ncnn::Mat&, int, int, ncnn::Option const&)
static void conv3x3s1_winograd23_transform_kernel_pack4_sse(const Mat& kernel, Mat& kernel_tm_pack4, int inch, int outch, const Option& opt) { // winograd23 transform kernel Mat kernel_tm(4 * 4, inch, outch); const float ktm[4][3] = { {1.0f, 0.0f, 0.0f}, {1.0f / 2, 1.0f / 2, 1.0f / 2}, ...
subq $0x568, %rsp # imm = 0x568 movq %rdi, 0x2c0(%rsp) movq %rsi, 0x2b8(%rsp) movl %edx, 0x2b4(%rsp) movl %ecx, 0x2b0(%rsp) movq %r8, 0x2a8(%rsp) movl 0x2b4(%rsp), %ecx movl 0x2b0(%rsp), %eax leaq 0x260(%rsp), %rdx movq %rdx, 0x488(%rsp) movl $0x10, 0x484(%rsp) movl %ecx, 0x480(%rsp) movl %eax, 0x47c(%rsp) m...
/ysh329[P]ncnn/src/layer/x86/convolution_3x3_pack4.h
ncnn::Convolution_x86::destroy_pipeline(ncnn::Option const&)
int Convolution_x86::destroy_pipeline(const Option& opt) { if (activation) { activation->destroy_pipeline(opt); delete activation; activation = 0; } if (convolution_dilation1) { convolution_dilation1->destroy_pipeline(opt); delete convolution_dilation1; ...
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) cmpq $0x0, 0x8(%rax) je 0x153daf movq 0x10(%rsp), %rax movq 0x8(%rax), %rdi movq 0x18(%rsp), %rsi movq (%rdi), %rax callq *0x28(%rax) movq 0x10(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) cmpq $0x0, %rax j...
/ysh329[P]ncnn/src/layer/x86/convolution_x86.cpp
ncnn::convolution_pack1to16_avx512(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, int, int, int, int, int, int, int, ncnn::Mat const&, ncnn::Option const&)
static void convolution_pack1to16_avx512(const Mat& bottom_blob, Mat& top_blob, const Mat& weight_data_packed, const Mat& bias_data, int kernel_w, int kernel_h, int dilation_w, int dilation_h, int stride_w, int stride_h, int activation_type, const Mat& activation_params, const Option& opt) { int w = bottom_blob.w; ...
pushq %rbp movq %rsp, %rbp andq $-0x40, %rsp subq $0x6340, %rsp # imm = 0x6340 movq 0x40(%rbp), %rax movq 0x38(%rbp), %rax movl 0x30(%rbp), %eax movl 0x28(%rbp), %eax movl 0x20(%rbp), %eax movl 0x18(%rbp), %eax movl 0x10(%rbp), %eax movq %rdi, 0x6a0(%rsp) movq %rsi, 0x698(%rsp) movq %rdx, 0x690(%rsp) movq %rc...
/ysh329[P]ncnn/src/layer/x86/convolution_pack1to16.h
ncnn::conv1x1s1_sgemm_pack16to1_avx512(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s1_sgemm_pack16to1_avx512(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Mat& _bias, const Option& opt) { int w = bottom_blob.w; int h = bottom_blob.h; const int size = w * h; Mat bottom_im2col = bottom_blob; bottom_im2col.w = size; bottom_im2col.h = 1; ...
subq $0x118, %rsp # imm = 0x118 movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq %rdx, 0xa0(%rsp) movq %rcx, 0x98(%rsp) movq %r8, 0x90(%rsp) movq 0xb0(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x8c(%rsp) movq 0xb0(%rsp), %rax movl 0x30(%rax), %eax movl %eax, 0x88(%rsp) movl 0x8c(%rsp), %eax imull 0x88(%rs...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_pack16to1.h
ncnn::conv1x1s2_sgemm_pack16to1_avx512(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s2_sgemm_pack16to1_avx512(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Mat& _bias, const Option& opt) { int w = bottom_blob.w; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; int elempack = bottom_blob.elempack; int outw = top_blob.w; ...
pushq %rbp movq %rsp, %rbp andq $-0x40, %rsp subq $0x480, %rsp # imm = 0x480 movq %rdi, 0x228(%rsp) movq %rsi, 0x220(%rsp) movq %rdx, 0x218(%rsp) movq %rcx, 0x210(%rsp) movq %r8, 0x208(%rsp) movq 0x228(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x204(%rsp) movq 0x228(%rsp), %rax movl 0x38(%rax), %eax movl ...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_pack16to1.h
ncnn::conv3x3s1_winograd63_pack8_avx(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Option const&)
static void conv3x3s1_winograd63_pack8_avx(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel_tm, const Mat& bias, const Option& opt) { int w = bottom_blob.w; int h = bottom_blob.h; int inch = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; int elempack = bottom_blob.elempack; int o...
subq $0x478, %rsp # imm = 0x478 movq %rdi, 0x280(%rsp) movq %rsi, 0x278(%rsp) movq %rdx, 0x270(%rsp) movq %rcx, 0x268(%rsp) movq %r8, 0x260(%rsp) movq 0x280(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x25c(%rsp) movq 0x280(%rsp), %rax movl 0x30(%rax), %eax movl %eax, 0x258(%rsp) movq 0x280(%rsp), %rax movl...
/ysh329[P]ncnn/src/layer/x86/convolution_3x3_pack8.h
ncnn::conv3x3s1_winograd43_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Option const&)
static void conv3x3s1_winograd43_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel_tm, const Mat& bias, const Option& opt) { int w = bottom_blob.w; int h = bottom_blob.h; int inch = bottom_blob.c; int outw = top_blob.w; int outh = top_blob.h; int outch = top_blob.c; // pad to 4n...
subq $0x4a8, %rsp # imm = 0x4A8 movq %rdi, 0x2b0(%rsp) movq %rsi, 0x2a8(%rsp) movq %rdx, 0x2a0(%rsp) movq %rcx, 0x298(%rsp) movq %r8, 0x290(%rsp) movq 0x2b0(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x28c(%rsp) movq 0x2b0(%rsp), %rax movl 0x30(%rax), %eax movl %eax, 0x288(%rsp) movq 0x2b0(%rsp), %rax movl...
/ysh329[P]ncnn/src/layer/x86/convolution_3x3.h
ncnn::convolution_im2col_sgemm_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, int, int, int, int, int, int, ncnn::Option const&)
static void convolution_im2col_sgemm_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Mat& _bias, int kernel_w, int kernel_h, int dilation_w, int dilation_h, int stride_w, int stride_h, const Option& opt) { int w = bottom_blob.w; int inch = bottom_blob.c; int outw = top_blob.w; int o...
subq $0x3c8, %rsp # imm = 0x3C8 movq 0x3f0(%rsp), %rax movl 0x3e8(%rsp), %eax movl 0x3e0(%rsp), %eax movl 0x3d8(%rsp), %eax movl 0x3d0(%rsp), %eax movq %rdi, 0x1b8(%rsp) movq %rsi, 0x1b0(%rsp) movq %rdx, 0x1a8(%rsp) movq %rcx, 0x1a0(%rsp) movl %r8d, 0x19c(%rsp) movl %r9d, 0x198(%rsp) movq 0x1b8(%rsp), %rax m...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm.h
ncnn::Convolution_x86_avx512::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int Convolution_x86_avx512::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& bottom_blob = bottom_blobs[0]; const Mat& _weight_data = bottom_blobs[1]; Mat& top_blob = top_blobs[0]; const int _kernel_w = _weight_data.w; const int _kerne...
subq $0x448, %rsp # imm = 0x448 movq %rdi, 0x2b0(%rsp) movq %rsi, 0x2a8(%rsp) movq %rdx, 0x2a0(%rsp) movq %rcx, 0x298(%rsp) movq 0x2b0(%rsp), %rax movq %rax, 0xf8(%rsp) movq 0x2a8(%rsp), %rdi xorl %eax, %eax movl %eax, %esi movq %rsi, 0x100(%rsp) callq 0xb5820 movq %rax, 0x290(%rsp) movq 0x2a8(%rsp), %rdi mo...
/ysh329[P]ncnn/build_O0/src/layer/x86/convolution_x86_avx512.cpp
ncnn::convolution_im2col_sgemm_transform_kernel_pack8to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void convolution_im2col_sgemm_transform_kernel_pack8to4_int8_sse(const Mat& _kernel, Mat& kernel_tm, int inch, int outch, int kernel_w, int kernel_h) { const int maxk = kernel_w * kernel_h; // interleave // src = maxk-inch-outch // dst = 8a-4b-maxk-inch/8a-outch/4b Mat kernel = _kernel.resha...
subq $0x378, %rsp # imm = 0x378 movq %rdi, 0x198(%rsp) movq %rsi, 0x190(%rsp) movl %edx, 0x18c(%rsp) movl %ecx, 0x188(%rsp) movl %r8d, 0x184(%rsp) movl %r9d, 0x180(%rsp) movl 0x184(%rsp), %eax movl 0x180(%rsp), %ecx imull %ecx, %eax movl %eax, 0x17c(%rsp) movq 0x198(%rsp), %rsi movl 0x17c(%rsp), %edx movl 0x...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm_pack8to4_int8.h
ncnn::convolution_transform_kernel_packed_int8_sse(ncnn::Mat const&, ncnn::Mat&, int, int, int, int, int, int)
static void convolution_transform_kernel_packed_int8_sse(const Mat& weight_data, Mat& weight_data_tm, int num_input, int num_output, int kernel_w, int kernel_h, int elempack, int out_elempack) { const int maxk = kernel_w * kernel_h; // src = kw-kh-inch-outch // dst = pa-pb-kw-kh-inch/pa-outch/pb { ...
subq $0x338, %rsp # imm = 0x338 movl 0x348(%rsp), %eax movl 0x340(%rsp), %eax movq %rdi, 0x198(%rsp) movq %rsi, 0x190(%rsp) movl %edx, 0x18c(%rsp) movl %ecx, 0x188(%rsp) movl %r8d, 0x184(%rsp) movl %r9d, 0x180(%rsp) movl 0x184(%rsp), %eax movl 0x180(%rsp), %ecx imull %ecx, %eax movl %eax, 0x17c(%rsp) movq 0x...
/ysh329[P]ncnn/build_O0/src/layer/x86/convolution_x86_avx512.cpp
ncnn::convolution_im2col_sgemm_transform_kernel_pack1to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void convolution_im2col_sgemm_transform_kernel_pack1to4_int8_sse(const Mat& _kernel, Mat& kernel_tm, int inch, int outch, int kernel_w, int kernel_h) { const int maxk = kernel_w * kernel_h; // interleave // src = maxk-inch-outch // dst = 4a-4b-maxk-inch/4a-outch/4b Mat kernel = _kernel.resha...
subq $0x458, %rsp # imm = 0x458 movq %rdi, 0x208(%rsp) movq %rsi, 0x200(%rsp) movl %edx, 0x1fc(%rsp) movl %ecx, 0x1f8(%rsp) movl %r8d, 0x1f4(%rsp) movl %r9d, 0x1f0(%rsp) movl 0x1f4(%rsp), %eax imull 0x1f0(%rsp), %eax movl %eax, 0x1ec(%rsp) movq 0x208(%rsp), %rsi movl 0x1ec(%rsp), %edx movl 0x1fc(%rsp), %ecx ...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm_pack1to4_int8.h
ncnn::convolution_im2col_sgemm_transform_kernel_pack8to1_int8_sse(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void convolution_im2col_sgemm_transform_kernel_pack8to1_int8_sse(const Mat& _kernel, Mat& kernel_tm, int inch, int outch, int kernel_w, int kernel_h) { const int maxk = kernel_w * kernel_h; // interleave // src = maxk-inch-outch // dst = 8a-4b-maxk-inch/8a-outch/4b Mat kernel = _kernel.resha...
subq $0x588, %rsp # imm = 0x588 movq %rdi, 0x290(%rsp) movq %rsi, 0x288(%rsp) movl %edx, 0x284(%rsp) movl %ecx, 0x280(%rsp) movl %r8d, 0x27c(%rsp) movl %r9d, 0x278(%rsp) movl 0x27c(%rsp), %eax imull 0x278(%rsp), %eax movl %eax, 0x274(%rsp) movq 0x290(%rsp), %rsi movl 0x274(%rsp), %edx movl 0x284(%rsp), %ecx ...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm_pack8to1_int8.h
ncnn::conv3x3s1_winograd43_transform_kernel_pack8to1_int8_sse(ncnn::Mat const&, ncnn::Mat&, int, int, ncnn::Option const&)
static void conv3x3s1_winograd43_transform_kernel_pack8to1_int8_sse(const Mat& kernel, Mat& kernel_tm_pack8to1, int inch, int outch, const Option& opt) { #if !(__AVX512VNNI__ || __AVXVNNI__ || __AVX2__ || __XOP__) #if NCNN_RUNTIME_CPU && NCNN_AVX512VNNI && __AVX512F__ && !__AVX512VNNI__ if (ncnn::cpu_support_x86_av...
subq $0xb48, %rsp # imm = 0xB48 movq %rdi, 0x4b0(%rsp) movq %rsi, 0x4a8(%rsp) movl %edx, 0x4a4(%rsp) movl %ecx, 0x4a0(%rsp) movq %r8, 0x498(%rsp) movl 0x4a4(%rsp), %ecx movl 0x4a0(%rsp), %eax leaq 0x450(%rsp), %rdx movq %rdx, 0x878(%rsp) movl $0x24, 0x874(%rsp) movl %ecx, 0x870(%rsp) movl %eax, 0x86c(%rsp) m...
/ysh329[P]ncnn/src/layer/x86/convolution_3x3_pack8to1_int8.h
ncnn::convolution_im2col_sgemm_transform_kernel_int8_sse(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void convolution_im2col_sgemm_transform_kernel_int8_sse(const Mat& _kernel, Mat& kernel_tm, int inch, int outch, int kernel_w, int kernel_h) { const int maxk = kernel_w * kernel_h; #if __SSE2__ // interleave // src = maxk-inch-outch // dst = 4a-4b-maxk-inch/4a-outch/4b Mat kernel = _kernel.r...
subq $0x7e8, %rsp # imm = 0x7E8 movq %rdi, 0x390(%rsp) movq %rsi, 0x388(%rsp) movl %edx, 0x384(%rsp) movl %ecx, 0x380(%rsp) movl %r8d, 0x37c(%rsp) movl %r9d, 0x378(%rsp) movl 0x37c(%rsp), %eax imull 0x378(%rsp), %eax movl %eax, 0x374(%rsp) movq 0x390(%rsp), %rsi movl 0x374(%rsp), %edx movl 0x384(%rsp), %ecx ...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm_int8.h
ncnn::conv1x1s1_sgemm_pack8to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s1_sgemm_pack8to4_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Option& opt) { int w = bottom_blob.w; int h = bottom_blob.h; const int size = w * h; Mat bottom_im2col = bottom_blob; bottom_im2col.w = size; bottom_im2col.h = 1; im2col_sgemm_pack...
subq $0x108, %rsp # imm = 0x108 movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq %rdx, 0x90(%rsp) movq %rcx, 0x88(%rsp) movq 0xa0(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x84(%rsp) movq 0xa0(%rsp), %rax movl 0x30(%rax), %eax movl %eax, 0x80(%rsp) movl 0x84(%rsp), %eax imull 0x80(%rsp), %eax movl %eax, 0...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_pack8to4_int8.h
ncnn::conv1x1s2_sgemm_pack8to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s2_sgemm_pack8to4_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Option& opt) { int w = bottom_blob.w; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; int elempack = bottom_blob.elempack; int outw = top_blob.w; int outh = top_bl...
subq $0x348, %rsp # imm = 0x348 movq %rdi, 0x1a8(%rsp) movq %rsi, 0x1a0(%rsp) movq %rdx, 0x198(%rsp) movq %rcx, 0x190(%rsp) movq 0x1a8(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x18c(%rsp) movq 0x1a8(%rsp), %rax movl 0x38(%rax), %eax movl %eax, 0x188(%rsp) movq 0x1a8(%rsp), %rax movq 0x10(%rax), %rax movq...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_pack8to4_int8.h
ncnn::convolution_im2col_sgemm_pack8to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, int, int, int, int, int, int, ncnn::Option const&)
static void convolution_im2col_sgemm_pack8to4_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, int kernel_w, int kernel_h, int dilation_w, int dilation_h, int stride_w, int stride_h, const Option& opt) { int w = bottom_blob.w; int inch = bottom_blob.c; int outw = top_blob.w; int outh ...
subq $0x3a8, %rsp # imm = 0x3A8 movq 0x3c8(%rsp), %rax movl 0x3c0(%rsp), %eax movl 0x3b8(%rsp), %eax movl 0x3b0(%rsp), %eax movq %rdi, 0x1b8(%rsp) movq %rsi, 0x1b0(%rsp) movq %rdx, 0x1a8(%rsp) movl %ecx, 0x1a4(%rsp) movl %r8d, 0x1a0(%rsp) movl %r9d, 0x19c(%rsp) movq 0x1b8(%rsp), %rax movl 0x2c(%rax), %eax mo...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm_pack8to4_int8.h
ncnn::convolution_pack8to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, int, int, int, int, int, int, ncnn::Option const&)
static void convolution_pack8to4_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& weight_data_int8, int kernel_w, int kernel_h, int dilation_w, int dilation_h, int stride_w, int stride_h, const Option& opt) { int w = bottom_blob.w; int channels = bottom_blob.c; int outw = top_blob.w; int outh...
subq $0xc38, %rsp # imm = 0xC38 movq 0xc58(%rsp), %rax movl 0xc50(%rsp), %eax movl 0xc48(%rsp), %eax movl 0xc40(%rsp), %eax movq %rdi, 0x3f0(%rsp) movq %rsi, 0x3e8(%rsp) movq %rdx, 0x3e0(%rsp) movl %ecx, 0x3dc(%rsp) movl %r8d, 0x3d8(%rsp) movl %r9d, 0x3d4(%rsp) movq 0x3f0(%rsp), %rax movl 0x2c(%rax), %eax mo...
/ysh329[P]ncnn/src/layer/x86/convolution_pack8to4_int8.h
ncnn::conv1x1s1_sgemm_pack1to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s1_sgemm_pack1to4_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Option& opt) { int w = bottom_blob.w; int h = bottom_blob.h; const int size = w * h; Mat bottom_im2col = bottom_blob; bottom_im2col.w = size; bottom_im2col.h = 1; im2col_sgemm_pack...
subq $0x108, %rsp # imm = 0x108 movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq %rdx, 0x90(%rsp) movq %rcx, 0x88(%rsp) movq 0xa0(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x84(%rsp) movq 0xa0(%rsp), %rax movl 0x30(%rax), %eax movl %eax, 0x80(%rsp) movl 0x84(%rsp), %eax imull 0x80(%rsp), %eax movl %eax, 0...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_pack1to4_int8.h
ncnn::conv1x1s2_sgemm_pack1to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s2_sgemm_pack1to4_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Option& opt) { int w = bottom_blob.w; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; int elempack = bottom_blob.elempack; int outw = top_blob.w; int outh = top_bl...
subq $0x348, %rsp # imm = 0x348 movq %rdi, 0x1a8(%rsp) movq %rsi, 0x1a0(%rsp) movq %rdx, 0x198(%rsp) movq %rcx, 0x190(%rsp) movq 0x1a8(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x18c(%rsp) movq 0x1a8(%rsp), %rax movl 0x38(%rax), %eax movl %eax, 0x188(%rsp) movq 0x1a8(%rsp), %rax movq 0x10(%rax), %rax movq...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_pack1to4_int8.h
ncnn::conv3x3s1_pack1to4_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Option const&)
static void conv3x3s1_pack1to4_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Option& opt) { int w = bottom_blob.w; int inch = bottom_blob.c; int outw = top_blob.w; int outh = top_blob.h; const int size = outw * outh; const int maxk = 9; // im2col Mat bottom_...
subq $0x398, %rsp # imm = 0x398 movq %rdi, 0x1a8(%rsp) movq %rsi, 0x1a0(%rsp) movq %rdx, 0x198(%rsp) movq %rcx, 0x190(%rsp) movq 0x1a8(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x18c(%rsp) movq 0x1a8(%rsp), %rax movl 0x38(%rax), %eax movl %eax, 0x188(%rsp) movq 0x1a0(%rsp), %rax movl 0x2c(%rax), %eax movl...
/ysh329[P]ncnn/src/layer/x86/convolution_3x3_pack1to4_int8.h
ncnn::convolution_pack8to1_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, int, int, int, int, int, int, ncnn::Option const&)
static void convolution_pack8to1_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& weight_data_int8, int kernel_w, int kernel_h, int dilation_w, int dilation_h, int stride_w, int stride_h, const Option& opt) { int w = bottom_blob.w; int channels = bottom_blob.c; int outw = top_blob.w; int outh...
subq $0x648, %rsp # imm = 0x648 movq 0x668(%rsp), %rax movl 0x660(%rsp), %eax movl 0x658(%rsp), %eax movl 0x650(%rsp), %eax movq %rdi, 0x2a0(%rsp) movq %rsi, 0x298(%rsp) movq %rdx, 0x290(%rsp) movl %ecx, 0x28c(%rsp) movl %r8d, 0x288(%rsp) movl %r9d, 0x284(%rsp) movq 0x2a0(%rsp), %rax movl 0x2c(%rax), %eax mo...
/ysh329[P]ncnn/src/layer/x86/convolution_pack8to1_int8.h
ncnn::conv1x1s1_sgemm_int8_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s1_sgemm_int8_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Option& opt) { int w = bottom_blob.w; int h = bottom_blob.h; const int size = w * h; Mat bottom_im2col = bottom_blob; bottom_im2col.w = size; bottom_im2col.h = 1; im2col_sgemm_int8_sse(bott...
subq $0x108, %rsp # imm = 0x108 movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movq %rdx, 0x90(%rsp) movq %rcx, 0x88(%rsp) movq 0xa0(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x84(%rsp) movq 0xa0(%rsp), %rax movl 0x30(%rax), %eax movl %eax, 0x80(%rsp) movl 0x84(%rsp), %eax imull 0x80(%rsp), %eax movl %eax, 0...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_int8.h
ncnn::convolution_transform_kernel_packed_sse(ncnn::Mat const&, ncnn::Mat&, int, int, int, int, int, int)
static void convolution_transform_kernel_packed_sse(const Mat& weight_data, Mat& weight_data_tm, int num_input, int num_output, int kernel_w, int kernel_h, int elempack, int out_elempack) { const int maxk = kernel_w * kernel_h; // src = kw-kh-inch-outch // dst = pb-pa-kw-kh-inch/pa-outch/pb { M...
subq $0x358, %rsp # imm = 0x358 movl 0x368(%rsp), %eax movl 0x360(%rsp), %eax movq %rdi, 0x198(%rsp) movq %rsi, 0x190(%rsp) movl %edx, 0x18c(%rsp) movl %ecx, 0x188(%rsp) movl %r8d, 0x184(%rsp) movl %r9d, 0x180(%rsp) movl 0x184(%rsp), %eax movl 0x180(%rsp), %ecx imull %ecx, %eax movl %eax, 0x17c(%rsp) movq 0x...
/ysh329[P]ncnn/build_O0/src/layer/x86/convolution_x86_fma.cpp
ncnn::convolution_im2col_sgemm_transform_kernel_pack8to4_avx(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void convolution_im2col_sgemm_transform_kernel_pack8to4_avx(const Mat& _kernel, Mat& kernel_tm, int inch, int outch, int kernel_w, int kernel_h) { const int maxk = kernel_w * kernel_h; // interleave // src = maxk-inch-outch // dst = 8b-8a-maxk-inch/8a-outch/8b Mat kernel = _kernel.reshape(ma...
subq $0x5d8, %rsp # imm = 0x5D8 movq %rdi, 0x2a0(%rsp) movq %rsi, 0x298(%rsp) movl %edx, 0x294(%rsp) movl %ecx, 0x290(%rsp) movl %r8d, 0x28c(%rsp) movl %r9d, 0x288(%rsp) movl 0x28c(%rsp), %eax movl 0x288(%rsp), %ecx imull %ecx, %eax movl %eax, 0x284(%rsp) movq 0x2a0(%rsp), %rsi movl 0x284(%rsp), %edx movl 0x...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm_pack8to4.h
ncnn::convolution_im2col_sgemm_transform_kernel_pack1to4_sse(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void convolution_im2col_sgemm_transform_kernel_pack1to4_sse(const Mat& _kernel, Mat& kernel_tm, int inch, int outch, int kernel_w, int kernel_h) { const int maxk = kernel_w * kernel_h; // interleave // src = maxk-inch-outch // dst = 4b-4a-maxk-inch/4a-outch/4b Mat kernel = _kernel.reshape(ma...
subq $0x748, %rsp # imm = 0x748 movq %rdi, 0x2f8(%rsp) movq %rsi, 0x2f0(%rsp) movl %edx, 0x2ec(%rsp) movl %ecx, 0x2e8(%rsp) movl %r8d, 0x2e4(%rsp) movl %r9d, 0x2e0(%rsp) movl 0x2e4(%rsp), %eax movl 0x2e0(%rsp), %ecx imull %ecx, %eax movl %eax, 0x2dc(%rsp) movq 0x2f8(%rsp), %rsi movl 0x2dc(%rsp), %edx movl 0x...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm_pack1to4.h
ncnn::convolution_im2col_sgemm_transform_kernel_sse(ncnn::Mat const&, ncnn::Mat&, int, int, int, int)
static void convolution_im2col_sgemm_transform_kernel_sse(const Mat& _kernel, Mat& kernel_tm, int inch, int outch, int kernel_w, int kernel_h) { const int maxk = kernel_w * kernel_h; // interleave // src = maxk-inch-outch // dst = 8b-maxk-inch-outch/8b Mat kernel = _kernel.reshape(maxk, inch, outch...
pushq %rbx subq $0x1580, %rsp # imm = 0x1580 movq %rdi, 0x850(%rsp) movq %rsi, 0x848(%rsp) movl %edx, 0x844(%rsp) movl %ecx, 0x840(%rsp) movl %r8d, 0x83c(%rsp) movl %r9d, 0x838(%rsp) movl 0x83c(%rsp), %eax movl 0x838(%rsp), %ecx imull %ecx, %eax movl %eax, 0x834(%rsp) movq 0x850(%rsp), %rsi movl 0x834(%rsp), ...
/ysh329[P]ncnn/src/layer/x86/convolution_sgemm.h
ncnn::conv3x3s1_winograd43_transform_kernel_sse(ncnn::Mat const&, ncnn::Mat&, int, int, ncnn::Option const&)
static void conv3x3s1_winograd43_transform_kernel_sse(const Mat& kernel, Mat& kernel_tm2, int inch, int outch, const Option& opt) { Mat kernel_tm(6 * 6, inch, outch); // G const float ktm[6][3] = { {1.0f / 4, 0.0f, 0.0f}, {-1.0f / 6, -1.0f / 6, -1.0f / 6}, {-1.0f / 6, 1.0f / 6, -1.0...
subq $0xa88, %rsp # imm = 0xA88 movq %rdi, 0x4e0(%rsp) movq %rsi, 0x4d8(%rsp) movl %edx, 0x4d4(%rsp) movl %ecx, 0x4d0(%rsp) movq %r8, 0x4c8(%rsp) movl 0x4d4(%rsp), %ecx movl 0x4d0(%rsp), %eax leaq 0x480(%rsp), %rdx movq %rdx, 0x888(%rsp) movl $0x24, 0x884(%rsp) movl %ecx, 0x880(%rsp) movl %eax, 0x87c(%rsp) m...
/ysh329[P]ncnn/src/layer/x86/convolution_3x3.h
ncnn::conv3x3s1_winograd23_transform_kernel_sse(ncnn::Mat const&, ncnn::Mat&, int, int, ncnn::Option const&)
static void conv3x3s1_winograd23_transform_kernel_sse(const Mat& kernel, Mat& kernel_tm2, int inch, int outch, const Option& opt) { Mat kernel_tm(4 * 4, inch, outch); // G const float ktm[4][3] = { {1.0f, 0.0f, 0.0f}, {1.0f / 2, 1.0f / 2, 1.0f / 2}, {1.0f / 2, -1.0f / 2, 1.0f / 2}, ...
subq $0xa58, %rsp # imm = 0xA58 movq %rdi, 0x4b0(%rsp) movq %rsi, 0x4a8(%rsp) movl %edx, 0x4a4(%rsp) movl %ecx, 0x4a0(%rsp) movq %r8, 0x498(%rsp) movl 0x4a4(%rsp), %ecx movl 0x4a0(%rsp), %eax leaq 0x450(%rsp), %rdx movq %rdx, 0x858(%rsp) movl $0x10, 0x854(%rsp) movl %ecx, 0x850(%rsp) movl %eax, 0x84c(%rsp) m...
/ysh329[P]ncnn/src/layer/x86/convolution_3x3.h
virtual thunk to ncnn::Convolution_x86_fma::create_pipeline(ncnn::Option const&)
int Convolution_x86_fma::create_pipeline(const Option& opt) { if (dynamic_weight) return 0; activation = create_activation_layer(activation_type, activation_params, opt); #if NCNN_INT8 if (opt.use_int8_inference && weight_data.elemsize == (size_t)1u) { return create_pipeline_int8_x86(o...
movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) movq -0x8(%rsp), %rdi movq (%rdi), %rax movq -0x30(%rax), %rax addq %rax, %rdi movq -0x10(%rsp), %rsi jmp 0x4b70b0 nopw %cs:(%rax,%rax)
/ysh329[P]ncnn/build_O0/src/layer/x86/convolution_x86_fma.cpp
ncnn::Convolution_x86_fma::destroy_pipeline(ncnn::Option const&)
int Convolution_x86_fma::destroy_pipeline(const Option& opt) { if (activation) { activation->destroy_pipeline(opt); delete activation; activation = 0; } if (convolution_dilation1) { convolution_dilation1->destroy_pipeline(opt); delete convolution_dilation1; ...
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x10(%rsp) cmpq $0x0, 0x8(%rax) je 0x4e211f movq 0x10(%rsp), %rax movq 0x8(%rax), %rdi movq 0x18(%rsp), %rsi movq (%rdi), %rax callq *0x28(%rax) movq 0x10(%rsp), %rax movq 0x8(%rax), %rax movq %rax, 0x8(%rsp) cmpq $0x0, %rax j...
/ysh329[P]ncnn/build_O0/src/layer/x86/convolution_x86_fma.cpp
virtual thunk to ncnn::Convolution_x86_fma::destroy_pipeline(ncnn::Option const&)
int Convolution_x86_fma::destroy_pipeline(const Option& opt) { if (activation) { activation->destroy_pipeline(opt); delete activation; activation = 0; } if (convolution_dilation1) { convolution_dilation1->destroy_pipeline(opt); delete convolution_dilation1; ...
movq %rdi, -0x8(%rsp) movq %rsi, -0x10(%rsp) movq -0x8(%rsp), %rdi movq (%rdi), %rax movq -0x38(%rax), %rax addq %rax, %rdi movq -0x10(%rsp), %rsi jmp 0x4e20c0 nopw %cs:(%rax,%rax)
/ysh329[P]ncnn/build_O0/src/layer/x86/convolution_x86_fma.cpp
ncnn::Convolution_x86_fma::forward_int8_x86(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Convolution_x86_fma::forward_int8_x86(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int elembits = bottom_blob.elembits(); Mat bottom_blob_int8 = bottom_blob; if (elembits != 8) { Option opt_q = opt; opt_q.blob_allocator = opt.workspace_allocator; quantiz...
subq $0x398, %rsp # imm = 0x398 movq %rdi, 0x260(%rsp) movq %rsi, 0x258(%rsp) movq %rdx, 0x250(%rsp) movq %rcx, 0x248(%rsp) movq 0x260(%rsp), %rax movq %rax, 0xc0(%rsp) movq 0x258(%rsp), %rax movq %rax, 0x328(%rsp) movq 0x328(%rsp), %rax movq %rax, 0xc8(%rsp) cmpl $0x0, 0x18(%rax) je 0x4e8afa movq 0xc8(%rsp)...
/ysh329[P]ncnn/build_O0/src/layer/x86/convolution_x86_fma.cpp
ncnn::Convolution_x86_fma::forwardDilation_x86(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Convolution_x86_fma::forwardDilation_x86(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; size_t elemsize = bottom_blob.elemsize; const int kernel_size = kernel_w; const int stride = stride_w; const int dilation = dilation_w; ...
subq $0x7c8, %rsp # imm = 0x7C8 movq %rdi, 0x3d8(%rsp) movq %rsi, 0x3d0(%rsp) movq %rdx, 0x3c8(%rsp) movq %rcx, 0x3c0(%rsp) movq 0x3d8(%rsp), %rax movq %rax, 0x118(%rsp) movq 0x3d0(%rsp), %rcx movl 0x2c(%rcx), %ecx movl %ecx, 0x3bc(%rsp) movq 0x3d0(%rsp), %rcx movl 0x30(%rcx), %ecx movl %ecx, 0x3b8(%rsp) mov...
/ysh329[P]ncnn/build_O0/src/layer/x86/convolution_x86_fma.cpp
ncnn::conv1x1s1_sgemm_pack8_avx(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s1_sgemm_pack8_avx(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Mat& _bias, const Option& opt) { int w = bottom_blob.w; int h = bottom_blob.h; const int size = w * h; Mat bottom_im2col = bottom_blob; bottom_im2col.w = size; bottom_im2col.h = 1; im2col_...
subq $0x118, %rsp # imm = 0x118 movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq %rdx, 0xa0(%rsp) movq %rcx, 0x98(%rsp) movq %r8, 0x90(%rsp) movq 0xb0(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x8c(%rsp) movq 0xb0(%rsp), %rax movl 0x30(%rax), %eax movl %eax, 0x88(%rsp) movl 0x8c(%rsp), %eax imull 0x88(%rs...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_pack8.h
ncnn::conv1x1s2_sgemm_pack8_avx(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Option const&)
static void conv1x1s2_sgemm_pack8_avx(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Mat& _bias, const Option& opt) { int w = bottom_blob.w; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; int elempack = bottom_blob.elempack; int outw = top_blob.w; int out...
pushq %rbp movq %rsp, %rbp andq $-0x20, %rsp subq $0x420, %rsp # imm = 0x420 movq %rdi, 0x1e8(%rsp) movq %rsi, 0x1e0(%rsp) movq %rdx, 0x1d8(%rsp) movq %rcx, 0x1d0(%rsp) movq %r8, 0x1c8(%rsp) movq 0x1e8(%rsp), %rax movl 0x2c(%rax), %eax movl %eax, 0x1c4(%rsp) movq 0x1e8(%rsp), %rax movl 0x38(%rax), %eax movl ...
/ysh329[P]ncnn/src/layer/x86/convolution_1x1_pack8.h