Opt-in set DAZ and FTZ

This commit is contained in:
Nekotekina 2018-05-12 22:55:08 +03:00
parent a77896c1b6
commit 4c7afb6952
3 changed files with 11 additions and 9 deletions

View file

@ -413,7 +413,7 @@ void SPUThread::cpu_task()
{
std::fesetround(FE_TOWARDZERO);
if (g_cfg.core.spu_decoder != spu_decoder_type::precise)
if (g_cfg.core.set_daz_and_ftz && g_cfg.core.spu_decoder != spu_decoder_type::precise)
{
// Set DAZ and FTZ
_mm_setcsr(_mm_getcsr() | 0x8840);