Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1408120
| From | "George Spelvin" <linux@horizon.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 00/10] String hash improvements |
| Date | 2016-05-27 17:00 +0200 |
| Message-ID | <rDroZ-4Ku-5@gated-at.bofh.it> (permalink) |
| References | <rCBqp-6AX-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
This is just the arch-specific part, updated as per requests. * Fix the stupidly overcomplex m68k conditionals (per Geert Uytterhoeven) * Renamed the arch file to <asm/hash.h> (per Geert Uytterhoeven) * Improved the comments on the progress of shift-and-add (Philippe De Muyter) * Added a self-test (per Michal Simek) Things I did *not* do, because I thought the concerns were withdrawn after discussion: (If I misintrepreted silence, please correct me!) * Use unconditional inclusion with an <asm-generic/hash.h> fallback. * Change the multi-line asm() formatting (Philippe De Muyter) * Move reference about algorithm credit (Philippe De Muyter) The big change is the addition of a self-test in lib/test_hash.c. That had to be written and the various tests validated by introducing deliberate bugs into <arch/hash.h>. Handling the fact that architectures are allowed to change the computed function (even though none of the ones written so far have used that freedom) added some complexity. I ended up using the value of the HAVE_ARCH_* macro. If it's 1, that means it's expected to be a clone of the generic versions, and it's compared against them. If it's 0, it's its own magic thing. The big question is, should these go through the arch trees, or may I just include them in the series to Linus? The latter is simpler for me, but obviously not okay without permission.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 00/10] String hash improvements "George Spelvin" <linux@sciencehorizons.net> - 2016-05-25 09:30 +0200
Re: [PATCH 00/10] String hash improvements Geert Uytterhoeven <geert@linux-m68k.org> - 2016-05-25 10:10 +0200
Re: [PATCH 00/10] String hash improvements "George Spelvin" <linux@sciencehorizons.net> - 2016-05-25 10:20 +0200
Re: [PATCH 00/10] String hash improvements Geert Uytterhoeven <geert@linux-m68k.org> - 2016-05-25 11:00 +0200
Re: [PATCH 00/10] String hash improvements "George Spelvin" <linux@sciencehorizons.net> - 2016-05-25 11:10 +0200
Re: [PATCH 00/10] String hash improvements Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-25 18:10 +0200
[PATCH v3 01/10] Pull out string hash to <linux/stringhash.h> George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
[PATCH v3 04/10] Change hash_64() return value to 32 bits George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
[PATCH v3 03/10] <linux/sunrpc/svcauth.h>: Define hash_str() in terms of hashlen_string() George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
[PATCH v3 10/10] h8300: Add <asm/hash.h> George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
[PATCH v3 07/10] <linux/hash.h>: Add support for architecture-specific functions George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
Re: [PATCH v3 07/10] <linux/hash.h>: Add support for architecture-specific functions Geert Uytterhoeven <geert@linux-m68k.org> - 2016-05-29 10:00 +0200
[PATCH v3 00/10] String hash improvements George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
[PATCH v3 05/10] Eliminate bad hash multipliers from hash_32() and hash_64() George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
[PATCH v3 09/10] microblaze: Add <asm/hash.h> George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
[PATCH v3 08/10] m68k: Add <asm/hash.h> George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
[PATCH v3 06/10] fs/namei.c: Improve dcache hash function George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:00 +0200
Re: [PATCH v3 06/10] fs/namei.c: Improve dcache hash function Peter Zijlstra <peterz@infradead.org> - 2016-05-30 17:20 +0200
Re: [PATCH v3 06/10] fs/namei.c: Improve dcache hash function "George Spelvin" <linux@sciencehorizons.net> - 2016-05-30 18:10 +0200
Re: [PATCH v3 06/10] fs/namei.c: Improve dcache hash function Peter Zijlstra <peterz@infradead.org> - 2016-05-30 18:30 +0200
Re: [PATCH v3 06/10] fs/namei.c: Improve dcache hash function "George Spelvin" <linux@sciencehorizons.net> - 2016-05-30 20:20 +0200
[PATCH v3 02/10] fs/namei.c: Add hashlen_string() function George Spelvin <linux@sciencehorizons.net> - 2016-05-28 22:10 +0200
Re: [PATCH v3 00/10] String hash improvements Linus Torvalds <torvalds@linux-foundation.org> - 2016-05-28 22:50 +0200
Re: [PATCH v3 00/10] String hash improvements "George Spelvin" <linux@sciencehorizons.net> - 2016-05-28 23:00 +0200
[PATCH v2 00/10] String hash improvements "George Spelvin" <linux@horizon.com> - 2016-05-27 17:00 +0200
csiph-web