[Top][All Lists]
[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/
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), (continued)
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/02/01
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/02/02
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/02/02
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/02/02
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/02/02
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/02/04
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/04
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/05
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/02/05
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/05
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t),
Simon Goldschmidt <=
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Bill Auerbach, 2010/02/05
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/06
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/06
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/07
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/02/08
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Simon Goldschmidt, 2010/02/08
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Kieran Mansley, 2010/02/08
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/08
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/13
- [lwip-devel] [bug #27352] Change ip_addr from struct to typedef (u32_t), Stephane Lesage, 2010/02/14