Re: [PATCH 2/3] x86/hash: swap parameters of crc32_u32()

From: H. Peter Anvin
Date: Mon Feb 24 2014 - 08:17:14 EST


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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/