This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch to clean out savestring, copystr, mybzero and mybcopy
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, rth at cygnus dot com
- Subject: Re: patch to clean out savestring, copystr, mybzero and mybcopy
- From: Richard Henderson <rth at cygnus dot com>
- Date: Wed, 13 Jan 1999 09:19:07 -0800
- Cc: egcs-patches at cygnus dot com
- References: <199901131713.MAA09742@caip.rutgers.edu>
- Reply-To: Richard Henderson <rth at cygnus dot com>
On Wed, Jan 13, 1999 at 12:13:35PM -0500, Kaveh R. Ghazi wrote:
> Er, why exactly is this better?
Memcpy does not simply `loop until you reach a condition'. It
knows _ahead of time_ how many bytes it will be copying. This
makes a world of difference wrt unrolled loops, by-word copies,
tail word masking, etc.
r~