1 /* strlen.S: Sparc optimized strlen code
2 * Hand optimized from GNU libc's strlen
3 * Copyright (C) 1991,1996 Free Software Foundation
4 * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
5 * Copyright (C) 1996 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
8 #define LO_MAGIC 0x01010101
9 #define HI_MAGIC 0x80808080
18 or %o4, %lo(HI_MAGIC), %o3
25 sethi %hi(LO_MAGIC), %o4
31 or %o4, %lo(LO_MAGIC), %o2
48 sethi %hi(HI_MAGIC), %o4
49 or %o4, %lo(HI_MAGIC), %o3
51 sethi %hi(LO_MAGIC), %o4
53 or %o4, %lo(LO_MAGIC), %o2
62 /* Check every byte. */