projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set to const col_address; add static assert check on array dimension.
[bertos.git]
/
algos
/
rotating_hash.h
diff --git
a/algos/rotating_hash.h
b/algos/rotating_hash.h
index d307c5cafbd068fccdddaa42f7b585f26e44f0a4..bc7f1a409fc6268878222f605be968cf7fba5cb5 100755
(executable)
--- a/
algos/rotating_hash.h
+++ b/
algos/rotating_hash.h
@@
-19,6
+19,9
@@
/*#*
*#* $Log$
/*#*
*#* $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.
*#*
*#* Revision 1.1 2007/06/07 09:11:17 batt
*#* Add rotating hash algorithm.
*#*
@@
-34,6
+37,15
@@
typedef uint16_t rotating_t;
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.
*/
/**
* Update checksum pointed by \c rot with \c c data.
*/