crypto/sha1: add real workaround for msvc/arm64 bad codegen

This commit is contained in:
Shawn Hoffman
2022-08-02 23:05:45 -07:00
parent 78142e30cc
commit bf5076eb01
3 changed files with 14 additions and 5 deletions

View File

@ -293,10 +293,6 @@ private:
template <size_t Func>
static inline constexpr State FourRounds(State state, uint32x4_t w)
{
#ifdef _MSC_VER
// FIXME it seems the msvc optimizer gets a little too happy
_ReadBarrier();
#endif
return {f<Func>(state, w), vsha1h_u32(vgetq_lane_u32(state.abcd, 0))};
}