summaryrefslogtreecommitdiff
path: root/ipc/ipc_table.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-09-30 03:58:43 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-09-30 09:15:08 +0200
commit3a0fae39873c9c7d73dc978888e45b87ad27d44e (patch)
tree061847ec497d24b684d7c1b14aa2e823295ebaba /ipc/ipc_table.h
parent3166fe0edd4a5cf0d690c094f2fd06647ba380e5 (diff)
ipc: use fast modulo operation in local hash table
* ipc/ipc_table.h: Document that table sizes must be powers of two. * ipc/ipc_hash.c (IH_LOCAL_HASH): Use fast modulo operation.
Diffstat (limited to 'ipc/ipc_table.h')
-rw-r--r--ipc/ipc_table.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ipc/ipc_table.h b/ipc/ipc_table.h
index 3cc5f56..311b9a7 100644
--- a/ipc/ipc_table.h
+++ b/ipc/ipc_table.h
@@ -45,6 +45,8 @@
* an ipc_table_size structure. These structures must
* be elements of an array, ipc_table_entries.
*
+ * Every its_size value must must be a power of two.
+ *
* The array must end with two elements with the same its_size value.
* Except for the terminating element, the its_size values must
* be strictly increasing. The largest (last) its_size value