From 77dc8ce528f74b15f61d25e832925cc1b5f32c4b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francesco=20Potort=C3=AC?= Date: Tue, 25 Jan 1994 15:04:07 +0000 Subject: [PATCH] * m/delta.h (HAVE_BCOPY): undef'd for efficiency. (bcopy, bzero, bcmp): define'd for efficiency. (GAP_USE_BCOPY, BCOPY_DOWNWARD_SAFE): define'd for GHc compiler. --- src/m/delta.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/m/delta.h b/src/m/delta.h index 810395815c0..b53ecba54cd 100644 --- a/src/m/delta.h +++ b/src/m/delta.h @@ -143,6 +143,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define HAVE_TIMEVAL #define SIGNALS_VIA_CHARACTERS #define BROKEN_CLOSEDIR /* builtin closedir is interruptible */ +#undef HAVE_BCOPY /* b* functions are just stubs to mem* ones */ +#define bcopy(from,to,bytes) memcpy(to,from,bytes) +#define bzero(to,bytes) memset(to,0,bytes) +#define bcmp memcmp #define memmove safe_bcopy /* for overlapping copies */ #undef KERNEL_FILE #define KERNEL_FILE "/sysv68" @@ -218,6 +222,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ the Green Hills compiler to create stack frames even for functions with few local variables. */ # define C_SWITCH_MACHINE -ga -O +# define GAP_USE_BCOPY /* *++to = *++from is inefficient */ +# define BCOPY_DOWNWARD_SAFE /* bcopy does: mov.b (%a1)+,(%a0)+ */ # else /* We are using the standard AT&T Portable C Compiler */ # define SWITCH_ENUM_BUG -- 2.39.5