Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion stl/src/vector_algorithms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2222,11 +2222,25 @@ namespace {
}
}

#ifndef _M_ARM64EC
// TRANSITION, DevCom-10767462
template <_Min_max_mode _Mode, class _Traits, bool _Sign>
auto __std_minmax_impl_wrap(const void* const _First, const void* const _Last) noexcept {
auto _Rx = __std_minmax_impl<_Mode, _Traits, _Sign>(_First, _Last);
_mm256_zeroupper();
Comment thread
StephanTLavavej marked this conversation as resolved.
return _Rx;
}
#endif // ^^^ !defined(_M_ARM64EC) ^^^

template <_Min_max_mode _Mode, class _Traits, bool _Sign>
auto __std_minmax_disp(const void* const _First, const void* const _Last) noexcept {
#ifndef _M_ARM64EC
if (_Byte_length(_First, _Last) >= 32 && _Use_avx2()) {
return __std_minmax_impl<_Mode, typename _Traits::_Avx, _Sign>(_First, _Last);
if constexpr (_Traits::_Avx::_Is_floating) {
return __std_minmax_impl_wrap<_Mode, typename _Traits::_Avx, _Sign>(_First, _Last);
} else {
return __std_minmax_impl<_Mode, typename _Traits::_Avx, _Sign>(_First, _Last);
}
}

if (_Byte_length(_First, _Last) >= 16 && _Use_sse42()) {
Expand Down