mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-26 01:14:04 +00:00
Merge pull request #3193 from Tilka/nan_check
video_core: optimize NaN check
This commit is contained in:
commit
4835342032
1 changed files with 2 additions and 2 deletions
|
@ -60,8 +60,8 @@ public:
|
|||
Float<M, E> operator*(const Float<M, E>& flt) const {
|
||||
float result = value * flt.ToFloat32();
|
||||
// PICA gives 0 instead of NaN when multiplying by inf
|
||||
if (!std::isnan(value) && !std::isnan(flt.ToFloat32()))
|
||||
if (std::isnan(result))
|
||||
if (std::isnan(result))
|
||||
if (!std::isnan(value) && !std::isnan(flt.ToFloat32()))
|
||||
result = 0.f;
|
||||
return Float<M, E>::FromFloat32(result);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue