name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
virtual thunk to ncnn::ELU_x86_fma::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int ELU_x86_fma::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * elempack; #pragma omp parallel for num_threads(opt.num_threads) ...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x1a1404 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O1/src/layer/x86/elu_x86_fma.cpp
ncnn::InnerProduct_x86_fma::create_pipeline(ncnn::Option const&)
int InnerProduct_x86_fma::create_pipeline(const Option& opt) { // if (opt.use_packing_layout) { flatten = ncnn::create_layer(ncnn::LayerType::Flatten); ncnn::ParamDict pd; flatten->load_param(pd); flatten->create_pipeline(opt); } #if NCNN_INT8 if (opt.use_int8_inf...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x118, %rsp # imm = 0x118 movq %rsi, %rbx movq %rdi, %r13 movl $0xe, %edi callq 0x7b29d movq %rax, 0x8(%r13) leaq 0x90(%rsp), %r15 movq %r15, %rdi callq 0x71474 movq 0x8(%r13), %rdi movq (%rdi), %rax movq %r15, %rsi callq *0x10(%rax) mov...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/innerproduct_x86_fma.cpp
virtual thunk to ncnn::InnerProduct_x86_fma::create_pipeline(ncnn::Option const&)
int InnerProduct_x86_fma::create_pipeline(const Option& opt) { // if (opt.use_packing_layout) { flatten = ncnn::create_layer(ncnn::LayerType::Flatten); ncnn::ParamDict pd; flatten->load_param(pd); flatten->create_pipeline(opt); } #if NCNN_INT8 if (opt.use_int8_inf...
pushq %rax movq (%rdi), %rax addq -0x30(%rax), %rdi callq 0x1e1486 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O1/src/layer/x86/innerproduct_x86_fma.cpp
ncnn::InnerProduct_x86_avx::create_pipeline_fp16s(ncnn::Option const&)
int InnerProduct_x86_avx::create_pipeline_fp16s(const Option& opt) { const int num_input = weight_data_size / num_output; innerproduct_transform_kernel_fp16s_sse(weight_data, weight_data_tm, num_input, num_output, opt); if (opt.lightmode) { weight_data.release(); } return 0; }
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rax movq -0x18(%rax), %r15 movl 0xd0(%rdi,%r15), %ebp movl 0xd8(%rdi,%r15), %r12d callq 0x73416 testl %eax, %eax je 0x1fce53 addq %rbx, %r15 leaq 0x10(%rbx), %rsi addq $0x130, %r15 # imm = 0x130 movl %r12d, %...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/innerproduct_x86_avx.cpp
virtual thunk to ncnn::LRN_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int LRN_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int channels = bottom_top_blob.c; size_t elemsize = bottom_top_blob.elemsize; int size = w * h; // squared values with local_size padding Mat square_blob; ...
movq (%rdi), %rax addq -0x58(%rax), %rdi jmp 0x21c2ac
/csukuangfj[P]ncnn/build_O1/src/layer/x86/lrn_x86_avx.cpp
virtual thunk to ncnn::Pooling_x86_fma::create_pipeline(ncnn::Option const&)
int Pooling_x86_fma::create_pipeline(const Option& /*opt*/) { if (adaptive_pooling) { support_packing = false; support_bf16_storage = false; support_fp16_storage = false; support_int8_storage = false; support_tensor_storage = false; } return 0; }
movq (%rdi), %rax movq -0x30(%rax), %rcx leaq (%rdi,%rcx), %rax movq (%rdi,%rcx), %rcx movq -0x18(%rcx), %rdx cmpl $0x0, 0x100(%rdx,%rax) je 0x222e92 xorl %esi, %esi movb %sil, 0xb(%rax,%rdx) movq -0x18(%rcx), %rdx movb %sil, 0xc(%rax,%rdx) movq -0x18(%rcx), %rdx movb %sil, 0xd(%rax,%rdx) movq -0x18(%rcx), %rdx movb %s...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/pooling_x86_fma.cpp
ncnn::pooling3x3s2_max_pack8_avx(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
static void pooling3x3s2_max_pack8_avx(const Mat& bottom_blob, Mat& top_blob, 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 tailstep = (w - 2 * outw + w) * 8; #pragma omp parallel for num_threads(opt.num_threads) ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, -0x10(%rsp) movq %rdi, -0x18(%rsp) movslq 0x38(%rdi), %rax movq %rax, -0x8(%rsp) testq %rax, %rax jle 0x22492d movq -0x10(%rsp), %rax movl 0x2c(%rax), %ecx movl 0x30(%rax), %edx movq -0x18(%rsp), %rax movl 0x2c(%rax), %eax subl %ecx, %eax shll...
/csukuangfj[P]ncnn/src/layer/x86/pooling_3x3_pack8.h
ncnn::pooling2x2s2_max_pack8_avx(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
static void pooling2x2s2_max_pack8_avx(const Mat& bottom_blob, Mat& top_blob, 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 tailstep = (w - 2 * outw + w) * 8; #pragma omp parallel for num_threads(opt.num_threads) ...
movslq 0x38(%rdi), %rax testq %rax, %rax jle 0x2264a4 pushq %rbp pushq %r14 pushq %rbx movl 0x2c(%rsi), %ecx movl 0x30(%rsi), %edx movl 0x2c(%rdi), %r8d subl %ecx, %r8d shll $0x4, %r8d movslq %r8d, %r8 xorl %r9d, %r9d testl %edx, %edx jle 0x226498 movq 0x40(%rdi), %r10 imulq %r9, %r10 movq 0x10(%rdi), %rbx imulq %rbx, ...
/csukuangfj[P]ncnn/src/layer/x86/pooling_2x2_pack8.h
ncnn::PReLU_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int PReLU_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int dims = bottom_top_blob.dims; int w = bottom_top_blob.w; int h = bottom_top_blob.h; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; if (dims == 1) { const int size = w *...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movl 0x18(%rsi), %eax movl 0x28(%rsi), %r8d movl 0x2c(%rsi), %ecx movl 0x30(%rsi), %edx movq %rdx, -0x10(%rsp) movl 0x38(%rsi), %edx cmpl $0x3, %r8d je 0x228b24 cmpl $0x2, %r8d je 0x228894 cmpl $0x1, %r8d jne 0x228d95 movl %eax, %r11d imull %ecx, %r11d m...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/prelu_x86_avx.cpp
ncnn::ReLU_x86::forward_inplace_int8(ncnn::Mat&, ncnn::Option const&) const
int ReLU_x86::forward_inplace_int8(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int size = w * h * d; int elempack = bottom_top_blob.elempack; #if __SSE2__ if (elempack == ...
movl 0x30(%rsi), %eax imull 0x2c(%rsi), %eax imull 0x34(%rsi), %eax movq (%rdi), %rcx movq -0x18(%rcx), %rcx xorps %xmm0, %xmm0 ucomiss 0xd0(%rdi,%rcx), %xmm0 movl 0x38(%rsi), %edx movl %edx, %ecx sete %dil testl %edx, %edx setg %dl andb %dil, %dl cmpl $0x8, 0x18(%rsi) jne 0x242efe testb %dl, %dl je 0x242f39 movl %eax,...
/csukuangfj[P]ncnn/src/layer/x86/relu_x86.cpp
ncnn::ROIPooling::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int ROIPooling::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& bottom_blob = bottom_blobs[0]; int w = bottom_blob.w; int h = bottom_blob.h; size_t elemsize = bottom_blob.elemsize; int channels = bottom_blob.c; const Mat& roi_blob...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rdi, %r14 movq (%rsi), %rbx movslq 0x2c(%rbx), %rax movq %rax, 0x20(%rsp) movslq 0x30(%rbx), %rax movq %rax, 0x78(%rsp) movq 0x10(%rbx), %r8 movl 0x38(%rbx), %eax movq (%rdx), %r15 movl 0xd0(%rdi), %esi movl 0xd4(%rdi), %edx movq 0...
/csukuangfj[P]ncnn/src/layer/roipooling.cpp
virtual thunk to ncnn::Sigmoid_x86_avx512::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Sigmoid_x86_avx512::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp p...
pushq %rax callq 0x24fa1c xorl %eax, %eax popq %rcx retq
/csukuangfj[P]ncnn/build_O1/src/layer/x86/sigmoid_x86_avx512.cpp
ncnn::Sigmoid_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Sigmoid_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp para...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xd8, %rsp movslq 0x38(%rsi), %rax movq %rax, 0x38(%rsp) testq %rax, %rax jle 0x250e00 movq %rsi, %rbx movl 0x30(%rsi), %ebp imull 0x2c(%rsi), %ebp imull 0x34(%rsi), %ebp imull 0x18(%rsi), %ebp movl %ebp, %eax andl $-0x8, %eax movl %eax, 0x1c(%rsp)...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/sigmoid_x86_avx.cpp
virtual thunk to ncnn::LSTM_x86::create_pipeline(ncnn::Option const&)
int LSTM_x86::create_pipeline(const Option& opt) { // pack IFOG int num_directions = direction == 2 ? 2 : 1; int size = weight_data_size / num_directions / hidden_size / 4; #if __AVX__ weight_xc_data_packed.create(size, hidden_size / 2 + hidden_size % 2, num_directions, 32u, 8); bias_c_data_packed....
pushq %rax movq (%rdi), %rax addq -0x30(%rax), %rdi callq 0x286018 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/src/layer/x86/lstm_x86.cpp
ncnn::lstm(ncnn::Mat const&, ncnn::Mat&, int, ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, ncnn::Mat&, ncnn::Option const&)
static int lstm(const Mat& bottom_blob, Mat& top_blob, int reverse, const Mat& weight_xc, const Mat& bias_c, const Mat& weight_hc, const Mat& weight_hr, Mat& hidden_state, Mat& cell_state, const Option& opt) { int size = bottom_blob.w; int T = bottom_blob.h; int num_output = top_blob.w; int hidden_size...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x158, %rsp # imm = 0x158 movq %r9, %r15 movq %r8, %r13 movq %rcx, 0x88(%rsp) movl %edx, 0x20(%rsp) movq 0x1a8(%rsp), %rdx movq 0x1a0(%rsp), %rax movl 0x2c(%rdi), %r14d movq %rdi, 0x80(%rsp) movl 0x30(%rdi), %ecx movl %ecx, 0xc(%rsp) mov...
/csukuangfj[P]ncnn/src/layer/x86/lstm_x86.cpp
ncnn::LSTM_x86_avx512::create_pipeline(ncnn::Option const&)
int LSTM_x86_avx512::create_pipeline(const Option& opt) { // pack IFOG int num_directions = direction == 2 ? 2 : 1; int size = weight_data_size / num_directions / hidden_size / 4; #if __AVX__ weight_xc_data_packed.create(size, hidden_size / 2 + hidden_size % 2, num_directions, 32u, 8); bias_c_data_...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x158, %rsp # imm = 0x158 movq %rsi, 0xf0(%rsp) movq %rdi, %rbx movq (%rdi), %rax movq -0x18(%rax), %rcx movl 0xd4(%rdi,%rcx), %eax xorl %r14d, %r14d cmpl $0x2, 0xd8(%rdi,%rcx) sete %r14b incl %r14d cltd idivl %r14d movl 0xdc(%rdi,%rcx),...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/lstm_x86_avx512.cpp
ncnn::lstm(ncnn::Mat const&, ncnn::Mat&, int, ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, ncnn::Mat&, ncnn::Option const&)
static int lstm(const Mat& bottom_blob, Mat& top_blob, int reverse, const Mat& weight_xc, const Mat& bias_c, const Mat& weight_hc, const Mat& weight_hr, Mat& hidden_state, Mat& cell_state, const Option& opt) { int size = bottom_blob.w; int T = bottom_blob.h; int num_output = top_blob.w; int hidden_size...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1b8, %rsp # imm = 0x1B8 movq %r9, %r13 movq %r8, %r15 movq %rcx, 0xa8(%rsp) movl %edx, 0x2c(%rsp) movq 0x208(%rsp), %rbx movq 0x200(%rsp), %rax movl 0x2c(%rdi), %ebp movq %rdi, 0xa0(%rsp) movl 0x30(%rdi), %ecx movl %ecx, 0x4(%rsp) movq...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/lstm_x86_fma.cpp
ncnn::BinaryOp_x86::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
__m256 func_pack8(const __m256& x, const __m256& y) const { return atan2256_ps(x, y); }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq (%rsi), %rax leaq 0x48(%rax), %r15 movl 0x28(%rax), %r8d movl 0x78(%rax), %esi imull 0x74(%rax), %esi imull 0x7c(%rax), %esi imull 0x80(%rax), %esi imull 0x60(%rax), %esi cmpl 0x70(%rax), %r8d jge 0x2a3df5 movb $0x1, %r8b cmpl $0x1,...
/csukuangfj[P]ncnn/src/layer/x86/binaryop_x86.cpp
ncnn::binary_op_broadcast_inner(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, int, ncnn::Option const&)
static int binary_op_broadcast_inner(const Mat& a, const Mat& b, Mat& c, int op_type, const Option& opt) { // squeeze inner axes Mat b2 = b; if (b.dims == 2 && b.w == 1) b2 = b.reshape(b.h); else if (b.dims == 3 && b.h == 1) b2 = b.reshape(b.c); else if (b.dims == 3 && b.w == 1) ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x128, %rsp # imm = 0x128 movl %ecx, %ebp movq %rdx, 0x28(%rsp) movq %rdi, 0x10(%rsp) movq (%rsi), %rbx movq 0x8(%rsi), %r12 movq 0x10(%rsi), %rax movq %rax, 0x50(%rsp) movq 0x20(%rsi), %r14 movq 0x28(%rsi), %xmm0 movdqa %xmm0, 0x80(%rsp...
/csukuangfj[P]ncnn/src/layer/x86/binaryop_x86.cpp
int ncnn::binary_op_no_broadcast<ncnn::BinaryOp_x86_avx512_functor::binary_op_atan2>(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
static int binary_op_no_broadcast(const Mat& a, const Mat& b, Mat& c, const Option& opt) { Op op; const int channels = a.c; const int size = a.w * a.h * a.d * a.elempack; #pragma omp parallel for num_threads(opt.num_threads) for (int q = 0; q < channels; q++) { const float* ptr = a.cha...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx andq $-0x20, %rsp subq $0xa0, %rsp movq %rdx, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq %rdi, 0x18(%rsp) movslq 0x38(%rdi), %rax movq %rax, 0x20(%rsp) testq %rax, %rax jle 0x2c1ab5 movq 0x18(%rsp), %rax movl 0x30(%rax), %edi imull 0x2c(%rax),...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/binaryop_x86_avx512.cpp
ncnn::binary_op_broadcast_inner(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, int, ncnn::Option const&)
static int binary_op_broadcast_inner(const Mat& a, const Mat& b, Mat& c, int op_type, const Option& opt) { // squeeze inner axes Mat b2 = b; if (b.dims == 2 && b.w == 1) b2 = b.reshape(b.h); else if (b.dims == 3 && b.h == 1) b2 = b.reshape(b.c); else if (b.dims == 3 && b.w == 1) ...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx andq $-0x20, %rsp subq $0x1a0, %rsp # imm = 0x1A0 movl %ecx, %r13d movq %rdx, 0x48(%rsp) movq %rdi, 0x20(%rsp) movq (%rsi), %r12 movq 0x8(%rsi), %rcx movq 0x10(%rsi), %rax movq %rax, 0x80(%rsp) movq 0x20(%rsi), %rax movq %rax, ...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/binaryop_x86_avx.cpp
ncnn::binary_op_broadcast_outer(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, int, ncnn::Option const&)
static int binary_op_broadcast_outer(const Mat& a, const Mat& b, Mat& c, int op_type, const Option& opt) { using namespace BinaryOp_x86_avx_functor; if (op_type == BinaryOp::Operation_ADD) return binary_op_broadcast_outer<binary_op_add>(a, b, c, opt); if (op_type == BinaryOp::Operation_SUB) return binary_o...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx andq $-0x20, %rsp subq $0xe0, %rsp movq %rdx, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdi, 0x28(%rsp) cmpl $0xb, %ecx ja 0x2dc669 movl %ecx, %eax leaq 0x1c3a89(%rip), %rcx # 0x49db0c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/binaryop_x86_avx.cpp
ncnn::BinaryOp_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int BinaryOp_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { using namespace BinaryOp_x86_avx_functor; if (op_type == Operation_ADD) return binary_op_scalar_inplace<binary_op_add>(bottom_top_blob, b, opt); if (op_type == Operation_SUB) return binary_op_scalar_inplace<binary_op_sub...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx andq $-0x20, %rsp subq $0x240, %rsp # imm = 0x240 movq (%rdi), %rax movq -0x18(%rax), %r8 movl 0xd0(%rdi,%r8), %eax cmpq $0xb, %rax ja 0x2df0d2 leaq 0x1c0340(%rip), %rcx # 0x49db6c movslq (%rcx,%rax,4), %rax addq %rcx, %rax ...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/binaryop_x86_avx.cpp
int ncnn::binary_op_no_broadcast<ncnn::BinaryOp_x86_avx_functor::binary_op_sub>(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
static int binary_op_no_broadcast(const Mat& a, const Mat& b, Mat& c, const Option& opt) { Op op; const int channels = a.c; const int size = a.w * a.h * a.d * a.elempack; #pragma omp parallel for num_threads(opt.num_threads) for (int q = 0; q < channels; q++) { const float* ptr = a.cha...
movslq 0x38(%rdi), %rax testq %rax, %rax jle 0x2df1f1 pushq %rbp pushq %r15 pushq %r14 pushq %rbx movl 0x30(%rdi), %ecx imull 0x2c(%rdi), %ecx imull 0x34(%rdi), %ecx imull 0x18(%rdi), %ecx movl %ecx, %r8d andl $-0x8, %r8d xorl %r9d, %r9d movq 0x40(%rdi), %r10 imulq %r9, %r10 imulq 0x10(%rdi), %r10 addq (%rdi), %r10 mov...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/binaryop_x86_avx.cpp
int ncnn::binary_op_no_broadcast<ncnn::BinaryOp_x86_avx_functor::binary_op_atan2>(ncnn::Mat const&, ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&)
static int binary_op_no_broadcast(const Mat& a, const Mat& b, Mat& c, const Option& opt) { Op op; const int channels = a.c; const int size = a.w * a.h * a.d * a.elempack; #pragma omp parallel for num_threads(opt.num_threads) for (int q = 0; q < channels; q++) { const float* ptr = a.cha...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx andq $-0x20, %rsp subq $0xe0, %rsp movq %rsi, 0x68(%rsp) movq %rdi, 0x30(%rsp) movslq 0x38(%rdi), %rax movq %rax, 0x60(%rsp) testq %rax, %rax jle 0x2df85f movq %rdx, %r10 movq 0x30(%rsp), %rax movl 0x30(%rax), %r11d imull 0x2c(%rax), %r11...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/binaryop_x86_avx.cpp
ncnn::UnaryOp_x86::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int UnaryOp_x86::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { using namespace UnaryOp_x86_functor; if (op_type == Operation_ABS) return unary_op_inplace<unary_op_abs>(bottom_top_blob, opt); if (op_type == Operation_NEG) return unary_op_inplace<unary_op_neg>(bottom_top_bl...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rsi, (%rsp) movq (%rdi), %rax movq -0x18(%rax), %rax movl 0xd0(%rdi,%rax), %eax cmpq $0x11, %rax ja 0x2e24e4 leaq 0x1bd0eb(%rip), %rcx # 0x49dd80 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq (%rsp), %rax movslq 0x3...
/csukuangfj[P]ncnn/src/layer/x86/unaryop_x86.cpp
ncnn::UnaryOp_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int UnaryOp_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { using namespace UnaryOp_x86_avx_functor; if (op_type == Operation_ABS) return unary_op_inplace<unary_op_abs>(bottom_top_blob, opt); if (op_type == Operation_NEG) return unary_op_inplace<unary_op_neg>(botto...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx andq $-0x20, %rsp subq $0x140, %rsp # imm = 0x140 movq (%rdi), %rax movq -0x18(%rax), %rax movl 0xd0(%rdi,%rax), %eax cmpq $0x11, %rax ja 0x2ee5d1 leaq 0x1b38e1(%rip), %rcx # 0x49e9c4 movslq (%rcx,%rax,4), %rax addq %rcx, %r...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/unaryop_x86_avx.cpp
ncnn::UnaryOp_x86_avx_functor::unary_op_cos::func_pack8(float vector[8] const&) const
static NCNN_FORCEINLINE __m256 cos256_ps(__m256 x) { // any x __m256 xmm1, xmm2 = _mm256_setzero_ps(), xmm3, y; __m256i imm0, imm2; #ifndef __AVX2__ __m128i imm0_1, imm0_2; __m128i imm2_1, imm2_2; #endif /* take the absolute value */ x = _mm256_and_ps(x, *(__m256*)_ps256_inv_sign_mask); ...
vbroadcastss 0x1a72b1(%rip), %ymm0 # 0x495b44 vandps (%rsi), %ymm0, %ymm2 vbroadcastss 0x1af55c(%rip), %ymm0 # 0x49ddfc vmulps %ymm0, %ymm2, %ymm0 vcvttps2dq %ymm0, %ymm0 vpcmpeqd %xmm1, %xmm1, %xmm1 vpsubd %xmm1, %xmm0, %xmm3 vextractf128 $0x1, %ymm0, %xmm0 vpsubd %xmm1, %xmm0, %xmm0 vmovddup 0x1b0086(%rip), %xmm1 #...
/csukuangfj[P]ncnn/src/layer/x86/avx_mathfun.h
ncnn::ConvolutionDepthWise::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { // convolv with NxN kernel // value = value + bias #if NCNN_INT8 if (opt.use_int8_inference && weight_data.elemsize == (size_t)1u) { return forward_int8(bottom_blob, top_blob, opt); } #endif ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rcx, %r12 movq %rdx, %r15 movq %rdi, %r14 cmpb $0x1, 0x1e(%rcx) jne 0x2f10ed cmpq $0x1, 0x178(%r14) jne 0x2f10ed movq %r14, %rdi movq %r15, %rdx movq %r12, %rcx addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 pop...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise.cpp
ncnn::ConvolutionDepthWise::make_padding(ncnn::Mat const&, ncnn::Mat&, int, int, ncnn::Option const&) const
void ConvolutionDepthWise::make_padding(const Mat& bottom_blob, Mat& bottom_blob_bordered, int _kernel_w, int _kernel_h, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; const int kernel_extent_w = dilation_w * (_kernel_w - 1) + 1; const int kernel_extent_h = dilation_h * (_kern...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %r9, %r13 movl %r8d, %r12d movl %ecx, %ebp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r15 movl 0x2c(%rsi), %eax movl 0x30(%rsi), %r10d decl %ebp imull 0xdc(%rdi), %ebp decl %r12d imull 0xe0(%rdi), %r12d cmpq %rsi, %rdx je 0x2f308c ...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise.cpp
virtual thunk to ncnn::ConvolutionDepthWise_x86::create_pipeline(ncnn::Option const&)
int ConvolutionDepthWise_x86::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_...
pushq %rax movq (%rdi), %rax addq -0x30(%rax), %rdi callq 0x2f3340 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_x86.cpp
ncnn::ConvolutionDepthWise_x86::forward_int8_x86(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise_x86::forward_int8_x86(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int channels = bottom_blob.c; int elempack = bottom_blob.elempack; int elembits = bottom_blob.elembits(); const int kernel_extent_w = d...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x318, %rsp # imm = 0x318 movq %rcx, 0x18(%rsp) movq %rdx, %r12 movq %rsi, %r15 movq %rdi, %r14 movl 0x18(%rsi), %esi movl 0x38(%r15), %ecx testl %esi, %esi je 0x2f66e0 movl 0x10(%r15), %eax shll $0x3, %eax cltd idivl %esi cmpl $0x8, %ea...
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_x86.cpp
virtual thunk to ncnn::ConvolutionDepthWise_x86::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { #if NCNN_INT8 if (opt.use_int8_inference && int8_scale_term) { return forward_int8_x86(bottom_blob, top_blob, opt); } #endif int w = bottom_blob.w; int h = bottom_blob.h; int channels...
movq (%rdi), %rax addq -0x48(%rax), %rdi jmp 0x2f51ca
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_x86.cpp
ncnn::convdw3x3s1_int8_dequant_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, std::vector<float, std::allocator<float>>, ncnn::Option const&)
static void convdw3x3s1_int8_dequant_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& _kernel, const Mat& _bias, std::vector<float> scales_dequant, 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; ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movslq 0x38(%rsi), %rax movq %rax, -0x18(%rsp) testq %rax, %rax jle 0x2fba62 movq %r8, %r14 movl 0x2c(%rsi), %r9d movl 0x30(%rsi), %eax movl %eax, -0x78(%rsp) movq (%rdx), %rbx movq (%rcx), %r10 movslq 0x2c(%rdi), %r11 movslq 0x2c(%rsi), %rax movslq 0x30...
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_3x3_int8.h
ncnn::ConvolutionDepthWise_x86_avx512::create_pipeline_int8_x86(ncnn::Option const&)
int ConvolutionDepthWise_x86_avx512::create_pipeline_int8_x86(const Option& opt) { const int maxk = kernel_w * kernel_h; int channels = (weight_data_size / group) / maxk / (num_output / group) * group; // depth-wise if (channels == group && group == num_output) { int elempack = 1; #if __SSE...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rcx movq -0x18(%rcx), %rdx movl 0xd8(%rdi,%rdx), %r9d imull 0xd4(%rdi,%rdx), %r9d movl 0xd0(%rdi,%rdx), %esi movl 0x104(%rdi,%rdx), %eax movl 0x108(%rdi,%rdx), %r10d cltd idivl %r10d cltd idivl %r9d movl %eax, %ed...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/convolutiondepthwise_x86_avx512.cpp
ncnn::convdw3x3s1_pack8_avx(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Option const&)
static void convdw3x3s1_pack8_avx(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Mat& _bias, const Option& opt) { int w = bottom_blob.w; int outw = top_blob.w; int outh = top_blob.h; const int group = bottom_blob.c; const float* bias = _bias; #pragma omp parallel for num_thre...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, -0x18(%rsp) movq %rdi, -0x38(%rsp) movslq 0x38(%rdi), %rax movq %rax, -0x20(%rsp) testq %rax, %rax jle 0x304312 movq %rsi, %r11 movslq 0x2c(%rsi), %r8 movl 0x30(%rsi), %r9d movq (%rcx), %rcx movq -0x38(%rsp), %rax movslq 0x2c(%rax), %rax leaq ...
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_3x3_pack8.h
ncnn::convdw3x3s2_pack8_avx(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, ncnn::Option const&)
static void convdw3x3s2_pack8_avx(const Mat& bottom_blob, Mat& top_blob, const Mat& kernel, const Mat& _bias, const Option& opt) { int w = bottom_blob.w; int outw = top_blob.w; int outh = top_blob.h; const int group = bottom_blob.c; const int tailstep = (w - 2 * outw + w) * 8; const float* b...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rdx, -0x18(%rsp) movq %rsi, -0x20(%rsp) movq %rdi, -0x28(%rsp) movslq 0x38(%rdi), %rax movq %rax, -0x8(%rsp) testq %rax, %rax jle 0x30e766 movq -0x20(%rsp), %rax movl 0x2c(%rax), %r11d movl 0x30(%rax), %r9d movq (%rcx), %rcx movq -0x28(%rsp), %rax ...
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_3x3_pack8.h
ncnn::convdw3x3s2_int8_requant_sse(ncnn::Mat const&, ncnn::Mat&, ncnn::Mat const&, ncnn::Mat const&, std::vector<float, std::allocator<float>>, ncnn::Option const&)
static void convdw3x3s2_int8_requant_sse(const Mat& bottom_blob, Mat& top_blob, const Mat& _kernel, const Mat& _bias, std::vector<float> scales_requant, 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; ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %r8, -0x20(%rsp) movq %rdi, -0x48(%rsp) movq %rsi, -0x40(%rsp) movslq 0x38(%rsi), %rax movq %rax, -0x10(%rsp) testq %rax, %rax jle 0x31c53f movq -0x40(%rsp), %rax movl 0x2c(%rax), %esi movl 0x30(%rax), %eax movl %eax, -0x50(%rsp) movq (%rdx), %rdx m...
/csukuangfj[P]ncnn/src/layer/x86/convolutiondepthwise_3x3_int8.h
virtual thunk to ncnn::Padding_x86::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Padding_x86::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { if (top == 0 && bottom == 0 && left == 0 && right == 0 && front == 0 && behind == 0) { top_blob = bottom_blob; return 0; } int elembits = bottom_blob.elembits(); if (elembits == 8) re...
movq (%rdi), %rax addq -0x48(%rax), %rdi jmp 0x3204a8
/csukuangfj[P]ncnn/src/layer/x86/padding_x86.cpp
virtual thunk to ncnn::DeconvolutionDepthWise_x86_fma::create_pipeline(ncnn::Option const&)
int DeconvolutionDepthWise_x86_fma::create_pipeline(const Option& opt) { const int maxk = kernel_w * kernel_h; int channels = (weight_data_size / group) / maxk / (num_output / group) * group; // depth-wise if (channels == group && group == num_output) { int elempack = 1; #if __SSE2__ ...
pushq %rax movq (%rdi), %rax addq -0x30(%rax), %rdi callq 0x35218e xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O1/src/layer/x86/deconvolutiondepthwise_x86_fma.cpp
ncnn::Requantize::load_model(ncnn::ModelBin const&)
int Requantize::load_model(const ModelBin& mb) { scale_in_data = mb.load(scale_in_data_size, 1); if (scale_in_data.empty()) return -100; scale_out_data = mb.load(scale_out_data_size, 1); if (scale_out_data.empty()) return -100; if (bias_data_size) { bias_data = mb.load(...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x50, %rsp movq %rsi, %r15 movq %rdi, %rbx movl 0xd0(%rdi), %edx movq (%rsi), %rax movq %rsp, %r14 movq %r14, %rdi movl $0x1, %ecx callq *0x10(%rax) leaq 0x128(%rbx), %r12 cmpq %r14, %r12 je 0x383802 movq 0x8(%rsp), %rax testq %rax, %rax je 0x383750 lock incl...
/csukuangfj[P]ncnn/src/layer/requantize.cpp
ncnn::Cast_x86_avx512::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Cast_x86_avx512::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { if (type_from == type_to) { top_blob = bottom_blob; return 0; } int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; int channels = bottom_blob.c; int dims = bo...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rcx, %r12 movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r13 movq (%rdi), %rax movq -0x18(%rax), %rdi movl 0xd0(%r13,%rdi), %eax movl 0xd4(%r13,%rdi), %ecx cmpl %ecx, %eax jne 0x3cb4ba xorl %r15d, %r15d cmpq %r14, %rbx je 0x3cbd4d mov...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/cast_x86_avx512.cpp
virtual thunk to ncnn::HardSwish_x86::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int HardSwish_x86::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp parall...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x3ce488 xorl %eax, %eax popq %rcx retq nopl (%rax)
/csukuangfj[P]ncnn/src/layer/x86/hardswish_x86.cpp
virtual thunk to ncnn::Mish_x86_avx::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Mish_x86_avx::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int size = w * h * d; #if __SSE2__ int elempack = bottom_top_blob.elempack; #if __AVX__ #if __AVX...
pushq %rax callq 0x3d14f0 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/build_O1/src/layer/x86/mish_x86_avx.cpp
ncnn::Swish_x86_fma::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int Swish_x86_fma::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int channels = bottom_top_blob.c; int elempack = bottom_top_blob.elempack; int size = w * h * d * elempack; #pragma omp parall...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movslq 0x38(%rsi), %rax movq %rax, 0x38(%rsp) testq %rax, %rax jle 0x3d36bd movq %rsi, %rbx movl 0x30(%rsi), %ebp imull 0x2c(%rsi), %ebp imull 0x34(%rsi), %ebp imull 0x18(%rsi), %ebp movl %ebp, %eax andl $-0x8, %eax movl %eax, 0x1c(%rsp)...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/swish_x86_fma.cpp
ncnn::Gemm::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Gemm::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { std::vector<Mat> bottom_blobs(1, bottom_blob); std::vector<Mat> top_blobs(1, top_blob); int ret = forward(bottom_blobs, top_blobs, opt); top_blob = top_blobs[0]; return ret; }
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x38, %rsp movq %rcx, %r14 movq %rdx, %rbx movq %rsi, %rdx movq %rdi, %r15 leaq 0x20(%rsp), %rdi leaq 0x8(%rsp), %rcx movl $0x1, %esi callq 0x3d5ae8 leaq 0x8(%rsp), %rdi leaq 0x7(%rsp), %rcx movl $0x1, %esi movq %rbx, %rdx callq 0x3d5ae8 movq (%r15), %rax leaq 0x20(%rsp...
/csukuangfj[P]ncnn/src/layer/gemm.cpp
ncnn::Gemm_x86::create_pipeline(ncnn::Option const&)
int Gemm_x86::create_pipeline(const Option& opt) { if (constantA) { const int M = constantM; const int K = constantK; int TILE_M, TILE_N, TILE_K; get_optimal_tile_mnk(M, 0, K, constant_TILE_M, constant_TILE_N, constant_TILE_K, TILE_M, TILE_N, TILE_K, opt.num_threads); c...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rsi, %r13 movq %rdi, %rbx movq (%rdi), %rax movq -0x18(%rax), %rax cmpl $0x0, 0xe0(%rdi,%rax) je 0x3d5fee movl 0xec(%rbx,%rax), %ebp movl 0xf4(%rbx,%rax), %r12d movl 0x10c(%rbx,%rax), %ecx movl 0x110(%rbx,%rax), %r8d movl 0x114(%rb...
/csukuangfj[P]ncnn/src/layer/x86/gemm_x86.cpp
ncnn::get_optimal_tile_mnk(int, int, int, int, int, int, int&, int&, int&, int)
static void get_optimal_tile_mnk(int M, int N, int K, int constant_TILE_M, int constant_TILE_N, int constant_TILE_K, int& TILE_M, int& TILE_N, int& TILE_K, int nT) { // resolve optimal tile size from cache size const size_t l2_cache_size = get_cpu_level2_cache_size(); if (nT == 0) nT = get_physical...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r9d, 0x4(%rsp) movl %r8d, (%rsp) movl %ecx, %r14d movl %edx, %r12d movq %rsi, 0x8(%rsp) movq %rdi, 0x10(%rsp) movl 0x68(%rsp), %r15d movq 0x58(%rsp), %rbp movq 0x50(%rsp), %r13 callq 0x736c8 movslq %eax, %rbx testl %r15d, %r15d jne...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/gemm_x86_avx512.cpp
ncnn::Gemm_x86_fma::create_pipeline(ncnn::Option const&)
int Gemm_x86_fma::create_pipeline(const Option& opt) { if (constantA) { const int M = constantM; const int K = constantK; int TILE_M, TILE_N, TILE_K; get_optimal_tile_mnk(M, 0, K, constant_TILE_M, constant_TILE_N, constant_TILE_K, TILE_M, TILE_N, TILE_K, opt.num_threads); ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rsi, %r13 movq %rdi, %rbx movq (%rdi), %rax movq -0x18(%rax), %rax cmpl $0x0, 0xe0(%rdi,%rax) je 0x3f0736 movl 0xec(%rbx,%rax), %ebp movl 0xf4(%rbx,%rax), %r12d movl 0x10c(%rbx,%rax), %ecx movl 0x110(%rbx,%rax), %r8d movl 0x114(%rb...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/gemm_x86_fma.cpp
ncnn::get_optimal_tile_mnk(int, int, int, int, int, int, int&, int&, int&, int)
static void get_optimal_tile_mnk(int M, int N, int K, int constant_TILE_M, int constant_TILE_N, int constant_TILE_K, int& TILE_M, int& TILE_N, int& TILE_K, int nT) { // resolve optimal tile size from cache size const size_t l2_cache_size = get_cpu_level2_cache_size(); if (nT == 0) nT = get_physical...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r9d, 0x4(%rsp) movl %r8d, %ebp movl %ecx, %r14d movl %edx, %r12d movq %rsi, 0x8(%rsp) movq %rdi, 0x10(%rsp) movl 0x68(%rsp), %r15d callq 0x736c8 movl %eax, %ebx movslq %eax, %r13 testl %r15d, %r15d jne 0x3f0e90 callq 0x736ac movl %...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/gemm_x86_fma.cpp
ncnn::GroupNorm::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int GroupNorm::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { const int dims = bottom_top_blob.dims; const int channels_per_group = channels / group; if (dims == 1) { #pragma omp parallel for num_threads(opt.num_threads) for (int g = 0; g < group; g++) { ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rsi, -0x40(%rsp) movl 0x28(%rsi), %esi movl 0xd4(%rdi), %eax cltd idivl 0xd0(%rdi) movl %eax, %ecx movl %esi, -0x38(%rsp) cmpl $0x2, %esi je 0x407374 cmpl $0x1, -0x38(%rsp) jne 0x40757f movslq 0xd0(%rdi), %rax testq %rax, %rax jle 0x407369 movq -0x...
/csukuangfj[P]ncnn/src/layer/groupnorm.cpp
virtual thunk to ncnn::LayerNorm_x86_fma::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int LayerNorm_x86_fma::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { int dims = bottom_top_blob.dims; int elempack = bottom_top_blob.elempack; int w = bottom_top_blob.w; int h = bottom_top_blob.h; int channels = bottom_top_blob.c; const float* gamma = gamma_data; const fl...
pushq %rax movq (%rdi), %rax addq -0x58(%rax), %rdi callq 0x4101bc xorl %eax, %eax popq %rcx retq nopl (%rax)
/csukuangfj[P]ncnn/build_O1/src/layer/x86/layernorm_x86_fma.cpp
ncnn::GRU::load_model(ncnn::ModelBin const&)
int GRU::load_model(const ModelBin& mb) { int num_directions = direction == 2 ? 2 : 1; int size = weight_data_size / num_directions / num_output / 3; // raw weight data weight_xc_data = mb.load(size, num_output * 3, num_directions, 0); if (weight_xc_data.empty()) return -100; bias_c_d...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx xorl %ebp, %ebp cmpl $0x2, 0xd8(%rdi) sete %bpl incl %ebp movl 0xd0(%rdi), %ecx movl 0xd4(%rdi), %eax cltd idivl %ebp cltd idivl %ecx cltq imulq $0x55555556, %rax, %rdx # imm = 0x55555556 movq %rdx, %rax s...
/csukuangfj[P]ncnn/src/layer/gru.cpp
ncnn::MultiHeadAttention::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int MultiHeadAttention::forward(const std::vector<Mat>& bottom_blobs, std::vector<Mat>& top_blobs, const Option& opt) const { const Mat& q_blob = bottom_blobs[0]; const Mat& k_blob = (bottom_blobs.size() == 1 || (bottom_blobs.size() == 2 && attn_mask)) ? q_blob : bottom_blobs[1]; const Mat& v_blob = (bottom...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x218, %rsp # imm = 0x218 movq %rdx, %r9 movq %rdi, %rbx movq (%rsi), %r12 movq 0x8(%rsi), %rax subq %r12, %rax movq %r12, 0x58(%rsp) cmpq $0x48, %rax je 0x418d4c xorl %esi, %esi cmpl $0x0, 0xe4(%rbx) movl $0x48, %edx cmoveq %rdx, %rsi c...
/csukuangfj[P]ncnn/src/layer/multiheadattention.cpp
ncnn::MultiHeadAttention_x86::MultiHeadAttention_x86()
MultiHeadAttention_x86::MultiHeadAttention_x86() { #if __SSE2__ support_packing = true; #endif // __SSE2__ q_gemm = 0; k_gemm = 0; v_gemm = 0; qk_gemm = 0; qkv_gemm = 0; qk_softmax = 0; o_gemm = 0; }
pushq %rbx movq %rdi, %rbx addq $0x40, %rdi callq 0x417f4c leaq 0x1140de(%rip), %rax # 0x52dda0 movq %rax, (%rbx) leaq 0x114154(%rip), %rax # 0x52de20 movq %rax, 0x40(%rbx) movb $0x1, 0x4b(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rbx) movups %xmm0, 0x18(%rbx) movups %xmm0, 0x28(%rbx) movq $0x0, 0x38(%rbx) popq...
/csukuangfj[P]ncnn/src/layer/x86/multiheadattention_x86.cpp
virtual thunk to ncnn::MultiHeadAttention_x86::destroy_pipeline(ncnn::Option const&)
int MultiHeadAttention_x86::destroy_pipeline(const Option& opt) { if (q_gemm) { q_gemm->destroy_pipeline(opt); delete q_gemm; q_gemm = 0; } if (k_gemm) { k_gemm->destroy_pipeline(opt); delete k_gemm; k_gemm = 0; } if (v_gemm) { v_...
pushq %rax movq (%rdi), %rax addq -0x38(%rax), %rdi callq 0x41b648 xorl %eax, %eax popq %rcx retq nop
/csukuangfj[P]ncnn/src/layer/x86/multiheadattention_x86.cpp
ncnn::MultiHeadAttention_x86_avx512::create_pipeline(ncnn::Option const&)
int MultiHeadAttention_x86_avx512::create_pipeline(const Option& opt) { { const int embed_dim_per_head = embed_dim / num_heads; const float inv_sqrt_embed_dim_per_head = 1.f / sqrtf(embed_dim_per_head); q_gemm = ncnn::create_layer(ncnn::LayerType::Gemm); ncnn::ParamDict pd; ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xb8, %rsp movq %rdi, %rbx movq (%rdi), %rax movq -0x18(%rax), %rcx movl 0xd0(%rdi,%rcx), %eax cltd idivl 0xd4(%rdi,%rcx) vcvtsi2ss %eax, %xmm0, %xmm0 vrsqrtss %xmm0, %xmm0, %xmm1 vmulss %xmm1, %xmm0, %xmm0 vfmadd213ss 0x7e76f(%rip), %xmm1, %xmm0 #...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/multiheadattention_x86_avx512.cpp
ncnn::MultiHeadAttention_x86_avx::destroy_pipeline(ncnn::Option const&)
int MultiHeadAttention_x86_avx::destroy_pipeline(const Option& opt) { if (q_gemm) { q_gemm->destroy_pipeline(opt); delete q_gemm; q_gemm = 0; } if (k_gemm) { k_gemm->destroy_pipeline(opt); delete k_gemm; k_gemm = 0; } if (v_gemm) { ...
pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x8(%rdi), %rdi testq %rdi, %rdi je 0x424a19 movq (%rdi), %rax movq %r14, %rsi callq *0x28(%rax) movq 0x8(%rbx), %rdi testq %rdi, %rdi je 0x424a11 movq (%rdi), %rax callq *0x8(%rax) movq $0x0, 0x8(%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x424...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/multiheadattention_x86_avx.cpp
virtual thunk to ncnn::GELU_x86::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int GELU_x86::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { if (!fast_gelu) { return GELU::forward_inplace(bottom_top_blob, opt); } int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int elempack = bottom_top_blob.elempack; int ch...
movq (%rdi), %rax addq -0x58(%rax), %rdi jmp 0x426278 nop
/csukuangfj[P]ncnn/src/layer/x86/gelu_x86.cpp
virtual thunk to ncnn::GELU_x86_avx512::forward_inplace(ncnn::Mat&, ncnn::Option const&) const
int GELU_x86_avx512::forward_inplace(Mat& bottom_top_blob, const Option& opt) const { if (!fast_gelu) { return GELU::forward_inplace(bottom_top_blob, opt); } int w = bottom_top_blob.w; int h = bottom_top_blob.h; int d = bottom_top_blob.d; int elempack = bottom_top_blob.elempack; ...
movq (%rdi), %rax addq -0x58(%rax), %rdi jmp 0x4265c0
/csukuangfj[P]ncnn/build_O1/src/layer/x86/gelu_x86_avx512.cpp
ncnn::Convolution1D_x86_avx::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int Convolution1D_x86_avx::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 _num_ou...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x168, %rsp # imm = 0x168 movq %rsi, %rbx movq %rdi, %r13 movq (%rsi), %r14 leaq 0x48(%r14), %rdi movq (%rdx), %rax movq %rax, 0xb8(%rsp) movl 0x60(%r14), %r15d imull 0x80(%r14), %r15d movl 0x74(%r14), %eax movl %eax, 0x1c(%rsp) leaq 0x4...
/csukuangfj[P]ncnn/build_O1/src/layer/x86/convolution1d_x86_avx.cpp
ncnn::ConvolutionDepthWise1D::load_param(ncnn::ParamDict const&)
int ConvolutionDepthWise1D::load_param(const ParamDict& pd) { num_output = pd.get(0, 0); kernel_w = pd.get(1, 0); dilation_w = pd.get(2, 1); stride_w = pd.get(3, 1); pad_left = pd.get(4, 0); pad_right = pd.get(15, pad_left); pad_value = pd.get(18, 0.f); bias_term = pd.get(5, 0); weig...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa0, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x71882 movl %eax, 0xd0(%rbx) movq %r14, %rdi movl $0x1, %esi xorl %edx, %edx callq 0x71882 movl %eax, 0xd4(%rbx) movq %r14, %rdi movl $0x2, %esi movl $0x1, %edx ...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise1d.cpp
ncnn::ConvolutionDepthWise1D::forward(std::vector<ncnn::Mat, std::allocator<ncnn::Mat>> const&, std::vector<ncnn::Mat, std::allocator<ncnn::Mat>>&, ncnn::Option const&) const
int ConvolutionDepthWise1D::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 _num_o...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x108, %rsp # imm = 0x108 movq %rcx, %r13 movq %rsi, %r12 movq %rdi, %r14 movq (%rsi), %rbp leaq 0x48(%rbp), %rdi movq (%rdx), %rax movq %rax, 0x100(%rsp) movl 0x74(%rbp), %r15d movl 0x80(%rbp), %eax movl %eax, 0xc(%rsp) leaq 0xd8(%rsp),...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise1d.cpp
ncnn::Convolution3D::load_param(ncnn::ParamDict const&)
int Convolution3D::load_param(const ParamDict& pd) { num_output = pd.get(0, 0); kernel_w = pd.get(1, 0); kernel_h = pd.get(11, kernel_w); kernel_d = pd.get(21, kernel_w); dilation_w = pd.get(2, 1); dilation_h = pd.get(12, dilation_w); dilation_d = pd.get(22, dilation_w); stride_w = pd.ge...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x71882 movl %eax, 0xd0(%rbx) movq %r14, %rdi movl $0x1, %esi xorl %edx, %edx callq 0x71882 movl %eax, 0xd4(%rbx) movq %r14, %rdi movl $0xb, %esi movl %eax, %edx callq 0x718...
/csukuangfj[P]ncnn/src/layer/convolution3d.cpp
ncnn::ConvolutionDepthWise3D::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int ConvolutionDepthWise3D::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; const int kernel_extend_w = dilation_w * (kernel_w - 1...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1d8, %rsp # imm = 0x1D8 movq %rdx, %r12 movl 0x38(%rsi), %r13d movq 0x10(%rsi), %rax movq %rax, 0x28(%rsp) movl 0xd4(%rdi), %r15d movl 0xd8(%rdi), %ebp decl %r15d imull 0xe0(%rdi), %r15d decl %ebp imull 0xe4(%rdi), %ebp movl 0xdc(%rdi)...
/csukuangfj[P]ncnn/src/layer/convolutiondepthwise3d.cpp
ncnn::Pooling3D::forward(ncnn::Mat const&, ncnn::Mat&, ncnn::Option const&) const
int Pooling3D::forward(const Mat& bottom_blob, Mat& top_blob, const Option& opt) const { // max value in NxN window // avg value in NxN window int w = bottom_blob.w; int h = bottom_blob.h; int d = bottom_blob.d; int channels = bottom_blob.c; size_t elemsize = bottom_blob.elemsize; // ...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1e8, %rsp # imm = 0x1E8 movq %rdx, %r12 movq %rsi, %r15 movl 0x2c(%rsi), %r13d movl 0x30(%rsi), %eax movl %eax, 0x28(%rsp) movl 0x34(%rsi), %eax movl %eax, 0xb0(%rsp) movl 0x38(%rsi), %esi movq 0x10(%r15), %rbp cmpl $0x0, 0x104(%rdi) m...
/csukuangfj[P]ncnn/src/layer/pooling3d.cpp
ncnn::DeconvolutionDepthWise1D::load_param(ncnn::ParamDict const&)
int DeconvolutionDepthWise1D::load_param(const ParamDict& pd) { num_output = pd.get(0, 0); kernel_w = pd.get(1, 0); dilation_w = pd.get(2, 1); stride_w = pd.get(3, 1); pad_left = pd.get(4, 0); pad_right = pd.get(15, pad_left); output_pad_right = pd.get(18, 0); output_w = pd.get(20, 0); ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x71882 movl %eax, 0xd0(%rbx) movq %r14, %rdi movl $0x1, %esi xorl %edx, %edx callq 0x71882 movl %eax, 0xd4(%rbx) movq %r14, %rdi movl $0x2, %esi movl $0x1, %edx callq 0x718...
/csukuangfj[P]ncnn/src/layer/deconvolutiondepthwise1d.cpp
Catch::Detail::Approx::setMargin(double)
void Approx::setMargin(double newMargin) { CATCH_ENFORCE(newMargin >= 0, "Invalid Approx::margin: " << newMargin << '.' << " Approx::Margin has to be non-negative."); m_margin = newMargin; }
pushq %rbx subq $0x40, %rsp xorpd %xmm1, %xmm1 ucomisd %xmm1, %xmm0 jb 0x11c90 movsd %xmm0, 0x8(%rdi) addq $0x40, %rsp popq %rbx retq movsd %xmm0, (%rsp) leaq 0x28(%rsp), %rbx movq %rbx, %rdi callq 0x1d150 movq 0x10(%rbx), %rbx leaq 0x3aa2f(%rip), %rsi # 0x4c6dc movq %rbx, %rdi callq 0x11450 movq %rbx, %rdi movsd (...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::getResultCapture()
inline IContext& getCurrentContext() { return getCurrentMutableContext(); }
pushq %rbx subq $0x50, %rsp callq 0x2a7b7 movq (%rax), %rcx movq %rax, %rdi callq *0x10(%rcx) testq %rax, %rax je 0x11f5b addq $0x50, %rsp popq %rbx retq leaq 0x28(%rsp), %rbx movq %rbx, %rdi callq 0x1d150 leaq 0x3af3e(%rip), %rax # 0x4cead leaq 0x40(%rsp), %rsi movq %rax, (%rsi) movq $0x3358, 0x8(%rsi) # imm ...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::formatReconstructedExpression(std::ostream&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, Catch::StringRef, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void formatReconstructedExpression( std::ostream &os, std::string const& lhs, StringRef op, std::string const& rhs ) { if( lhs.size() + rhs.size() < 40 && lhs.find('\n') == std::string::npos && rhs.find('\n') == std::string::npos ) os << lhs << " " << op << " " << rhs...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r8, %rbx movq %rsi, %r14 movq %rdi, %r15 movq %rdx, 0x8(%rsp) movq %rcx, 0x10(%rsp) movq 0x8(%r8), %rax addq 0x8(%rsi), %rax cmpq $0x27, %rax ja 0x16630 pushq $0xa popq %rsi movq %r14, %rdi xorl %edx, %edx callq 0x29f60 cmpq $-0x1, %rax jne 0x16630 push...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::Detail::makeEnumInfo(Catch::StringRef, Catch::StringRef, std::vector<int, std::allocator<int>> const&)
std::unique_ptr<EnumInfo> makeEnumInfo( StringRef enumName, StringRef allValueNames, std::vector<int> const& values ) { std::unique_ptr<EnumInfo> enumInfo( new EnumInfo ); enumInfo->m_name = enumName; enumInfo->m_values.reserve( values.size() ); const auto valueNames = C...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, %r15 movq %r8, 0x18(%rsp) movq %rcx, %r13 movq %rdx, %rbp movq %rsi, %rbx movq %rdi, %r12 pushq $0x28 popq %rdi callq 0x11460 leaq 0x10(%rax), %r14 xorps %xmm0, %xmm0 andq $0x0, 0x20(%rax) movups %xmm0, 0x10(%rax) movq %r12, 0x...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::handleSignal(int)
static void handleSignal( int sig ) { char const * name = "<unknown signal>"; for (auto const& def : signalDefs) { if (sig == def.id) { name = def.name; break; } } // We need to restore previous signal handlers and let them do ...
pushq %r15 pushq %r14 pushq %rbx movl %edi, %ebx xorl %eax, %eax leaq 0x3787b(%rip), %r14 # 0x4e777 leaq 0x6120d(%rip), %rcx # 0x78110 cmpq $0x60, %rax je 0x16f1a leaq 0x10(%rax), %rdx cmpl %ebx, (%rax,%rcx) movq %rdx, %rax jne 0x16f03 movq -0x8(%rdx,%rcx), %r14 callq 0x16f56 callq 0x2a7b7 movq (%rax), %rcx mov...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::filterTests(std::vector<Catch::TestCase, std::allocator<Catch::TestCase>> const&, Catch::TestSpec const&, Catch::IConfig const&)
std::vector<TestCase> filterTests( std::vector<TestCase> const& testCases, TestSpec const& testSpec, IConfig const& config ) { std::vector<TestCase> filtered; filtered.reserve( testCases.size() ); for (auto const& testCase : testCases) { if ((!testSpec.hasFilters() && !testCase.isHid...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movq %rcx, %r14 movq %rdx, %r15 movq %rsi, %r13 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) andq $0x0, 0x10(%rdi) movq 0x8(%rsi), %rax subq (%rsi), %rax movl $0xb8, %ecx cqto idivq %rcx movq %rax, %rsi callq 0x2b8f6 movq (%r13), %r12 movq 0x8(%r13), %r1...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::Matchers::Floating::WithinUlpsMatcher::match(double const&) const
bool WithinUlpsMatcher::match(double const& matchee) const { switch (m_type) { case FloatingPointKind::Float: return almostEqualUlps<float>(static_cast<float>(matchee), static_cast<float>(m_target), m_ulps); case FloatingPointKind::Double: return almostEqualUlps<double>(m...
pushq %rbx subq $0x50, %rsp movzbl 0x40(%rdi), %eax cmpl $0x1, %eax je 0x187c2 testl %eax, %eax jne 0x1883d cvtsd2ss (%rsi), %xmm0 cvtsd2ss 0x30(%rdi), %xmm1 ucomiss %xmm1, %xmm0 jp 0x18839 movd %xmm0, %eax movd %xmm1, %ecx movl %ecx, %edx xorl %eax, %edx js 0x18827 subl %ecx, %eax cvtsi2ss %eax, %xmm0 andps 0x328b9(%r...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::Matchers::Floating::WithinUlpsMatcher::describe[abi:cxx11]() const
std::string WithinUlpsMatcher::describe() const { std::stringstream ret; ret << "is within " << m_ulps << " ULPs of "; if (m_type == FloatingPointKind::Float) { write(ret, static_cast<float>(m_target)); ret << 'f'; } else { write(ret, m_target); ...
pushq %r15 pushq %r14 pushq %rbx subq $0x190, %rsp # imm = 0x190 movq %rsi, %r15 movq %rdi, %rbx leaq 0x8(%rsp), %rdi callq 0x11320 leaq 0x18(%rsp), %r14 leaq 0x34860(%rip), %rsi # 0x4d15c movq %r14, %rdi callq 0x11450 movq 0x38(%r15), %rsi movq %rax, %rdi callq 0x112f0 leaq 0x348c3(%rip), %rsi # 0x4...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::startsWith(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 startsWith( std::string const& s, std::string const& prefix ) { return s.size() >= prefix.size() && std::equal(prefix.begin(), prefix.end(), s.begin()); }
movq %rsi, %rax movq 0x8(%rsi), %rsi cmpq %rsi, 0x8(%rdi) jae 0x1924e xorl %eax, %eax retq movq (%rax), %rax addq %rax, %rsi movq (%rdi), %rdx movq %rax, %rdi jmp 0x33eee nop
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::cleanupSingletons()
void cleanupSingletons() { auto& singletons = getSingletons(); for( auto singleton : *singletons ) delete singleton; delete singletons; singletons = nullptr; }
pushq %r14 pushq %rbx pushq %rax callq 0x1d0e7 movq 0x62dbc(%rip), %rax # 0x7ccc0 movq (%rax), %rbx movq 0x8(%rax), %r14 cmpq %r14, %rbx je 0x19f24 movq (%rbx), %rdi testq %rdi, %rdi je 0x19f1e movq (%rdi), %rax callq *0x8(%rax) addq $0x8, %rbx jmp 0x19f0b movq 0x62d95(%rip), %rbx # 0x7ccc0 testq %rbx, %rbx je ...
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
Catch::TestCaseTracking::TrackerBase::fail()
void TrackerBase::fail() { m_runState = Failed; if( m_parent ) m_parent->markAsNeedingAnotherRun(); moveToParent(); m_ctx.completeCycle(); }
pushq %rbx movq %rdi, %rbx movl $0x5, 0x60(%rdi) movq 0x40(%rdi), %rdi testq %rdi, %rdi je 0x1ebec movq (%rdi), %rax callq *0x50(%rax) movq %rbx, %rdi callq 0x1eba0 movq 0x38(%rbx), %rax movl $0x2, 0x18(%rax) popq %rbx retq nop
/Toxe[P]catch2-examples/src/single_header/multiple_test_files/include/catch2/catch.hpp
booster::backtrace::backtrace(unsigned long)
backtrace(size_t frames_no = default_stack_size) { if(frames_no == 0) return; frames_.resize(frames_no,0); int size = stack_trace::trace(&frames_.front(),frames_no); frames_.resize(size); }
pushq %r14 pushq %rbx pushq %rax leaq 0x585d(%rip), %rax # 0x15cb0 movq %rax, (%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movq $0x0, 0x18(%rdi) testq %rsi, %rsi je 0x1049c movq %rsi, %r14 movq %rdi, %rbx addq $0x8, %rbx movq %rsp, %rdx movq $0x0, (%rdx) movq %rbx, %rdi callq 0x10548 movq (%rbx), %rdi movl %r...
/artyom-beilis[P]cppcms/booster/./booster/backtrace.h
program_options(OB::Parg&)
int program_options(Parg& pg) { pg.name("nansi").version("0.1.1 (10.01.2019)"); pg.description("A CLI tool to filter ansi escape sequences and format text streams."); pg.usage("[flags] [options] [--] [arguments]"); pg.usage("[-v|--version]"); pg.usage("[-h|--help]"); pg.info("Examples", { "nansi --help"...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x4c8, %rsp # imm = 0x4C8 movq %rdi, %rbx leaq -0x480(%rbp), %r15 movq %r15, -0x10(%r15) leaq 0x9a25(%rip), %rsi # 0xe20a leaq 0x9a23(%rip), %rdx # 0xe20f leaq -0x490(%rbp), %r14 movq %r14, %rdi callq 0x9510 lea...
/octobanana[P]nansi/src/main.cc
main
int main(int argc, char *argv[]) { Parg pg {argc, argv}; int pstatus {program_options(pg)}; if (pstatus > 0) return 0; if (pstatus < 0) return 1; try { OB::Term::ostream os {std::cout}; os.line_wrap(false); if (pg.get<bool>("line-wrap") || pg.get<bool>("auto-wrap")) { os.line_wrap(t...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x528, %rsp # imm = 0x528 movq %rsi, %rdx movl %edi, %esi leaq -0x550(%rbp), %rbx movq %rbx, %rdi callq 0x840a movq %rbx, %rdi callq 0x47bc xorl %ebx, %ebx testl %eax, %eax jg 0x60e1 js 0x5f54 movq 0xd2db(%rip), %rsi ...
/octobanana[P]nansi/src/main.cc
OB::Parg::set(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void set(std::string _name, std::string _info) { // sets a flag std::string delim {","}; if (_name.find(delim) != std::string::npos) { // short and long bool has_short {false}; std::string _long; std::string _short; auto const names = delimit(_name, delim); assert(...
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2a8, %rsp # imm = 0x2A8 movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx leaq -0x78(%rbp), %r13 movq %r13, -0x10(%r13) leaq 0x7d63(%rip), %rsi # 0xe453 leaq 0x7d5d(%rip), %rdx # 0xe454 leaq -0x88(%rbp), %r12 mo...
/octobanana[P]nansi/src/ob/parg.hh
OB::Parg::Parg(int, char**)
Parg(int _argc, char** _argv) { argc_ = _argc; argvf(_argv); }
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rdi, %rbx xorl %eax, %eax movl %eax, (%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movq %rax, 0x18(%rdi) leaq 0x30(%rdi), %rcx movq %rcx, -0x68(%rbp) movq %rcx, 0x20(%rdi) movq %rax, 0x28(%rdi) movb %al, 0x30(%r...
/octobanana[P]nansi/src/ob/parg.hh
OB::Parg::find(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) const
bool find(std::string const _key) const { // key must exist if (data_.find(_key) == data_.end()) return false; return data_.at(_key).seen_; }
pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r15 leaq 0x120(%rdi), %r14 movq %r14, %rdi callq 0xd31e addq $0x128, %r15 # imm = 0x128 cmpq %r15, %rax je 0x88a1 movq %r14, %rdi movq %rbx, %rsi callq 0xd2c0 movb 0x68(%rax), %al jmp 0x88a3 xorl %eax, %eax add...
/octobanana[P]nansi/src/ob/parg.hh
OB::Term::ostream::streambuf::~streambuf()
~streambuf() { flush(); }
pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx leaq 0x64a8(%rip), %rax # 0x12cf0 movq %rax, (%rdi) callq 0xd1fc movq 0xb0(%rbx), %rdi leaq 0xc0(%rbx), %rax cmpq %rax, %rdi je 0xc86e movq (%rax), %rsi incq %rsi callq 0x3210 movq 0x90(%rbx), %rdi leaq 0xa0(%rbx), %rax cmpq %rax, %rdi je 0xc88c movq...
/octobanana[P]nansi/src/ob/term.hh
cnn::ClassFactoredSoftmaxBuilder::get_rc2w(unsigned int)
inline expr::Expression& get_rc2w(unsigned cluster_idx) { expr::Expression& e = rc2ws[cluster_idx]; if (!e.pg) e = expr::parameter(*pcg, p_rc2ws[cluster_idx]); return e; }
pushq %r14 pushq %rbx subq $0x18, %rsp movq 0x138(%rdi), %rcx movl %esi, %eax movq %rax, %rdx shlq $0x4, %rdx cmpq $0x0, (%rcx,%rdx) leaq (%rcx,%rdx), %rbx jne 0x160d3a movq 0xe0(%rdi), %rcx movq 0x110(%rdi), %rsi leaq 0x8(%rsp), %r14 movq %r14, %rdi movq (%rcx,%rax,8), %rdx callq 0x158830 movq (%r14), %rax movq %rax, ...
/LeonCrashCode[P]InOrderParser/cnn/cfsm-builder.h
cnn::ComputationGraph::ComputationGraph()
ComputationGraph::ComputationGraph() : ee(new SimpleExecutionEngine(*this)) { ++n_hgs; if (n_hgs > 1) { cerr << "Memory allocator assumes only a single ComputationGraph at a time.\n"; throw std::runtime_error("Attempted to create >1 CG"); } }
pushq %r15 pushq %r14 pushq %rbx vxorps %xmm0, %xmm0, %xmm0 movq %rdi, %rbx vmovups %ymm0, 0x10(%rdi) vmovups %ymm0, (%rdi) pushq $0x48 popq %rdi vzeroupper callq 0x1568c0 movq 0x16ce73(%rip), %rcx # 0x2cff58 movq 0x16ce94(%rip), %rsi # 0x2cff80 vxorps %xmm0, %xmm0, %xmm0 movq %rbx, 0x8(%rax) addq $0x10, %rcx mov...
/LeonCrashCode[P]InOrderParser/cnn/cnn.cc
cnn::ComputationGraph::add_const_parameters(cnn::Parameters*)
VariableIndex ComputationGraph::add_const_parameters(Parameters* p) { VariableIndex new_node_index(nodes.size()); ConstParameterNode* new_node = new ConstParameterNode(p); nodes.push_back(new_node); set_dim_for_new_node(new_node_index); return new_node_index; }
pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq 0x8(%rsi), %rax movq %rdi, %rbx movq %rdx, %r15 movq %rsi, %r14 subq (%rsi), %rax shrq $0x3, %rax movl %eax, (%rdi) movl $0x80, %edi callq 0x1568c0 movabsq $0x100000000, %rcx # imm = 0x100000000 vxorps %xmm0, %xmm0, %xmm0 leaq 0x8(%rsp), %rsi movq %r14, %rdi m...
/LeonCrashCode[P]InOrderParser/cnn/cnn.cc
cnn::Tensor::batch_elem(unsigned int) const
Tensor batch_elem(unsigned b) const { if(d.batch_elems() == 1) { return *this; } else { assert(b < d.batch_elems()); const unsigned bsize = d.batch_size(); Dim new_d(d); new_d.bd = 1; Tensor ret(new_d, v + bsize * b); // std::cerr << "Getting tensor for batch " << (b % d.batc...
pushq %rbp pushq %r14 pushq %rbx movl 0x20(%rsi), %eax movq %rsi, %r14 movq %rdi, %rbx cmpl $0x1, %eax jne 0x163e21 movq %rbx, %rdi movq %r14, %rsi callq 0x155ca0 jmp 0x163e5c movl %edx, %ebp cmpl %edx, %eax jbe 0x163e67 movq %r14, %rdi callq 0x159d50 vmovups (%r14), %ymm0 imull %ebp, %eax shlq $0x2, %rax vmovups %ymm0...
/LeonCrashCode[P]InOrderParser/cnn/tensor.h
void std::__relocate_object_a<cnn::Tensor, cnn::Tensor, std::allocator<cnn::Tensor>>(cnn::Tensor*, cnn::Tensor*, std::allocator<cnn::Tensor>&)
Tensor() = default;
vmovups 0x10(%rsi), %ymm1 vmovups (%rsi), %ymm0 movq 0x40(%rsi), %rcx andq $0x0, 0x40(%rsi) leaq 0x30(%rsi), %rax vmovups %ymm1, 0x10(%rdi) vmovups %ymm0, (%rdi) vmovups 0x30(%rsi), %xmm0 vmovups %xmm0, 0x30(%rdi) vxorps %xmm0, %xmm0, %xmm0 movq %rcx, 0x40(%rdi) movq %rax, %rdi vmovups %xmm0, 0x30(%rsi) vzeroupper jmp ...
/LeonCrashCode[P]InOrderParser/cnn/tensor.h
cnn::expr::cdiv(cnn::expr::Expression const&, cnn::expr::Expression const&)
Expression cdiv(const Expression& x, const Expression& y) { return Expression(x.pg, x.pg->add_function<CwiseQuotient>({x.i, y.i})); }
pushq %r14 pushq %rbx subq $0x18, %rsp movl 0x8(%rsi), %eax movq (%rsi), %r14 movq %rsp, %rcx movq %rdi, %rbx addq $0x8, %rdi movl %eax, (%rcx) movq %r14, %rsi movl 0x8(%rdx), %eax leaq 0x8(%rsp), %rdx movq %rcx, (%rdx) movq $0x2, 0x8(%rdx) movl %eax, 0x4(%rcx) callq 0x152a20 movq %r14, (%rbx) movq %rbx, %rax addq $0x1...
/LeonCrashCode[P]InOrderParser/cnn/expr.cc
cnn::expr::cube(cnn::expr::Expression const&)
Expression cube(const Expression& x) { return Expression(x.pg, x.pg->add_function<Cube>({x.i})); }
pushq %r14 pushq %rbx subq $0x18, %rsp movq (%rsi), %r14 movl 0x8(%rsi), %eax movq %rdi, %rbx leaq 0x4(%rsp), %rcx leaq 0x8(%rsp), %rdx addq $0x8, %rdi movq %rcx, (%rdx) movq $0x1, 0x8(%rdx) movq %r14, %rsi movl %eax, (%rcx) callq 0x151ec0 movq %r14, (%rbx) movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r14 retq
/LeonCrashCode[P]InOrderParser/cnn/expr.cc
cnn::expr::select_rows(cnn::expr::Expression const&, std::vector<unsigned int, std::allocator<unsigned int>> const&)
Expression select_rows(const Expression& x, const vector<unsigned>& rows) { return Expression(x.pg, x.pg->add_function<SelectRows>({x.i}, rows)); }
pushq %r14 pushq %rbx subq $0x18, %rsp movq (%rsi), %r14 movl 0x8(%rsi), %eax movq %rdx, %rcx movq %rdi, %rbx leaq 0x4(%rsp), %rsi leaq 0x8(%rsp), %rdx addq $0x8, %rdi movq %rsi, (%rdx) movq $0x1, 0x8(%rdx) movl %eax, (%rsi) movq %r14, %rsi callq 0x14edd0 movq %r14, (%rbx) movq %rbx, %rax addq $0x18, %rsp popq %rbx pop...
/LeonCrashCode[P]InOrderParser/cnn/expr.cc
cnn::expr::pick(cnn::expr::Expression const&, std::vector<unsigned int, std::allocator<unsigned int>> const&)
Expression pick(const Expression& x, const vector<unsigned> & v) { return Expression(x.pg, x.pg->add_function<PickElement>({x.i}, v)); }
pushq %r14 pushq %rbx subq $0x18, %rsp movq (%rsi), %r14 movl 0x8(%rsi), %eax movq %rdx, %rcx movq %rdi, %rbx leaq 0x4(%rsp), %rsi leaq 0x8(%rsp), %rdx addq $0x8, %rdi movq %rsi, (%rdx) movq $0x1, 0x8(%rdx) movl %eax, (%rsi) movq %r14, %rsi callq 0x156110 movq %r14, (%rbx) movq %rbx, %rax addq $0x18, %rsp popq %rbx pop...
/LeonCrashCode[P]InOrderParser/cnn/expr.cc
cnn::expr::pick(cnn::expr::Expression const&, std::vector<unsigned int, std::allocator<unsigned int>> const*)
Expression pick(const Expression& x, const vector<unsigned> * pv) { return Expression(x.pg, x.pg->add_function<PickElement>({x.i}, pv)); }
pushq %r14 pushq %rbx subq $0x28, %rsp leaq 0x10(%rsp), %rcx movq %rdi, %rbx addq $0x8, %rdi movq %rdx, (%rcx) leaq 0x18(%rsp), %rdx movq (%rsi), %r14 movl 0x8(%rsi), %eax leaq 0xc(%rsp), %rsi movq %rsi, (%rdx) movq $0x1, 0x8(%rdx) movl %eax, (%rsi) movq %r14, %rsi callq 0x15d310 movq %r14, (%rbx) movq %rbx, %rax addq ...
/LeonCrashCode[P]InOrderParser/cnn/expr.cc
cnn::expr::kmh_ngram(cnn::expr::Expression const&, unsigned int)
Expression kmh_ngram(const Expression& x, unsigned n) { return Expression(x.pg, x.pg->add_function<KMHNGram>({x.i}, n)); }
pushq %r14 pushq %rbx subq $0x18, %rsp leaq 0x4(%rsp), %rcx movq %rdi, %rbx addq $0x8, %rdi movl %edx, (%rcx) leaq 0x8(%rsp), %rdx movq (%rsi), %r14 movl 0x8(%rsi), %eax movq %rsp, %rsi movq %rsi, (%rdx) movq $0x1, 0x8(%rdx) movl %eax, (%rsi) movq %r14, %rsi callq 0x1550b0 movq %r14, (%rbx) movq %rbx, %rax addq $0x18, ...
/LeonCrashCode[P]InOrderParser/cnn/expr.cc
cnn::VariableIndex cnn::ComputationGraph::add_function<cnn::Zeroes, cnn::Dim>(cnn::Dim const&)
inline VariableIndex ComputationGraph::add_function(const T& arguments) { VariableIndex new_node_index(nodes.size()); nodes.push_back(new Function(arguments)); set_dim_for_new_node(new_node_index); return new_node_index; }
pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq 0x8(%rsi), %rax movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx subq (%rsi), %rax shrq $0x3, %rax movl %eax, (%rdi) pushq $0x78 popq %rdi callq 0x1568c0 movabsq $0x100000000, %rcx # imm = 0x100000000 vxorps %xmm0, %xmm0, %xmm0 leaq 0x8(%rsp), %rsi movq %r14, %...
/LeonCrashCode[P]InOrderParser/cnn/cnn.h
cnn::VariableIndex cnn::ComputationGraph::add_function<cnn::MatrixMultiply>(std::initializer_list<cnn::VariableIndex> const&)
inline VariableIndex ComputationGraph::add_function(const std::initializer_list<VariableIndex>& arguments) { VariableIndex new_node_index(nodes.size()); nodes.push_back(new Function(arguments)); set_dim_for_new_node(new_node_index); return new_node_index; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq 0x8(%rsi), %rax movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx subq (%rsi), %rax shrq $0x3, %rax movl %eax, (%rdi) pushq $0x50 popq %rdi callq 0x1568c0 movq %rax, %r15 movq %rax, %rdi movq %r12, %rsi callq 0x157510 movq %rsp, %rsi movq %r14, %rdi movq %r15, (...
/LeonCrashCode[P]InOrderParser/cnn/cnn.h
cnn::VariableIndex cnn::ComputationGraph::add_function<cnn::AddVectorToAllColumns>(std::initializer_list<cnn::VariableIndex> const&)
inline VariableIndex ComputationGraph::add_function(const std::initializer_list<VariableIndex>& arguments) { VariableIndex new_node_index(nodes.size()); nodes.push_back(new Function(arguments)); set_dim_for_new_node(new_node_index); return new_node_index; }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq 0x8(%rsi), %rax movq %rdx, %r12 movq %rsi, %r14 movq %rdi, %rbx subq (%rsi), %rax shrq $0x3, %rax movl %eax, (%rdi) pushq $0x50 popq %rdi callq 0x1568c0 movq %rax, %r15 movq %rax, %rdi movq %r12, %rsi callq 0x156d20 movq %rsp, %rsi movq %r14, %rdi movq %r15, (...
/LeonCrashCode[P]InOrderParser/cnn/cnn.h
cnn::VariableIndex cnn::ComputationGraph::add_function<cnn::Hinge, unsigned int&, float&>(std::initializer_list<cnn::VariableIndex> const&, unsigned int&, float&)
inline VariableIndex ComputationGraph::add_function(const std::initializer_list<VariableIndex>& arguments, Args&&... side_information) { VariableIndex new_node_index(nodes.size()); nodes.push_back(new Function(arguments, std::forward<Args>(side_information)...)); set_...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq 0x8(%rsi), %rax movq %r8, %r12 movq %rcx, %r13 movq %rdx, %rbp movq %rsi, %r14 movq %rdi, %rbx subq (%rsi), %rax shrq $0x3, %rax movl %eax, (%rdi) pushq $0x68 popq %rdi callq 0x1568c0 vmovss (%r12), %xmm0 movl (%r13), %edx movq %rax, %r15...
/LeonCrashCode[P]InOrderParser/cnn/cnn.h