u-boot/lib_generic
Joakim Tjernlund 3ee8c12071 crc32: Impl. linux optimized crc32()
Ported over the more efficient linux crc32() function.
A quick comparsion on ppc:
After changing the old crc32 to do 4 bytes in the
inner loop to be able to compare with new version one can note:
- old inner loop has 61 insn, new has 19 insn.
- new crc32 does one 32 bit load of data to crc while
  the old does four 8 bits loads.
- size is bit bigger for the new crc32:
  1392(old) 1416(new) of text. The is because the new version
  shares code with crc32_no_comp() instead of duplicating code.
- about 33% faster on ppc:
  New > crc 0 0xfffffff -> 39 secs
  Old > crc 0 0xfffffff -> 60 secs

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2009-12-02 23:42:40 +01:00
..
2009-03-20 22:39:15 +01:00
2008-12-15 22:05:36 +01:00
2008-08-29 12:25:02 +02:00
2009-12-02 23:42:40 +01:00
2000-07-19 14:09:16 +00:00
2003-06-27 21:31:46 +00:00
2008-07-11 01:16:00 +02:00
2008-10-18 21:54:01 +02:00
2008-06-30 22:57:16 +02:00
2009-09-04 23:04:20 +02:00