Re: [Yaffs] the function "yaffs_ecc_calc_other" does not wor…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Ross Younger
Date:  
To: yaffs
Subject: Re: [Yaffs] the function "yaffs_ecc_calc_other" does not work?!
On 18/04/12 23:05, Ezio Zhang wrote:
> hey guys.i'm usng yaffs_ecc_calc_other() calculating ecc.
> for(i=0;i<2048;i++) { in_data[i]=i; }
> after that,i print the ecc_value,but three member of it all are 0.


I noticed that the first time I played with ECCs. It's OK; it's a
consequence of using such an input data set with such a pattern. Try
something that's less symmetric and you should get different output.

for(i=0;i<2048;i++) { in_data[i]=rand(); }


Ross