From 71daf6b25bbb86414b47f9c21426a5441c2c3c75 Mon Sep 17 00:00:00 2001 From: batt Date: Mon, 1 Oct 2007 10:46:33 +0000 Subject: [PATCH] Add rotating hash init function. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@818 38d2e660-2303-0410-9eaa-f027e97ec537 --- algos/rotating_hash.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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. */ -- 2.25.1