Change bogus extern inline' to
static inline'.
This finishes making the kernel compile without -O. The "optimized" asm version of the function being inlined (translate_bytes()) uses slow instructions. On a 486, assuming everything is in the cache (unlikely), it is 21/15 times slower than the dumb C version and 21/3 times slower than the best possible bytewise method.
This commit is contained in:
parent
3ad4ec7c21
commit
3e3de3f369
@ -149,7 +149,7 @@ translate_bytes (const unsigned char *table, unsigned char *buff, unsigned long
|
||||
}
|
||||
|
||||
#else
|
||||
extern inline void
|
||||
static inline void
|
||||
translate_bytes (const void *table, void *buff, unsigned long n)
|
||||
{
|
||||
__asm__ ("cld\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user