RE: [Bluez-devel] Alignment issue

Marcel Holtmann
2004-08-12T10:25:54Z

Hi Steve,

> > I am not an expert when it comes to specific compiler stuff and I can't
> > make the best decision with my limited information. What I realized is
> > that we need our own unaligned access implementation, because we can't
> > rely on the asm/unaligned.h. So I started to put our own in bluetooth.h
> > for general access. If this was wrong, please correct me.
>
> I don't think this is wrong, in the absence of a system-supplied one.
> This is the basic problem if you ask me: <asm/unaligned.h> _should_ be a
> user-space header file (provided by glibc or something) because
> unaligned access _is_ something that people who write network programs
> need.

I must agree, but it seems that nobody provides a generic include for
unaligned access. So we don't have a choise at the moment :(

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.