1
0
Files
linux/arch/x86/include/asm
Linus Torvalds f68e556e23 Make the "word-at-a-time" helper functions more commonly usable
I have a new optimized x86 "strncpy_from_user()" that will use these
same helper functions for all the same reasons the name lookup code uses
them.  This is preparation for that.

This moves them into an architecture-specific header file.  It's
architecture-specific for two reasons:

 - some of the functions are likely to want architecture-specific
   implementations.  Even if the current code happens to be "generic" in
   the sense that it should work on any little-endian machine, it's
   likely that the "multiply by a big constant and shift" implementation
   is less than optimal for an architecture that has a guaranteed fast
   bit count instruction, for example.

 - I expect that if architectures like sparc want to start playing
   around with this, we'll need to abstract out a few more details (in
   particular the actual unaligned accesses).  So we're likely to have
   more architecture-specific stuff if non-x86 architectures start using
   this.

   (and if it turns out that non-x86 architectures don't start using
   this, then having it in an architecture-specific header is still the
   right thing to do, of course)

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-04-06 13:54:56 -07:00
..
2011-12-05 17:17:24 +01:00
2011-08-29 13:44:12 -07:00
2011-08-29 13:44:12 -07:00
2012-03-28 18:11:12 +01:00
2012-03-28 18:11:12 +01:00
2012-03-28 18:11:12 +01:00
2012-03-28 18:11:12 +01:00
2011-05-02 17:24:48 +02:00
2012-03-28 18:11:12 +01:00
2011-05-16 14:55:57 -04:00
2012-03-28 18:11:12 +01:00
2012-03-20 21:48:30 +08:00
2012-03-28 18:11:12 +01:00
2011-11-11 10:22:55 +01:00
2012-02-20 12:51:00 -08:00
2011-07-26 16:49:43 -07:00
2011-07-22 14:39:50 +09:30
2011-05-24 14:33:35 +02:00
2012-03-28 18:11:12 +01:00
2011-07-26 16:49:47 -07:00
2012-01-26 21:23:53 +01:00
2011-12-05 14:28:37 +01:00
2011-06-05 21:30:33 +02:00
2012-02-20 12:48:47 -08:00
2011-08-29 13:44:12 -07:00
2012-03-28 18:11:12 +01:00
2012-02-20 12:52:05 -08:00
2011-12-05 12:00:16 +01:00
2012-03-28 18:11:12 +01:00
2012-02-20 12:52:05 -08:00
2012-03-28 18:11:12 +01:00
2011-05-20 12:50:29 -07:00
2011-05-20 12:50:29 -07:00
2012-02-20 12:52:05 -08:00
2012-03-28 18:11:12 +01:00
2011-06-05 21:30:32 +02:00