[riot-notifications] [RIOT] Bloom bytes (#176)
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications