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

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


> @@ -62,19 +53,7 @@ static inline unsigned long djb2_hash(const char *str)
>   * (see sleepycat) and elsewhere.
>   *
>   */
> -static inline unsigned long sdbm_hash(const char *str)
> -{
> -    unsigned long hash;
> -    int c;
> -
> -    hash = 0;
> -
> -    while ((c = (unsigned char) * str++)) {
> -        hash = c + (hash << 6) + (hash << 16) - hash;
> -    }
> -
> -    return hash;
> -}
> +uint32_t sdbm_hash(const uint8_t *buf, size_t len);

Doxygen documentation...h

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


More information about the notifications mailing list