mruby.h: move integer hash function from khash.h

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-03-20 23:25:17 +09:00
parent 3ccc98fa32
commit 96fa3461f0
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -1543,6 +1543,8 @@ mrbmemset(void *s, int c, size_t n)
#define memset(a,b,c) mrbmemset(a,b,c)
#endif
#define mrb_int_hash_func(mrb,key) (uint32_t)((key)^((key)<<2)^((key)>>2))
MRB_END_DECL
#endif /* MRUBY_H */