[U-Boot] [PATCH] crc32: Impl. linux optimized crc32()

Wolfgang Denk wd at denx.de
Tue Nov 3 17:02:27 CET 2009


Dear Joakim Tjernlund,

In message <1257263550-21504-1-git-send-email-Joakim.Tjernlund at transmode.se> you wrote:
> 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) 1428(new) of text. Can probably be shrunk
>   somewhat by inlining crc32().

The Purpose of Computing is Insight, Not Numbers.

So how much faster does the new code run, on a real machine? How much
time can be saved to mount a real JFFS2 file system, or to checksum a
reall image file?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
You young'uns. That was *long* before AltaVista,  DejaNews,  or  even
(gasp) the *Web*! In fact, we typed that thread on steam-powered card
punchers, and shipped it around via Pony Express.
            -- Randal Schwartz in <8cwww1cd0d.fsf at gadget.cscaper.com>


More information about the U-Boot mailing list