Re: [PATCH 1/3] mmc: initialize struct mmc_command at declaration time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 15 Apr 2011, Chris Ball wrote:

> Hi,
> 
> On Thu, Apr 14 2011, Chris Ball wrote:
> > Here's a sample disassembly of one function on ARM with gcc-4.6.0, and
> > diff -y.  Explicit memset (which calls __memzero) on the left, and {0}
> > initializer (which calls memset) on the right:
> 
> (I checked on x86_64 too, and the code's identical -- it's inlined into
> a "rep stos %eax,%es:(%rdi)" either way.)

Glad to know that gcc is not as dumb as it used to be.


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux