diff options
author | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-08-01 02:23:46 +0000 |
---|---|---|
committer | Anil Madhavapeddy <avsm@cvs.openbsd.org> | 2003-08-01 02:23:46 +0000 |
commit | 8a57b9f9ee19868db7f8c9a178f54b478174740b (patch) | |
tree | c74c529e9f39f4520e7e4b0eb823a092e1884922 /sys/arch/vax | |
parent | 7c54a82972c135b8fb586f853a7af290fb6f52ab (diff) |
remove the strcpy/strcat macros
deraadt@ ok
Diffstat (limited to 'sys/arch/vax')
-rw-r--r-- | sys/arch/vax/include/macros.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/sys/arch/vax/include/macros.h b/sys/arch/vax/include/macros.h index a29bf8aa81b..423c509d0c2 100644 --- a/sys/arch/vax/include/macros.h +++ b/sys/arch/vax/include/macros.h @@ -1,4 +1,4 @@ -/* $OpenBSD: macros.h,v 1.11 2002/08/09 20:26:45 jsyn Exp $ */ +/* $OpenBSD: macros.h,v 1.12 2003/08/01 02:23:45 avsm Exp $ */ /* $NetBSD: macros.h,v 1.20 2000/07/19 01:02:52 matt Exp $ */ /* @@ -168,17 +168,6 @@ strlen(const char *cp) } static __inline__ char * -strcat(char *cp, const char *c2) -{ - __asm__ __volatile("locc $0,$65535,(%1);subl3 r0,$65535,r2;incl r2; - locc $0,$65535,(%0);movc3 r2,(%1),(r1)" - : - : "r" (cp), "r" (c2) - : "r0","r1","r2","r3","r4","r5","memory","cc"); - return cp; -} - -static __inline__ char * strncat(char *cp, const char *c2, size_t count) { __asm__ __volatile("locc $0,%2,(%1);subl3 r0,%2,r2; @@ -190,17 +179,6 @@ strncat(char *cp, const char *c2, size_t count) } static __inline__ char * -strcpy(char *cp, const char *c2) -{ - __asm__ __volatile("locc $0,$65535,(%1);subl3 r0,$65535,r2; - movc3 r2,(%1),(%0);movb $0,(r3)" - : - : "r" (cp), "r" (c2) - : "r0","r1","r2","r3","r4","r5","memory","cc"); - return cp; -} - -static __inline__ char * strncpy(char *cp, const char *c2, size_t len) { __asm__ __volatile("movl %2,r2;locc $0,r2,(%1);beql 1f;subl3 r0,%2,r2; |