Artifact cf2d664ff319f813c950f4478685854e56c913d0:
- File work/libopennet/crc.c — part of check-in [e81ddf1c7b] at 2004-02-27 00:32:47 on branch trunk — This is the importation of many files, again. (user: rkeene size: 277)
#include "conf.h" #include "crc.h" uint32_t ELFCRC(const uint32_t start, const unsigned char *name, const uint32_t n) { uint32_t i,h,g; h=start; for (i=0;i<n;i++) { h = (h << 4) + (*name++); if ((g = (h & 0xf0000000))) h ^= (g >> 24); h &= ~g; } return(h); }