X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_hashtable.h;h=79f5f0501845e3ce80012533836ac6f53f59f0be;hb=ce3ab888e2ca5f14a89da45b4dc64122ff1e1050;hp=6dc69e9a9f75b8073dfae6f5ce79402722ac17a1;hpb=513222398724762540dea9cbe9aea6e1578c80ac;p=palacios.git diff --git a/palacios/include/palacios/vmm_hashtable.h b/palacios/include/palacios/vmm_hashtable.h index 6dc69e9..79f5f05 100644 --- a/palacios/include/palacios/vmm_hashtable.h +++ b/palacios/include/palacios/vmm_hashtable.h @@ -97,16 +97,6 @@ struct hashtable; * */ - - - -/* These cannot be inlined because they are referenced as fn ptrs */ -ulong_t v3_hash_long(ulong_t val, uint_t bits); -ulong_t v3_hash_buffer(uchar_t * msg, uint_t length); - - - - #define DEFINE_HASHTABLE_INSERT(fnname, keytype, valuetype) \ static int fnname (struct hashtable * htable, keytype key, valuetype value) { \ return v3_htable_insert(htable, (addr_t)key, (addr_t)value); \ @@ -126,6 +116,11 @@ ulong_t v3_hash_buffer(uchar_t * msg, uint_t length); +/* These cannot be inlined because they are referenced as fn ptrs */ +ulong_t v3_hash_long(ulong_t val, uint_t bits); +ulong_t v3_hash_buffer(uchar_t * msg, uint_t length); + + struct hashtable * v3_create_htable(uint_t min_size, uint_t (*hashfunction) (addr_t key),