From 618b4ab8810ea883224d869035c75a6af8bf542b Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Mon, 14 Nov 2022 14:15:48 +0800 Subject: [PATCH] refactor: do some internal refactor. --- source/libs/function/src/detail/tavgfunction.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/libs/function/src/detail/tavgfunction.c b/source/libs/function/src/detail/tavgfunction.c index 9c3b9cf573..8c26886329 100644 --- a/source/libs/function/src/detail/tavgfunction.c +++ b/source/libs/function/src/detail/tavgfunction.c @@ -152,8 +152,8 @@ static void i32VectorSumAVX2(const int32_t* plist, int32_t numOfRows, SAvgRes* p } // let sum up the final results - const int64_t* q = (const int64_t*)∑ - pRes->sum.isum += q[0] + q[1] + q[2] + q[3]; + const int32_t* q = (const int32_t*)∑ + pRes->sum.isum += q[0] + q[1] + q[2] + q[3] + q[4] + q[5] + q[6] + q[7]; int32_t startIndex = rounds * bitWidth; for (int32_t j = 0; j < remainder; ++j) { -- GitLab