Skip to content

Commit

Permalink
fix warnings (#5094)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Oct 23, 2023
1 parent a1e3ebf commit 54ab805
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/layer/arm/convolution_im2col_gemm_int8.h
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ static void convolution_gemm_transB_packed_tile_int8(const Mat& AT_tile, const M
// NCNN_LOGE("convolution_gemm_transB_packed_tile_int8 %d %d %d %d %d %d", i, max_ii, j, max_jj, k, max_kk);

const int out_elempack = top_blob.elempack;
const int out_hstep = (int)top_blob.cstep;
const size_t out_hstep = top_blob.cstep;

const signed char* pAT = AT_tile;
const signed char* pBT = BT_tile;
Expand Down Expand Up @@ -1150,7 +1150,7 @@ static void convolution_gemm_transB_packed_tile_int8(const Mat& AT_tile, const M
"beq 8f \n"

// if out_elempack == 8
"cmp %11, #8 \n"
"cmp %w11, #8 \n"
"bne 7f \n"

"st1 {v16.4s}, [%3], #16 \n"
Expand Down Expand Up @@ -1304,7 +1304,7 @@ static void convolution_gemm_transB_packed_tile_int8(const Mat& AT_tile, const M
"zip2 v15.4s, v21.4s, v25.4s \n"

// if out_elempack == 8
"cmp %11, #8 \n"
"cmp %w11, #8 \n"
"bne 7f \n"

// to
Expand Down Expand Up @@ -2737,7 +2737,7 @@ static void convolution_gemm_transB_packed_tile_int8(const Mat& AT_tile, const M
"beq 8f \n"

// if out_elempack == 8
"cmp %11, #8 \n"
"cmp %w11, #8 \n"
"bne 7f \n"

"st1 {v16.4s}, [%3], #16 \n"
Expand Down Expand Up @@ -2833,7 +2833,7 @@ static void convolution_gemm_transB_packed_tile_int8(const Mat& AT_tile, const M
"zip2 v7.4s, v19.4s, v21.4s \n"

// if out_elempack == 8
"cmp %11, #8 \n"
"cmp %w11, #8 \n"
"bne 7f \n"

// to
Expand Down Expand Up @@ -7636,7 +7636,7 @@ static void convolution_im2col_input_tile_conv1x1s1d1_int8(const Mat& bottom_blo
if (elempack == 8)
{
const signed char* p0 = (const signed char*)bottom_blob.channel(k / 8) + (j + jj) * 8;
const int cstep = bottom_blob.cstep * 8;
const size_t cstep = bottom_blob.cstep * 8;

int kk = 0;
#if __ARM_FEATURE_MATMUL_INT8
Expand Down Expand Up @@ -7725,7 +7725,7 @@ static void convolution_im2col_input_tile_conv1x1s1d1_int8(const Mat& bottom_blo
if (elempack == 1)
{
const signed char* p0 = (const signed char*)bottom_blob.channel(k) + (j + jj);
const int cstep = bottom_blob.cstep;
const size_t cstep = bottom_blob.cstep;

int kk = 0;
#if __ARM_FEATURE_DOTPROD
Expand Down Expand Up @@ -7855,7 +7855,7 @@ static void convolution_im2col_input_tile_conv1x1s1d1_int8(const Mat& bottom_blo
if (elempack == 8)
{
const signed char* p0 = (const signed char*)bottom_blob.channel(k / 8) + (j + jj) * 8;
const int cstep = bottom_blob.cstep * 8;
const size_t cstep = bottom_blob.cstep * 8;

int kk = 0;
#if __ARM_FEATURE_MATMUL_INT8
Expand Down Expand Up @@ -7950,7 +7950,7 @@ static void convolution_im2col_input_tile_conv1x1s1d1_int8(const Mat& bottom_blo
if (elempack == 1)
{
const signed char* p0 = (const signed char*)bottom_blob.channel(k) + (j + jj);
const int cstep = bottom_blob.cstep;
const size_t cstep = bottom_blob.cstep;

int kk = 0;
#if __ARM_FEATURE_DOTPROD
Expand Down Expand Up @@ -8046,7 +8046,7 @@ static void convolution_im2col_input_tile_conv1x1s1d1_int8(const Mat& bottom_blo
if (elempack == 8)
{
const signed char* p0 = (const signed char*)bottom_blob.channel(k / 8) + (j + jj) * 8;
const int cstep = bottom_blob.cstep * 8;
const size_t cstep = bottom_blob.cstep * 8;

int kk = 0;
#if __ARM_FEATURE_MATMUL_INT8
Expand Down Expand Up @@ -8135,7 +8135,7 @@ static void convolution_im2col_input_tile_conv1x1s1d1_int8(const Mat& bottom_blo
if (elempack == 1)
{
const signed char* p0 = (const signed char*)bottom_blob.channel(k) + (j + jj);
const int cstep = bottom_blob.cstep;
const size_t cstep = bottom_blob.cstep;

int kk = 0;
#if __ARM_NEON
Expand Down Expand Up @@ -8202,7 +8202,7 @@ static void convolution_im2col_input_tile_conv1x1s1d1_int8(const Mat& bottom_blo
if (elempack == 8)
{
const signed char* p0 = (const signed char*)bottom_blob.channel(k / 8) + (j + jj) * 8;
const int cstep = bottom_blob.cstep * 8;
const size_t cstep = bottom_blob.cstep * 8;

int kk = 0;
for (; kk < max_kk / 8; kk++)
Expand All @@ -8217,7 +8217,7 @@ static void convolution_im2col_input_tile_conv1x1s1d1_int8(const Mat& bottom_blo
if (elempack == 1)
{
const signed char* p0 = (const signed char*)bottom_blob.channel(k) + (j + jj);
const int cstep = bottom_blob.cstep;
const size_t cstep = bottom_blob.cstep;

int kk = 0;
for (; kk < max_kk; kk++)
Expand Down

0 comments on commit 54ab805

Please sign in to comment.