mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Use global variable in gv_zeroupper
This commit is contained in:
parent
17b1a34ebf
commit
628354ba92
1 changed files with 3 additions and 1 deletions
|
@ -590,10 +590,12 @@ inline void gv_unset_zeroing_denormals()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool g_use_avx = utils::has_avx();
|
||||||
|
|
||||||
inline void gv_zeroupper()
|
inline void gv_zeroupper()
|
||||||
{
|
{
|
||||||
#if defined(ARCH_X64)
|
#if defined(ARCH_X64)
|
||||||
if (!utils::has_avx())
|
if (!g_use_avx)
|
||||||
return;
|
return;
|
||||||
#if defined(_M_X64)
|
#if defined(_M_X64)
|
||||||
_mm256_zeroupper();
|
_mm256_zeroupper();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue