]> git.sur5r.net Git - bacula/bacula/commit
crc32 optimization
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>
Sun, 8 Aug 2010 16:00:29 +0000 (18:00 +0200)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 23 Aug 2010 07:12:33 +0000 (09:12 +0200)
commit7cac2eb9bb63d90ab3b1ec924a7f4e9f3cc73655
tree77ab29158f54e6e87c0f6da0ad99e6b1dcbfe750
parente09ef41f4fff3a8480ccd6bc60064de593daa8de
crc32 optimization

This is a port of the Linux kernel crc32 function I developed
over the years. This impl. is several times faster than the one it
replaces. Adapted to bacula usage.

The new crc32 function needs to know the endian of the
computing CPU and it uses HAVE_BIG_ENDIAN and HAVE_LITTLE_ENDIAN
defines to deduce what endian the CPU uses.
bacula/src/lib/crc32.c