Document cached hash state, used for incremental hashing. hash
authorPeter D. Barnes, Jr. <barnes26@llnl.gov>
Tue, 13 Nov 2012 16:42:50 -0800
branchhash
changeset 9938 46bceb30573b
parent 9937 afe5f01d019b
child 9939 8d4c99660585
Document cached hash state, used for incremental hashing.
src/core/model/hash-fnv.h
src/core/model/hash-murmur3.h
src/lte/model/lte-radio-bearer-tag.cc
src/lte/model/lte-radio-bearer-tag.h
src/lte/model/lte-rlc-um.cc
src/lte/model/lte-rlc-um.h
--- a/src/core/model/hash-fnv.h	Tue Nov 13 16:42:22 2012 -0800
+++ b/src/core/model/hash-fnv.h	Tue Nov 13 16:42:50 2012 -0800
@@ -96,7 +96,7 @@
   };
   //@{
   /**
-   * Cache last hash value, for incremental hashing
+   * Cache last hash value, for incremental hashing.
    */
   uint32_t m_hash32;
   uint64_t m_hash64;
--- a/src/core/model/hash-murmur3.h	Tue Nov 13 16:42:22 2012 -0800
+++ b/src/core/model/hash-murmur3.h	Tue Nov 13 16:42:50 2012 -0800
@@ -98,15 +98,17 @@
     SEED = 0x8BADF00D  // Ate bad food
   };
   //@{
-  /**
-   * Cache last hash value, and total bytes hashed,
+  /** 
+   * Cache last hash value, and total bytes hashed (needed to finalize),
    * for incremental hashing
    */
   uint32_t m_hash32;
   uint32_t m_size32;
-  uint64_t m_hash64[2];  // murmur3 produces 128-bit hash
+  /** murmur3 produces 128-bit hash and state; we use just the first 64-bits. */
+  uint64_t m_hash64[2];  
   uint64_t m_size64;
   //@}
+      
 };  // class Murmur3
 
 }  // namespace Function