This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: patch to clean out savestring, copystr, mybzero and mybcopy


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]