Thanks Bluefire101 for reporting this (eventually) undefined behavior (depending on who you ask).

Even if there was no problem, code should always be clear on what it does.
This commit is contained in:
ramapcsx2 2014-07-01 15:43:26 +02:00
parent 0ddb77c048
commit ecb42cad9b

View File

@ -366,13 +366,15 @@ template< typename T > void xWrite( T val );
xRegisterSSE& operator++()
{
++Id &= (iREGCNT_XMM-1);
++Id;
Id &= (iREGCNT_XMM - 1);
return *this;
}
xRegisterSSE& operator--()
{
--Id &= (iREGCNT_XMM-1);
--Id;
Id &= (iREGCNT_XMM - 1);
return *this;
}