]> 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)
commitc12d8a3171a06d002389fe3c32330f183a0738e5
tree2bc9da2137fca3e403ace941d9709c5974f14da7
parente8677644a83e3005bcb2482c0819c366cc7087ce
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