From: batt Date: Mon, 1 Oct 2007 10:46:33 +0000 (+0000) Subject: Add rotating hash init function. X-Git-Tag: 1.0.0~423 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=71daf6b25bbb86414b47f9c21426a5441c2c3c75;p=bertos.git Add rotating hash init function. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@818 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/algos/rotating_hash.h b/algos/rotating_hash.h index d307c5ca..bc7f1a40 100755 --- 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. */