Macros for symbols used in both ASM and C

-The macros take care of prepending the leading underscore when
 necessary.
This commit is contained in:
Arun Thomas
2010-08-17 16:44:07 +00:00
parent c8cfcab5db
commit 9a21d1a2fd
209 changed files with 1511 additions and 1863 deletions

View File

@@ -4,9 +4,8 @@
/* int strcmp(const char *s1, const char *s2) */
/* Compare two strings. */
/* */
.text
.globl _strcmp
.balign 16
_strcmp:
#include <machine/asm.h>
ENTRY(strcmp)
movl $-1, %ecx /* Unlimited length */
jmp __strncmp /* Common code */
jmp _C_LABEL(_strncmp) /* Common code */