<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/lib/checksum.c, branch mybooklive</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/lib/checksum.c?h=mybooklive</id>
<link rel='self' href='https://git.amat.us/linux/atom/lib/checksum.c?h=mybooklive'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2009-06-19T12:58:13Z</updated>
<entry>
<title>lib/checksum.c: fix endianess bug</title>
<updated>2009-06-19T12:58:13Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2009-06-19T08:41:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=32a9ff9cc55b42543a84bca90b070df92af72671'/>
<id>urn:sha1:32a9ff9cc55b42543a84bca90b070df92af72671</id>
<content type='text'>
The new generic checksum code has a small dependency on endianess and
worked only on big-endian systems. I could not find a nice efficient
way to express this, so I added an #ifdef. Using
'result += le16_to_cpu(*buff);' would have worked as well, but
would be slightly less efficient on big-endian systems and IMHO
would not be clearer.

Also fix a bug that prevents this from working on 64-bit machines.
If you have a 64-bit CPU and want to use the generic checksum
code, you should probably do some more optimizations anyway, but
at least the code should not break.

Reported-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>add generic lib/checksum.c</title>
<updated>2009-06-11T19:02:51Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2009-05-13T22:56:38Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=26a28fa4fea5b8c65713aa50c124f76a88c7924d'/>
<id>urn:sha1:26a28fa4fea5b8c65713aa50c124f76a88c7924d</id>
<content type='text'>
Add a generic (unoptimized) implementation of checksum.c in pure C
for use by all architectures that cannot be bother with implementing
their own version.

Based on microblaze code by Michal Simek &lt;monstr@monstr.eu&gt;

Cc: Michal Simek &lt;monstr@monstr.eu&gt;
Signed-off-by: Remis Lima Baima &lt;remis.developer@googlemail.com&gt;
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
</feed>
