Skip to content

Commit

Permalink
Merge pull request alibaba#679 from muare/master
Browse files Browse the repository at this point in the history
[MNN:Bugfix] 修复 Windows x86 backend 编译出错
  • Loading branch information
jxt1234 authored Mar 15, 2020
2 parents b059c81 + b84d0ad commit bde894a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/backend/cpu/x86_x64/sse/CommonOptFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ void _SSE_MNNReluWithSlopeChannel(float* dst, const float* src, const float* slo
auto src = _mm_loadu_ps(srcZ + 4 * i);
auto mask0 = _mm_cmplt_ps(src, zero);
auto mask1 = _mm_cmpge_ps(src, zero);
auto other = src * slopeZ;
_mm_storeu_ps(dstZ + 4 * i, _mm_and_ps(other, mask0) + _mm_and_ps(src, mask1));
auto other = _mm_mul_ps(src, slopeZ);
_mm_storeu_ps(dstZ + 4 * i, _mm_add_ps(_mm_and_ps(other, mask0), _mm_and_ps(src, mask1)));
}
}
}

0 comments on commit bde894a

Please sign in to comment.