Messages in this thread | | | Date | Mon, 24 Feb 2014 05:16:30 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH 2/3] x86/hash: swap parameters of crc32_u32() |
| |
On a totally different note, it would probably be a good idea to use intrinsics more in the kernel where possible. Intrinsics do allow the compiler to generate better scheduling.
The trick of course is that we'd want to have machinery that can fall back to inline assembly if the compiler doesn't support the intrinsics, and perhaps even to .bytes if needed. This pretty much involves a bunch of compiler and assembler-probing machinery and then wrapping things in neat little inline functions.
-hpa
| |