Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: kinosearch: commits

r3864 - trunk/c_src/KinoSearch/Util

 

 

kinosearch commits RSS feed   Index | Next | Previous | View Threaded


marvin at rectangular

Sep 10, 2008, 3:37 PM

Post #1 of 1 (2464 views)
Permalink
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 [at] rectangular
http://www.rectangular.com/mailman/listinfo/kinosearch-commits

kinosearch commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.