diff options
author | Matt Turner <mattst88@gmail.com> | 2008-11-18 01:26:07 +0000 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2008-11-18 01:26:07 +0000 |
commit | 6acb07dc76ffb22758005d3452b71b3bcebf7cd5 (patch) | |
tree | 4c4ab535ea77c6a05881f20e56e468699d35eca5 | |
parent | 57ad99db728e114096cad8461b04cf42464b0524 (diff) |
Use memset instead, idiot.
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@84 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
-rw-r--r-- | bitfield.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -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); |