mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
replace hash fn
This commit is contained in:
parent
fcdff94be3
commit
f3ccd1c7d1
@ -23,6 +23,9 @@
|
||||
#include <atomic>
|
||||
#include <iostream>
|
||||
|
||||
#define EMH_WYHASH_HASH 1
|
||||
#include "hash_table8.hpp"
|
||||
|
||||
#ifdef POCKETPY_H
|
||||
#define UNREACHABLE() throw std::runtime_error( "L" + std::to_string(__LINE__) + " UNREACHABLE()! This should be a bug, please report it");
|
||||
#else
|
||||
|
@ -1660,7 +1660,7 @@ one-way search strategy.
|
||||
|
||||
#if EMH_WYHASH_HASH
|
||||
//#define WYHASH_CONDOM 1
|
||||
inline uint64_t wymix(uint64_t A, uint64_t B)
|
||||
inline static uint64_t wymix(uint64_t A, uint64_t B)
|
||||
{
|
||||
#if defined(__SIZEOF_INT128__)
|
||||
__uint128_t r = A; r *= B;
|
||||
|
@ -3,8 +3,8 @@
|
||||
|
||||
#include "pocketpy.h"
|
||||
|
||||
//#define PK_DEBUG_TIME
|
||||
#define PK_DEBUG_THREADED
|
||||
#define PK_DEBUG_TIME
|
||||
//#define PK_DEBUG_THREADED
|
||||
|
||||
struct Timer{
|
||||
const char* title;
|
||||
|
@ -36,8 +36,6 @@ public:
|
||||
};
|
||||
|
||||
|
||||
#include "hash_table8.hpp"
|
||||
|
||||
class PyVarDict: public emhash8::HashMap<_Str, PyVar> {
|
||||
using emhash8::HashMap<_Str, PyVar>::HashMap;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user