X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=algos%2Frotating_hash.h;h=123f2d3ba30cf184cd7c2c5daa9ad45ef94fcc74;hb=6bcec3bab157f4799f68d87b4d99038b18461c78;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..123f2d3b --- a/algos/rotating_hash.h +++ b/algos/rotating_hash.h @@ -1,6 +1,31 @@ /** * \file * @@ -17,15 +42,6 @@ * \author Francesco Sacchi */ -/*#* - *#* $Log$ - *#* Revision 1.1 2007/06/07 09:11:17 batt - *#* Add rotating hash algorithm. - *#* - *#* Revision 1.1 2007/01/12 20:30:49 batt - *#* Add right Rotating hash file. - *#* - *#*/ #ifndef ALGOS_ROTATING_H #define ALGOS_ROTATING_H @@ -34,6 +50,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. */