@@ -71,10 +71,10 @@
* Apologies for the state of the comments ;-)
*/
- .text
- .global _memcpy;
- .type _memcpy,%function
- .align 4; \
+.text
+.global _memcpy
+.type _memcpy,%function
+.align 4
_memcpy:
/* Determine copy direction */
@@ -39,10 +39,10 @@
/* bcopy = memcpy/memmove with arguments reversed. */
- .global bcopy;
- .type bcopy,%function
+.global bcopy
+.type bcopy,%function
bcopy:
/* switch the source and destination registers */
@@ -37,10 +37,10 @@
* by Erik Andersen <andersen@codepoet.org>
- .global __bzero;
- .type __bzero,%function
+.global __bzero
+.type __bzero,%function
__bzero:
mov r2, r1
@@ -30,10 +30,10 @@
- .global memcmp;
- .type memcmp,%function
+.global memcmp
+.type memcmp,%function
memcmp:
/* if ((len - 1) < 0) return 0 */
@@ -52,6 +52,4 @@ memcmp:
sub r0, r2, r3
mov pc, lr
-.weak bcmp;
- bcmp = memcmp
-
+.weak bcmp ; bcmp = memcmp
- .global memcpy;
- .type memcpy,%function
+.global memcpy
+.type memcpy,%function
memcpy:
stmfd sp!, {r0, lr}
- .global memmove;
- .type memmove,%function
+.global memmove
+.type memmove,%function
memmove:
@@ -19,10 +19,10 @@
#include <sys/syscall.h>
- .global memset;
- .type memset,%function
+.global memset
+.type memset,%function
memset:
mov a4, a1
@@ -68,5 +68,4 @@ memset:
strb a2, [a4], $1
-.size memset,.-memset;
+.size memset,.-memset
@@ -29,10 +29,10 @@
- .global strcmp;
- .type strcmp,%function
+.global strcmp
+.type strcmp,%function
strcmp:
1:
@@ -44,6 +44,4 @@ strcmp:
-.weak strcoll;
- strcoll = strcmp
+.weak strcoll ; strcoll = strcmp
@@ -25,10 +25,10 @@
* exit: r0 = len
- .global strlen;
- .type strlen,%function
+.global strlen
+.type strlen,%function
strlen:
bic r1, r0, $3 @ addr of word containing first byte
@@ -76,5 +76,4 @@ Llastword: @ drop through to here once we find a
#endif
mov pc,lr
-.size strlen,.-strlen;
+.size strlen,.-strlen
- .global strncmp;
- .type strncmp,%function
+.global strncmp
+.type strncmp,%function
strncmp: