/* * OTM_TextureFunction.cpp * * Created on: 28.10.2011 * Author: marts */ #include "OTM_Main.h" /* MyTypeHash GetHash(unsigned char *str, int len) // estimate the hash { MyTypeHash hash = 0; for (int i=0; i>=1) { crc = (crc >> 1) ^ (((crc ^ data) & 1) ? CRC32POLY : 0); } } return (crc); }