From ac66e3e28f35c6939d3af68d1f0e26eb9b34e377 Mon Sep 17 00:00:00 2001 From: tron Date: Wed, 20 Jul 2005 15:29:28 +0000 Subject: (svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read --- win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32.c') diff --git a/win32.c b/win32.c index 09c994671..d3dfab0eb 100644 --- a/win32.c +++ b/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(); -- cgit v1.2.3-70-g09d2