/*
   +----------------------------------------------------------------------+
   | HipHop for PHP                                                       |
   +----------------------------------------------------------------------+
   | Copyright (c) 2010- Facebook, Inc. (http://www.facebook.com)         |
   | Copyright (c) 1997-2010 The PHP Group                                |
   +----------------------------------------------------------------------+
   | This source file is subject to version 3.01 of the PHP license,      |
   | that is bundled with this package in the file LICENSE, and is        |
   | available through the world-wide-web at the following url:           |
   | http://www.php.net/license/3_01.txt                                  |
   | If you did not receive a copy of the PHP license and are unable to   |
   | obtain it through the world-wide-web, please send a note to          |
   | license@php.net so we can mail you a copy immediately.               |
   +----------------------------------------------------------------------+
*/

#ifndef __EXT_HASH_MURMUR_H__
#define __EXT_HASH_MURMUR_H__

#include <stdint.h>

namespace HPHP {

uint64_t murmur_hash_64A(const void* const key, const size_t len,
                         const uint32_t seed);

uint64_t murmur_rehash_64A(uint64_t k);

/* Seed constant for MurmurHash64A selected by search for optimum diffusion
 * including recursive application.
 */
static const int SEED = 4193360111ul;

///////////////////////////////////////////////////////////////////////////////
}

#endif // __EXT_HASH_MURMUR_H__


