[PATCH] Remove small copy optimization from xsputn

David Miller davem@davemloft.net
Thu Mar 29 21:40:00 GMT 2012


From: Richard Henderson <rth@twiddle.net>
Date: Thu, 29 Mar 2012 08:37:22 -0400

> On 03/29/2012 12:52 AM, David Miller wrote:
>> Any objections?
>> 
>> 2012-03-28  David S. Miller  <davem@davemloft.net>
>> 
>> 	* libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
>> 	small copies by hand.
> 
> None from me.

Ok, I've committed this to master.

> Amusingly, I can imagine gcc's vector pattern recognizer turning
> the byte-at-time loop back into a memmove.  ;-)

Very funny :-)



More information about the Libc-alpha mailing list