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

Oleg Hahm notifications at github.com
Mon Aug 26 23:10:15 CEST 2013


> -static inline unsigned int dek_hash(const char *str, unsigned int len)
> -{
> -    unsigned int hash;
> -    unsigned int c;
> -
> -    hash = len;
> -    c = 0;
> -
> -    while ((c = (unsigned int) * str++)) {
> -        hash = ((hash << 5) ^ (hash >> 27)) ^ (c);
> -    }
> -
> -    return hash;
> -}
> -
> +uint32_t dek_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#r5990043
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130826/0873666a/attachment.html>


More information about the notifications mailing list