From 8a57b9f9ee19868db7f8c9a178f54b478174740b Mon Sep 17 00:00:00 2001 From: Anil Madhavapeddy Date: Fri, 1 Aug 2003 02:23:46 +0000 Subject: remove the strcpy/strcat macros deraadt@ ok --- sys/arch/vax/include/macros.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'sys/arch/vax') 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 $ */ /* @@ -167,17 +167,6 @@ strlen(const char *cp) return ret; } -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) { @@ -189,17 +178,6 @@ strncat(char *cp, const char *c2, size_t count) return cp; } -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) { -- cgit v1.2.3