On Fri, 12 May 2000 08:06:36 -0400, Jim Kasper wrote:
> On Thu, 08 May 2000 09:41 -0400 (EDT), Erik Mouw wrote:
>>BLOB doesn't contain memory test routines yet. My To Do list is >quite
> long...
>
> Does anyone have some nice little routines?
Bill Pringlemeir ([EMAIL PROTECTED]) posted this attached piece of
code a couple of months ago to the sa1100-linux mailinglist.
There is also some code with documentation at
http://reality.sgi.com/cbrady_denver/memtest86 .
Nicolas Pitre also wrote a memory tester to one of the arm-linux lists,
but I can't find it in my archive (Nico?).
Juan J. Quitela ([EMAIL PROTECTED]) posted a memory test suite to the
linux-kernel mailing list: http://carpanta.dc.fi.udc.es/~quintela/memtest/ .
Hope this helps,
Erik
--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: [EMAIL PROTECTED]
WWW: http://www-ict.its.tudelft.nl/~erik/
/*
* Test sequence length of 32 bit CRC polynomial.
*
*/
#include <stdio.h>
#include <stdlib.h>
#define POLY (0x04c11db7U)
int main(void)
{
unsigned long a = 0xffffffff;
int i = 0, j = 0;
do {
if(!(i&(1024*1024-1))) {
j++;
printf("%d MB.\r",j);
}
// printf("%.8x,", a);
// if((i%8)==7)
// printf("\n");
if(a&0x80000000) {
a <<= 1;
a |= 1;
a ^= POLY;
}
else {
a <<=1;
a |= 1;
}
i++;
} while(0xffffffff != a);
printf("\nSequence length is %d.\n", i);
return 0;
}