Skip to content

Commit

Permalink
Set DAZ and FTZ
Browse files Browse the repository at this point in the history
  • Loading branch information
Nekotekina committed May 9, 2018
1 parent 5d15d64 commit 6fa4de8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rpcs3/Emu/Cell/PPUThread.cpp
Expand Up @@ -508,6 +508,12 @@ void ppu_thread::cpu_task()
{
std::fesetround(FE_TONEAREST);

if (g_cfg.core.ppu_decoder != ppu_decoder_type::precise)
{
// Set DAZ and FTZ
//_mm_setcsr(_mm_getcsr() | 0x8840);
}

// Execute cmd_queue
while (cmd64 cmd = cmd_wait())
{
Expand Down
6 changes: 6 additions & 0 deletions rpcs3/Emu/Cell/SPUThread.cpp
Expand Up @@ -413,6 +413,12 @@ void SPUThread::cpu_task()
{
std::fesetround(FE_TOWARDZERO);

if (g_cfg.core.spu_decoder != spu_decoder_type::precise)
{
// Set DAZ and FTZ
//_mm_setcsr(_mm_getcsr() | 0x8840);
}

g_tls_log_prefix = []
{
const auto cpu = static_cast<SPUThread*>(get_current_cpu_thread());
Expand Down

0 comments on commit 6fa4de8

Please sign in to comment.