JFFS3 & performance

Joakim Tjernlund Joakim.Tjernlund at lumentis.se
Sat Dec 18 12:51:08 EST 2004


> On Sat, 18 December 2004 18:10:42 +0100, Joakim Tjernlund wrote:
> > 
> > hmm, what about the kernel version of crc32. I think that one should
> > be classified as 32 bits at a time. Is that the version you use in your tests?
> 
> I use the zlib version on my machine, zlib 1.2.2.  It should have
> about the same performance.  At least that's what I thought when I
> last looked at the code.

I will have a look.

BTW, have you tested your crc16 for correctness?
It doesn't give the same result as mine or Thomas versions. 

uint32_t crc16(uint32_t crc, const void *_s, size_t len)
{
	const uint16_t *s = _s;
	uint32_t ret = crc;
	for (; len>1; len-=2,s++) {
		ret <<= 16;
		ret += *s;
		ret %= 65521;
	}
	return ret;
}




More information about the linux-mtd mailing list