~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/hash/crc32.h

  • Committer: Jay Pipes
  • Date: 2009-10-07 19:56:04 UTC
  • mto: (1234.1.1 push) (1237.2.10 push)
  • mto: This revision was merged to the branch mainline in revision 1193.
  • Revision ID: jpipes@serialcoder-20091007195604-24yec9o6hyi1pn03
Merge Monty's fixes for moving crc32 function into a library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 * src/usr.bin/cksum/crc32.c.
6
6
 */
7
7
 
8
 
#ifndef DRIZZLED_CRC32_H
9
 
#define DRIZZLED_CRC32_H
10
 
 
11
 
uint32_t hash_crc32(const char *key, size_t key_length);
12
 
 
13
 
#endif /* DRIZZLED_CRC32_H */
 
8
#ifndef DRIZZLED_HASH_CRC32_H
 
9
#define DRIZZLED_HASH_CRC32_H
 
10
 
 
11
namespace drizzled
 
12
{
 
13
namespace hash
 
14
{
 
15
 
 
16
uint32_t crc32(const char *key, size_t key_length);
 
17
 
 
18
} /* namespace hash */
 
19
} /* namespace drizzled */
 
20
 
 
21
#endif /* DRIZZLED_HASH_CRC32_H */