diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-08-08 09:51:50 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-08-08 09:51:50 -0700 |
commit | 89a6c6d71f87bab63ee17c60f0feb56215f5c116 (patch) | |
tree | ad85ce1964fa05452e6f74e32cf5e3653c312fef /src | |
parent | eb67fb9109a24d866fe81abe4dd221e6fe18416f (diff) |
Whoops, re-add static to MurmurHash.
Diffstat (limited to 'src')
-rw-r--r-- | src/upb_table.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/upb_table.c b/src/upb_table.c index 314594a..036d175 100644 --- a/src/upb_table.c +++ b/src/upb_table.c @@ -13,7 +13,7 @@ static const upb_inttable_key_t EMPTYENT = 0; static const double MAX_LOAD = 0.85; -uint32_t MurmurHash2(const void *key, size_t len, uint32_t seed); +static uint32_t MurmurHash2(const void *key, size_t len, uint32_t seed); /* We use 1-based indexes into the table so that 0 can be "NULL". */ static struct upb_inttable_entry *intent(struct upb_inttable *t, int32_t i) { @@ -238,7 +238,7 @@ void *upb_strtable_next(struct upb_strtable *t, struct upb_strtable_entry *cur) // 1. It will not work incrementally. // 2. It will not produce the same results on little-endian and big-endian // machines. -uint32_t MurmurHash2(const void *key, size_t len, uint32_t seed) +static uint32_t MurmurHash2(const void *key, size_t len, uint32_t seed) { // 'm' and 'r' are mixing constants generated offline. // They're not really 'magic', they just happen to work well. |