Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1185711
| From | Thomas Graf <tgraf@suug.ch> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] jhash: Deinline jhash, jhash2 and __jhash_nwords |
| Date | 2015-07-16 12:50 +0200 |
| Message-ID | <pMOTL-4d1-7@gated-at.bofh.it> (permalink) |
| References | <pMOh3-3se-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 07/16/15 at 12:02pm, Denys Vlasenko wrote: > +/* jhash - hash an arbitrary key > + * @k: sequence of bytes as key > + * @length: the length of the key > + * @initval: the previous hash, or an arbitray value > + * > + * The generic version, hashes an arbitrary sequence of bytes. > + * No alignment or length assumptions are made about the input key. > + * > + * Returns the hash value of the key. The result depends on endianness. > + */ > +u32 jhash(const void *key, u32 length, u32 initval) Shouldn't these live in lib/jhash.c or something? Otherwise everyone needs to depend on CONFIG_RHASHTABLE -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] jhash: Deinline jhash, jhash2 and __jhash_nwords Denys Vlasenko <dvlasenk@redhat.com> - 2015-07-16 12:10 +0200 Re: [PATCH] jhash: Deinline jhash, jhash2 and __jhash_nwords Thomas Graf <tgraf@suug.ch> - 2015-07-16 12:50 +0200
csiph-web