1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- .text
- .align 4
- .globl strncat
- .ent strncat
- strncat:
- .frame $30, 0, $26
- .prologue 0
- mov $16, $0
- beq $18, $zerocount
-
- ldq_u $1, 0($16)
- lda $2, -1($31)
- insqh $2, $0, $2
- andnot $16, 7, $16
- nop
- or $2, $1, $1
- nop
- nop
- cmpbge $31, $1, $2
- bne $2, $found
- $loop: ldq $1, 8($16)
- addq $16, 8, $16
- cmpbge $31, $1, $2
- beq $2, $loop
- $found: cttz $2, $3
- addq $16, $3, $16
- nop
- bsr $23, __stxncpy
-
- zapnot $1, $27, $2
- cmplt $27, $24, $5
- bne $2, 0f
- ret
- 0: or $5, $18, $2
- nop
- bne $2, 2f
- and $24, 0x80, $3
- nop
- bne $3, 1f
-
- addq $24, $24, $24
- nop
- 2: zap $1, $24, $1
- nop
- stq_u $1, 0($16)
- ret
- 1:
- stb $31, 8($16)
- nop
- nop
- ret
- $zerocount:
- nop
- nop
- nop
- ret
- .end strncat
- EXPORT_SYMBOL(strncat)
|