mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +01:00
Use global variable in gv_zeroupper
This commit is contained in:
parent
17b1a34ebf
commit
628354ba92
@ -590,10 +590,12 @@ inline void gv_unset_zeroing_denormals()
|
||||
#endif
|
||||
}
|
||||
|
||||
inline bool g_use_avx = utils::has_avx();
|
||||
|
||||
inline void gv_zeroupper()
|
||||
{
|
||||
#if defined(ARCH_X64)
|
||||
if (!utils::has_avx())
|
||||
if (!g_use_avx)
|
||||
return;
|
||||
#if defined(_M_X64)
|
||||
_mm256_zeroupper();
|
||||
|
Loading…
Reference in New Issue
Block a user