Mailing List Archive

r3864 - trunk/c_src/KinoSearch/Util
Author: creamyg
Date: 2008-09-10 15:37:41 -0700 (Wed, 10 Sep 2008)
New Revision: 3864

Modified:
trunk/c_src/KinoSearch/Util/Hash.c
Log:
Inline a few static functions in Hash.c.


Modified: trunk/c_src/KinoSearch/Util/Hash.c
===================================================================
--- trunk/c_src/KinoSearch/Util/Hash.c 2008-09-10 22:37:07 UTC (rev 3863)
+++ trunk/c_src/KinoSearch/Util/Hash.c 2008-09-10 22:37:41 UTC (rev 3864)
@@ -26,18 +26,18 @@
i32_t hash_val;
};

-static HashEntry*
+static INLINE HashEntry*
new_entry(const CharBuf *key, Obj *value, i32_t hash_val, HashEntry *next);

/* Reset all iterator values. Hash_iter_init must be called to start
* iterator again.
*/
-static void
+static INLINE void
kill_iter(Hash *self);

/* Double the number of buckets and redistribute all entries.
*/
-static void
+static INLINE void
rebuild_hash(Hash *self);

Hash*
@@ -331,7 +331,7 @@
self->next_entry = next_entry;
}

-static void
+static INLINE void
kill_iter(Hash *self)
{
self->iter_bucket = 0;
@@ -499,7 +499,7 @@
}


-static void
+static INLINE void
rebuild_hash(Hash *self)
{
HashEntry **old_buckets = self->buckets;


_______________________________________________
kinosearch-commits mailing list
kinosearch-commits@rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch-commits