X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=algos%2Frotating_hash.h;h=15344be2147110d7e68f247be3b1cc9384a4c384;hb=390b6f25afb04fee925be597381e06ce5a9e8110;hp=d307c5cafbd068fccdddaa42f7b585f26e44f0a4;hpb=8dc518b4bd7884157a6d6f1f510bac2583ffe502;p=bertos.git diff --git a/algos/rotating_hash.h b/algos/rotating_hash.h old mode 100755 new mode 100644 index d307c5ca..15344be2 --- a/algos/rotating_hash.h +++ b/algos/rotating_hash.h @@ -1,6 +1,31 @@ /** * \file * @@ -19,6 +44,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. *#* @@ -34,6 +62,15 @@ 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. */