[riot-notifications] [RIOT] Bloom bytes (#176)

Oleg Hahm notifications at github.com
Mon Aug 26 23:09:57 CEST 2013


> @@ -95,38 +74,14 @@ static inline unsigned long sdbm_hash(const char *str)
>   * It is now found mixed with otherwise respectable code, eg. cnews. sigh.
>   * [see also: tpop]
>   */
> -static inline unsigned long kr_hash(const char *str)
> -{
> -    unsigned int hash;
> -    unsigned int c;
> -
> -    hash = 0;
> -
> -    while ((c = (unsigned char) * str++)) {
> -        hash += c;
> -    }
> -
> -    return hash;
> -}
> +uint32_t kr_hash(const uint8_t *buf, size_t len);

Doxygen documentation...

---
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/176/files#r5990032
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130826/9c9527bc/attachment-0001.html>


More information about the notifications mailing list