#include <my_global.h>#include "my_sys.h"Include dependency graph for checksum.c:

Go to the source code of this file.
Functions | |
| ha_checksum | my_checksum (ha_checksum crc, const byte *pos, uint length) |
| ha_checksum my_checksum | ( | ha_checksum | crc, | |
| const byte * | pos, | |||
| uint | length | |||
| ) |
Definition at line 31 of file checksum.c.
References crc32().
Referenced by mi_checksum(), mi_static_checksum(), and mysql_checksum_table().
00032 { 00033 #ifdef NOT_USED 00034 const byte *end=pos+length; 00035 for ( ; pos != end ; pos++) 00036 crc=((crc << 8) + *((uchar*) pos)) + (crc >> (8*sizeof(ha_checksum)-8)); 00037 return crc; 00038 #else 00039 return (ha_checksum)crc32((uint)crc, (const uchar *)pos, length); 00040 #endif 00041 }
Here is the call graph for this function:

Here is the caller graph for this function:

1.4.7

