release/src/linux/linux/fs/jffs/intrep.c
/* This routine calculates checksums in JFFS.  */
This routine calculates checksums in JFFS.
This routine calculates checksums in JFFS .
__u32
jffs_checksum(const void *data, int size)
{
	__u32 sum = 0;
	__u8 *ptr = (__u8 *)data;
	while (size-- > 0) {
		sum += *ptr++;
	}
	D3(printk(", result: 0x%08x\n", sum));
	return sum;
}
__u32 jffs_checksum ( const void * data , int size ) { __u32 sum = 0 ; __u8 * ptr = ( __u8 * ) data ; while ( size -- > 0 ) { sum += * ptr ++ ; } D3 ( printk ( " \n " , sum ) ) ; return sum ; }
This routine calculates checksums in JFFS.
This routine calculates checksums in JFFS .