Set to const col_address; add static assert check on array dimension.
[bertos.git] / algos / rotating_hash.h
index d307c5cafbd068fccdddaa42f7b585f26e44f0a4..bc7f1a409fc6268878222f605be968cf7fba5cb5 100755 (executable)
@@ -19,6 +19,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.2  2007/10/01 10:46:33  batt
+ *#* Add rotating hash init function.
+ *#*
  *#* Revision 1.1  2007/06/07 09:11:17  batt
  *#* Add rotating hash algorithm.
  *#*
 
 typedef uint16_t rotating_t;
 
+
+/**
+ * Init rotating checksum.
+ */
+INLINE void rotating_init(rotating_t *rot)
+{
+       *rot = 0;
+}
+
 /**
  * Update checksum pointed by \c rot with \c c data.
  */