X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=algos%2Frotating_hash.h;h=bc7f1a409fc6268878222f605be968cf7fba5cb5;hb=800a692eb5ebe153f814a94109dd4deaca8997ad;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..bc7f1a40 --- a/algos/rotating_hash.h +++ b/algos/rotating_hash.h @@ -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. *#* @@ -34,6 +37,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. */