2
* arch/alpha/lib/strcat.S
3
* Contributed by Richard Henderson (rth@tamu.edu)
5
* Append a null-terminated string from SRC to DST.
17
mov $16, $0 # set up return value
19
/* Find the end of the string. */
21
ldq_u $1, 0($16) # load first quadword (a0 may be misaligned)
26
cmpbge $31, $1, $2 # bits set iff byte == 0
34
$found: negq $2, $3 # clear all but least set bit
37
and $2, 0xf0, $3 # binary search for that set bit
47
/* Now do the append. */