lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t)
Date: Fri, 05 Feb 2010 14:39:03 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Gecko/20100115 Firefox/3.6

Follow-up Comment #32, bug #27352 (project lwip):

Ah, for me, aligned was 32-bit since that is the minimum alignment for all
datatypes we have (32-bit maximum) on nearly every platform from 8-bit upt to
x64 (I think there are some DSPs though that need other alignment?).

For 16-bit platforms, you might be right.

I get your idea about the macros now. I have already been thinking about
having preprocessor versions of the htonX functions (that would prevent all
the #if LITTLE_ENDIAN blocks), but I haven't yet checked whether compilers can
optimize shifting of constants away or not.

Until then, I think your idea about the macros is good.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?27352>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]