diff options
author | Thomas Bushnell <thomas@gnu.org> | 1997-06-26 17:54:28 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1997-06-26 17:54:28 +0000 |
commit | e23439cac4adaebe8069c207a44eb1a2730aac99 (patch) | |
tree | 81c6a9f331f47469694fd5aa35d2c6265cef2f09 /i386 | |
parent | f3712f445eddca1bb32ece3b757113cca61bbe18 (diff) |
Mon Jun 16 12:14:17 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* i386/i386/loose_ends.c (ovbcopy): Delete function. Suggested by
Matthew Wilcox (willy@odie.barnet.ac.uk.)
Diffstat (limited to 'i386')
-rw-r--r-- | i386/i386/loose_ends.c | 25 |
1 files changed, 0 insertions, 25 deletions
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); } |