summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-26 14:29:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-26 14:29:13 +0000
commitf2103ee4a99c8a6ad7498dc500e214406ee47472 (patch)
tree0cdc9fa3b6e9e10920cfe14c27cac389c2a0d5a3 /include
parente860f30bf172866c347263b8d0e29342c83f56a4 (diff)
* st.c: moved murmur hash from string.c. [ruby-dev:39376]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/intern.h3
-rw-r--r--include/ruby/st.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index e01e2d36ff..b829c2741b 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -639,6 +639,9 @@ st_index_t rb_hash_start(st_index_t);
st_index_t rb_hash_uint32(st_index_t, uint32_t);
st_index_t rb_hash_uint(st_index_t, st_index_t);
st_index_t rb_hash_end(st_index_t);
+#define rb_hash_uint32(h, i) st_hash_uint32(h, i)
+#define rb_hash_uint(h, i) st_hash_uint(h, i)
+#define rb_hash_end(h) st_hash_end(h)
st_index_t rb_str_hash(VALUE);
int rb_str_hash_cmp(VALUE,VALUE);
int rb_str_comparable(VALUE, VALUE);
diff --git a/include/ruby/st.h b/include/ruby/st.h
index 412a0129c7..d491957ba1 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -108,6 +108,12 @@ st_index_t st_numhash(st_data_t);
int st_strcasecmp(const char *s1, const char *s2);
int st_strncasecmp(const char *s1, const char *s2, size_t n);
size_t st_memsize(const st_table *);
+st_index_t st_hash(const void *ptr, size_t len, st_index_t h);
+st_index_t st_hash_uint32(st_index_t h, unsigned int i);
+st_index_t st_hash_uint(st_index_t h, st_index_t i);
+st_index_t st_hash_end(st_index_t h);
+st_index_t st_hash_start(st_index_t h);
+#define st_hash_start(h) ((st_index_t)(h))
#if defined(__cplusplus)
#if 0