Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1:Update
sleuthkit
sleuthkit-4.1.0-UPSTREAM-crc.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sleuthkit-4.1.0-UPSTREAM-crc.patch of Package sleuthkit
Index: sleuthkit-4.1.0/tsk/base/crc.c =================================================================== --- sleuthkit-4.1.0.orig/tsk/base/crc.c +++ sleuthkit-4.1.0/tsk/base/crc.c @@ -161,30 +161,6 @@ ulong cm_tab (p_cm_t p_cm, int index) } -void generate_crc_table(short *crctab[], p_cm_t p_cm){ - int i, j; - unsigned long bit, crc; - unsigned long crchighbit = (unsigned long)1 << (p_cm->cm_width-1); - unsigned long crcmask = ((((unsigned long)1<<(p_cm->cm_width-1))-1)<<1)|1; - - for (i=0; i<256; i++) - { - crc=(unsigned long)i; - if(p_cm->cm_refin) crc = reflect(crc,8); - crc <<= p_cm->cm_width-8; - for(j=0; j<8; j++) - { - bit = crc & crchighbit; - crc <<=1; - if(bit) crc ^=p_cm->cm_poly; - } - if(p_cm->cm_refin) crc = reflect(crc,p_cm->cm_width); - crc &= crcmask; - crctab[i]= crc; - } - return; -} - /******************************************************************************/ /* End of crcmodel.c */ /******************************************************************************/
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor