am 95b1ea1b: Merge "Add a bunch more missing ENDs to assembler routines."

# Via Elliott Hughes (1) and Gerrit Code Review (1)
* commit '95b1ea1bb3c93369d96045420b91b7617992d8bd':
  Add a bunch more missing ENDs to assembler routines.
This commit is contained in:
Elliott Hughes 2013-02-13 15:27:11 -08:00 committed by Android Git Automerger
commit 5ca3e4a349
18 changed files with 28 additions and 12 deletions

View File

@ -233,9 +233,6 @@ ENTRY(memcmp)
subs r2, r2, #1
bne 11b
bx lr
END(memcmp)
5: /*************** non-congruent case ***************/
and r0, r1, #3
@ -341,3 +338,4 @@ END(memcmp)
mov r2, #4
ldmfd sp!, {r5, r6, r7}
b 8b
END(memcmp)

View File

@ -42,6 +42,7 @@
ENTRY(bzero)
mov r2, r1
mov r1, #0
// Fall through to memset...
END(bzero)
ENTRY(memset)

View File

@ -54,6 +54,7 @@ ENTRY(_setjmp)
movl %edi,20(%eax)
xorl %eax,%eax
ret
END(_setjmp)
ENTRY(_longjmp)
movl 4(%esp),%edx
@ -69,3 +70,4 @@ ENTRY(_longjmp)
incl %eax
1: movl %ecx,0(%esp)
ret
END(_longjmp)

View File

@ -19,7 +19,6 @@ ENTRY(__futex_wait)
ret
END(__futex_wait)
// int __futex_wake(volatile void *ftx, int count)
ENTRY(__futex_wake)
pushl %ebx

View File

@ -65,6 +65,7 @@ ENTRY(setjmp)
movl %eax,24(%ecx)
xorl %eax,%eax
ret
END(setjmp)
ENTRY(longjmp)
movl 4(%esp),%edx
@ -91,3 +92,4 @@ ENTRY(longjmp)
incl %eax
1: movl %ecx,0(%esp)
ret
END(longjmp)

View File

@ -61,6 +61,7 @@ ENTRY(sigsetjmp)
movl %edi,20(%ecx)
xorl %eax,%eax
ret
END(sigsetjmp)
ENTRY(siglongjmp)
movl 4(%esp),%edx
@ -90,3 +91,4 @@ ENTRY(siglongjmp)
incl %eax
2: movl %ecx,0(%esp)
ret
END(siglongjmp)

View File

@ -30,3 +30,4 @@ L1: incl %eax
L2: popl %esi
popl %edi
ret
END(bcmp)

View File

@ -41,3 +41,4 @@ L1: movl %edx,%ecx /* zero remainder by bytes */
popl %edi
ret
END(bzero)

View File

@ -15,3 +15,4 @@ ENTRY(ffs)
.align 2
L1: xorl %eax,%eax /* clear result */
ret
END(ffs)

View File

@ -24,3 +24,4 @@ ENTRY(memchr)
L1: xorl %eax,%eax
popl %edi
ret
END(memchr)

View File

@ -41,3 +41,4 @@ L6: movzbl -1(%edi),%eax /* Perform unsigned comparison */
popl %esi
popl %edi
ret
END(memcmp)

View File

@ -53,3 +53,4 @@ L1: rep
popl %ebx
popl %edi
ret
END(memset)

View File

@ -71,3 +71,4 @@ L1: movb (%edx),%al /* unroll loop, but not too much */
L2: popl %eax /* pop destination address */
popl %edi /* restore edi */
ret
END(strcat)

View File

@ -79,3 +79,4 @@ L3: movzbl (%eax),%eax /* unsigned comparison */
movzbl (%edx),%edx
subl %edx,%eax
ret
END(strcmp)

View File

@ -61,3 +61,4 @@ L1: movb (%edx),%al /* unroll loop, but not too much */
jnz L1
L2: popl %eax /* pop dst address */
ret
END(strcpy)

View File

@ -18,3 +18,4 @@ ENTRY(strlen)
leal -1(%ecx),%eax /* and subtracting one */
popl %edi
ret
END(strlen)

View File

@ -111,3 +111,4 @@ L3: movzbl (%eax),%eax /* unsigned comparision */
L4: xorl %eax,%eax
popl %ebx
ret
END(strncmp)

View File

@ -65,3 +65,4 @@ L3: lodsw
L4: popl %edi
popl %esi
ret
END(swab)