Return-Path: Subject: RE: [Bluez-devel] Alignment issue From: Marcel Holtmann To: Daryl Van Vorst Cc: "'BlueZ Mailing List'" In-Reply-To: <001201c47fc2$7093e4a0$1301010a@baked> References: <001201c47fc2$7093e4a0$1301010a@baked> Content-Type: text/plain Message-Id: <1092252699.4564.238.camel@pegasus> Mime-Version: 1.0 Sender: bluez-devel-admin@lists.sourceforge.net Errors-To: bluez-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed, 11 Aug 2004 21:31:39 +0200 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. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Bluez-devel mailing list Bluez-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-devel