3 #include "../../string/strchr.c"
11 strchr (const char *s
, int c
)
14 asm (PRELOADSTR ("%0") : : "r" (s
));
18 #ifndef __OPTIMIZE_SIZE__
19 /* Skip unaligned part. */
31 while (((long)s
& 3) != 0);
37 /* Load two constants:
38 R6 = 0xfefefeff [ == ~(0x80808080 << 1) ]
41 asm (PRELOADSTR ("%0") "\n\
43 add r5, r5, #0x8000\n\
44 add r5, r5, r5, lsl #16\n\
50 " PRELOADSTR ("%0") "\n\
63 : "r1", "r2", "r3", "r5", "r6", "cc");