[PATCH:libX11 1/2] Use C99 named initializers to fill in events passed to XSendEvent

2014-07-11 Thread Alan Coopersmith
Forces compiler to zero-fill unset fields in the struct (fixing bug 81236) and allows optimizer to order field initialization to best fit cache layout or other considertations. Before after output of gcc -S on AMD64 shows insertion of rep stosq instructions to rapidly zero-fill structs.

Re: [PATCH:libX11 1/2] Use C99 named initializers to fill in events passed to XSendEvent

2014-07-11 Thread Matthieu Herrb
On 07/12/2014 06:22 AM, Alan Coopersmith wrote: Forces compiler to zero-fill unset fields in the struct (fixing bug 81236) and allows optimizer to order field initialization to best fit cache layout or other considertations. Before after output of gcc -S on AMD64 shows insertion of rep stosq