]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/lib/string_32.c
r6040: remove virt_to_bus
[linux-2.6-omap-h63xx.git] / arch / x86 / lib / string_32.c
index 2c773fefa3ddad023fb16e21e90209b2cbeb507b..c2c0504a3071f829faebc8acf5c4d39c6c298e24 100644 (file)
@@ -160,26 +160,6 @@ char *strchr(const char * s, int c)
 EXPORT_SYMBOL(strchr);
 #endif
 
-#ifdef __HAVE_ARCH_STRRCHR
-char *strrchr(const char * s, int c)
-{
-       int d0, d1;
-       char * res;
-       asm volatile( "movb %%al,%%ah\n"
-               "1:\tlodsb\n\t"
-               "cmpb %%ah,%%al\n\t"
-               "jne 2f\n\t"
-               "leal -1(%%esi),%0\n"
-               "2:\ttestb %%al,%%al\n\t"
-               "jne 1b"
-               :"=g" (res), "=&S" (d0), "=&a" (d1)
-               :"0" (0),"1" (s),"2" (c)
-               :"memory");
-       return res;
-}
-EXPORT_SYMBOL(strrchr);
-#endif
-
 #ifdef __HAVE_ARCH_STRLEN
 size_t strlen(const char * s)
 {