Tweaked RandomWELL512a_SSE2::GetUnsigned().

It now has only one return, which seems to help gcc a bit when it's inlined.
This commit is contained in:
Peter Pettersson 2013-04-22 20:48:39 +02:00
parent d2926fc472
commit e38d3fae0a
1 changed files with 6 additions and 6 deletions

View File

@ -72,12 +72,12 @@ inline RandomWELL512a_SSE2::RandomWELL512a_SSE2(unsigned *seed)
inline unsigned RandomWELL512a_SSE2::GetUnsigned()
{
if (resultIndex < 4)
return result[resultIndex++];
GetUnsigned4(result);
resultIndex = 1;
return result[0];
if (resultIndex >= 4)
{
GetUnsigned4(result);
resultIndex = 0;
}
return result[resultIndex++];
}
inline double RandomWELL512a_SSE2::GetDouble()