提交 0ea42e11 编写于 作者: B Behdad Esfahbod

[cache] Minor

上级 0f520ada
......@@ -44,7 +44,7 @@ struct hb_cache_t
inline void clear (void)
{ memset (values, 255, sizeof (values)); }
inline bool get (unsigned int key, unsigned int *value)
inline bool get (unsigned int key, unsigned int *value) const
{
unsigned int k = key & ((1u<<cache_bits)-1);
unsigned int v = values[k].get_relaxed ();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册