From 6acb07dc76ffb22758005d3452b71b3bcebf7cd5 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Tue, 18 Nov 2008 01:26:07 +0000 Subject: Use memset instead, idiot. git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@84 0d43b9a7-5ab2-4d7b-af9d-f64450cef757 --- bitfield.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/bitfield.c b/bitfield.c index 9aad5ad..2b46576 100644 --- a/bitfield.c +++ b/bitfield.c @@ -122,21 +122,7 @@ DoBitfieldIteration(unsigned long *bitarray, unsigned long *bitoparray, long bit * ** (262,144 bits) * */ - /* - * ** Reset random number generator so things repeat. - * ** Also reset the bit array we work on. - * ** added by Uwe F. Mayer - * */ - randnum(13); - - - for (i = 0; i < ARRAY_SIZE; i++) { -#ifdef _LP64 - *(bitarray+i) = 0x5555555555555555UL; -#else - *(bitarray+i) = 0x55555555UL; -#endif - } + memset(bitarray, 0x55, ARRAY_SIZE); randnum(13); -- cgit v1.2.3