~ubuntu-branches/ubuntu/wily/xserver-xorg-video-qxl/wily-proposed

« back to all changes in this revision

Viewing changes to src/murmurhash3.h

  • Committer: Package Import Robot
  • Author(s): Liang Guo, Liang Guo, Cyril Brulebois
  • Date: 2012-03-16 16:13:52 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20120316161352-ustw8wt8181r2y83
Tags: 0.0.17-1
[ Liang Guo ]
* New upstream release.
* debian/copyright:
  - Remove src/lookup3.c, removed upstream.
  - Add src/murmurhash3.{c,h}, new file. 
* debian/source/options:
  - Ignore ChangeLog, included in upstream tarbar, but not in git.
* Remove translate-the-access-region.patch, applied upstream.
* Bump Standards-Version to 3.9.1, no changes needed.
[ Cyril Brulebois ]
* Fix typo in the debug package's description.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Source: http://code.google.com/p/smhasher/wiki/MurmurHash3
 
2
 
 
3
//-----------------------------------------------------------------------------
 
4
// MurmurHash3 was written by Austin Appleby, and is placed in the public
 
5
// domain. The author hereby disclaims copyright to this source code.
 
6
 
 
7
#ifndef _MURMURHASH3_H_
 
8
#define _MURMURHASH3_H_
 
9
 
 
10
//-----------------------------------------------------------------------------
 
11
// Platform-specific functions and macros
 
12
 
 
13
// Microsoft Visual Studio
 
14
 
 
15
#if defined(_MSC_VER)
 
16
 
 
17
typedef unsigned char uint8_t;
 
18
typedef unsigned long uint32_t;
 
19
typedef unsigned __int64 uint64_t;
 
20
 
 
21
// Other compilers
 
22
 
 
23
#else   // defined(_MSC_VER)
 
24
 
 
25
#include <stdint.h>
 
26
 
 
27
#endif // !defined(_MSC_VER)
 
28
 
 
29
//-----------------------------------------------------------------------------
 
30
 
 
31
void MurmurHash3_x86_32  ( const void * key, int len, uint32_t seed, void * out );
 
32
 
 
33
void MurmurHash3_x86_128 ( const void * key, int len, uint32_t seed, void * out );
 
34
 
 
35
void MurmurHash3_x64_128 ( const void * key, int len, uint32_t seed, void * out );
 
36
 
 
37
//-----------------------------------------------------------------------------
 
38
 
 
39
#endif // _MURMURHASH3_H_