From e23439cac4adaebe8069c207a44eb1a2730aac99 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 26 Jun 1997 17:54:28 +0000 Subject: Mon Jun 16 12:14:17 1997 Thomas Bushnell, n/BSG * i386/i386/loose_ends.c (ovbcopy): Delete function. Suggested by Matthew Wilcox (willy@odie.barnet.ac.uk.) --- i386/i386/loose_ends.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'i386') diff --git a/i386/i386/loose_ends.c b/i386/i386/loose_ends.c index 6a10adc..a5671af 100644 --- a/i386/i386/loose_ends.c +++ b/i386/i386/loose_ends.c @@ -34,31 +34,6 @@ */ int boothowto = 0; - /* - * Should be rewritten in asm anyway. - */ -/* - * ovbcopy - like bcopy, but recognizes overlapping ranges and handles - * them correctly. - */ -ovbcopy(from, to, bytes) - char *from, *to; - int bytes; /* num bytes to copy */ -{ - /* Assume that bcopy copies left-to-right (low addr first). */ - if (from + bytes <= to || to + bytes <= from || to == from) - bcopy(from, to, bytes); /* non-overlapping or no-op*/ - else if (from > to) - bcopy(from, to, bytes); /* overlapping but OK */ - else { - /* to > from: overlapping, and must copy right-to-left. */ - from += bytes - 1; - to += bytes - 1; - while (bytes-- > 0) - *to-- = *from--; - } -} - /* Someone with time should write code to set cpuspeed automagically */ int cpuspeed = 4; #define DELAY(n) { register int N = cpuspeed * (n); while (--N > 0); } -- cgit v1.2.3