1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #29170 from varun-jaiswal17:fix/msvc19-29-static-constexpr

Upgrade WBUF_SIZE/SUMBUF to static constexpr for MSVC 19.29
This commit is contained in:
Alexander Smorkalov
2026-05-29 07:47:41 +03:00
committed by GitHub
@@ -1164,7 +1164,7 @@ static void convInt8BlockDepthwise(const void* inp_, const void* residual_,
int ntiles = (planeblocks_ + TILE - 1) / TILE;
int total_tasks = N * K1 * ntiles;
#if CV_AVX2 && (defined(__x86_64__) || defined(_M_X64))
constexpr int WBUF_SIZE = 128 * 8; // 128 * K0, K0=8; named for MSVC
static constexpr int WBUF_SIZE = 128 * 8; // 128 * K0, K0=8; static for MSVC 19.29
#endif
parallel_for_(Range(0, total_tasks), [&](const Range& range) {
@@ -1587,7 +1587,7 @@ void convInt8Block(const void* inp_, const void* residual_,
int total_blocks = N * ngroups * Kblk;
#if CV_AVX2
constexpr int SUMBUF_SIZE = 8 * 8; // SPAT_BLOCK_SIZE * K0, both=8; named for MSVC
static constexpr int SUMBUF_SIZE = 8 * 8; // SPAT_BLOCK_SIZE * K0, both=8; static for MSVC 19.29
#endif
parallel_for_(Range(0, total_blocks), [&](const Range& range) {