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

René Kijewski notifications at github.com
Mon Aug 26 02:26:56 CEST 2013


> + *
> + * This file subject to the terms and conditions of the GNU Lesser General
> + * Public License. See the file LICENSE in the top level directory for more
> + * details.
> + */
> +
> +/**
> + * @file
> + * @autor       Jason Linehan <patientulysses at gmail.com>
> + * @author      Freie Universität Berlin, Computer Systems & Telematics
> + * @author      Christian Mehlis <mehlis at inf.fu-berlin.de>
> + */
> +
> +#include "hashes.h"
> +
> +uint32_t djb2_hash(const uint32_t *buf, int len)

Why do these implementations operate on `uint32_t`? All these hashes are intended to iterate over bytes. Of course they work as they are implemented now, but the results might be sup-optimal. Also, if at some point in the future someone needs hash functions that operate on byte sequences, he has to copy the whole file.

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


More information about the notifications mailing list