Messages in this thread | | | From | Jakub Jelinek <> | Subject | Re: [PATCH] Getting rid of inlined strstr. | Date | Wed, 20 Jan 1999 16:39:29 +0100 (CET) |
| |
> > Hi, > This patch removes the inlined strstr from the i386 architecture and uses > the C version already in lib/string.c (i386 was the only architecture to > use an inlined version of strstr - all other architectures use the C > version.)
Alternatively, you can move it into arch/i386/lib/string.S. That will be nearly as fast as the inlined version, but you won't have any register allocation troubles. You could do it either with register __attribute__((regparm(2))), or even with normal calling convention.
Cheers, Jakub ___________________________________________________________________ Jakub Jelinek | jj@sunsite.mff.cuni.cz | http://sunsite.mff.cuni.cz Administrator of SunSITE Czech Republic, MFF, Charles University ___________________________________________________________________ UltraLinux | http://ultra.linux.cz/ | http://ultra.penguin.cz/ Linux version 2.2.0-pre8 on a sparc64 machine (3958.37 BogoMips) ___________________________________________________________________
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |