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

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


>  
>  /**
>   * sax_hash
>   *
>   * Shift, Add, XOR
>   */
> -static inline unsigned int sax_hash(const char *key)
> -{
> -    unsigned int h;
> -
> -    h = 0;
> -
> -    while (*key) {
> -        h ^= (h << 5) + (h >> 2) + (unsigned char) * key++;
> -    }
> -
> -    return h;
> -}
> -
> +uint32_t sax_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#r5990039
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20130826/23fb60f0/attachment.html>


More information about the notifications mailing list