Skip to content

Commit bde894a

Browse files
authored
Merge pull request #679 from muare/master
[MNN:Bugfix] 修复 Windows x86 backend 编译出错
2 parents b059c81 + b84d0ad commit bde894a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/backend/cpu/x86_x64/sse/CommonOptFunction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ void _SSE_MNNReluWithSlopeChannel(float* dst, const float* src, const float* slo
7373
auto src = _mm_loadu_ps(srcZ + 4 * i);
7474
auto mask0 = _mm_cmplt_ps(src, zero);
7575
auto mask1 = _mm_cmpge_ps(src, zero);
76-
auto other = src * slopeZ;
77-
_mm_storeu_ps(dstZ + 4 * i, _mm_and_ps(other, mask0) + _mm_and_ps(src, mask1));
76+
auto other = _mm_mul_ps(src, slopeZ);
77+
_mm_storeu_ps(dstZ + 4 * i, _mm_add_ps(_mm_and_ps(other, mask0), _mm_and_ps(src, mask1)));
7878
}
7979
}
8080
}

0 commit comments

Comments
 (0)