forked from mirror/OpenTTD
(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read
This commit is contained in:
4
win32.c
4
win32.c
@@ -2142,8 +2142,8 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
|
||||
#if defined(_MSC_VER)
|
||||
{
|
||||
uint64 seed = rdtsc();
|
||||
_random_seeds[0][0] = seed & 0xffffffff;
|
||||
_random_seeds[0][1] = seed >> 32;
|
||||
_random_seeds[0][0] = GB(seed, 0, 32);
|
||||
_random_seeds[0][1] = GB(seed, 32, 32);
|
||||
}
|
||||
#else
|
||||
_random_seeds[0][0] = GetTickCount();
|
||||
|
Reference in New Issue
Block a user