Arnd Bergmann wrote:> > I take this as a strong indication that user space applications> won't generally expect to get the bswap instruction from including> the kernel headers. For the longest time, we actually had> > /* For avoiding bswap on i386 */> #ifdef __KERNEL__> #include <linux/config.h>> #endif> > which I read as explicitly using the portable i386 version for> all user space.>

This is true, although it would be nice to be able to generate BSWAP now when most distros compile with -march=i586 or higher. The reason noone cared for the longest time was that noone wanted to compile userspace for anything other than the i386 baseline.