aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/mesh2.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-05-10 17:20:46 +0000
committerBart Polot <bart@net.in.tum.de>2013-05-10 17:20:46 +0000
commit018cab1259cd62ef3377203520e777fbdfdab646 (patch)
treead2d7f2cf1183b2834bccaa6fd16b95f6f63254e /src/mesh/mesh2.h
parent008d9420203f95633403ac677433bd4502836149 (diff)
downloadgnunet-018cab1259cd62ef3377203520e777fbdfdab646.tar.gz
gnunet-018cab1259cd62ef3377203520e777fbdfdab646.zip
- Change hash to speed up 16/32 bit lookups
Diffstat (limited to 'src/mesh/mesh2.h')
-rw-r--r--src/mesh/mesh2.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesh/mesh2.h b/src/mesh/mesh2.h
index eaf386fd8..4b55c3c4e 100644
--- a/src/mesh/mesh2.h
+++ b/src/mesh/mesh2.h
@@ -319,6 +319,18 @@ GMC_min_pid (uint32_t a, uint32_t b);
319 319
320 320
321/** 321/**
322 * Expand a 32 bit value (message type) into a hash for a MultiHashMap (fast).
323 * WARNING: do not use for anything other than MultiHashMap!
324 * does not alter anything other than bits used by idx_of !
325 *
326 * @param i 32 bit integer value.
327 * @param h Hash code to fill.
328 */
329void
330GMC_hash32 (uint32_t i, struct GNUNET_HashCode *h);
331
332
333/**
322 * Convert a message type into a string to help debug 334 * Convert a message type into a string to help debug
323 * Generated with: 335 * Generated with:
324 * FIND: "#define ([^ ]+)[ ]*([0-9]+)" 336 * FIND: "#define ([^ ]+)[ ]*([0-9]+)"