RE: [Bluez-devel] Alignment issue

Marcel Holtmann
2004-08-11T19:31:39Z

Hi Daryl,

> Actually just using memmove instead of memcpy was the first thing I tried
> that worked. Someone else here suggested that.
>
> But I thought I read somewhere that the compiler is allowed to optimize
> memmove in the same way. Though I don't know if gcc ever does (and
> apparently it doesn't in this case). But if it is allowed to, then some
> future version of gcc may. Perhaps I misread it.

this is what the Linux kernel is using and we will notice it if some
compiler version will optimize it in future. I committed that change to
CVS.

Regards

Marcel

-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.